Skip to content

Add refactoring for datadog scaler#6552

Merged
zroubalik merged 3 commits intokedacore:mainfrom
dttung2905:refactor-datadog-scaler
Apr 24, 2025
Merged

Add refactoring for datadog scaler#6552
zroubalik merged 3 commits intokedacore:mainfrom
dttung2905:refactor-datadog-scaler

Conversation

@dttung2905
Copy link
Contributor

@dttung2905 dttung2905 commented Feb 15, 2025

Refactoring the datadog scaler. It a little bit more complicated than I have imagined. There are a few TODO that I will resolve before marking this PR ready

Checklist

Relates to #5797

@dttung2905 dttung2905 marked this pull request as ready for review March 2, 2025 15:43
@dttung2905 dttung2905 requested a review from a team as a code owner March 2, 2025 15:43
@dttung2905 dttung2905 force-pushed the refactor-datadog-scaler branch 2 times, most recently from d59eb1a to 8f6280b Compare March 4, 2025 22:39
@dttung2905 dttung2905 force-pushed the refactor-datadog-scaler branch from 8f6280b to dc86a22 Compare April 6, 2025 20:07
@dttung2905
Copy link
Contributor Author

dttung2905 commented Apr 6, 2025

/run-e2e datadog
Update: You can check the progress here

@dttung2905 dttung2905 requested a review from wozniakjan April 6, 2025 20:21
Copy link
Member

@wozniakjan wozniakjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the refactor looks pretty good but probably some small regression has been added because it seems that e2e tests are failing now

    helper.go:4***7: Waiting for deployment replicas to hit target. Deployment - datadog-dca-test-deployment, Current  - ***, Target - 0
    datadog_dca_test.go:***58: 
        	Error Trace:	/__w/keda/keda/tests/sequential/datadog_dca/datadog_dca_test.go:***58
        	Error:      	Should be true
        	Test:       	TestDatadogScalerDCA
        	Messages:   	replica count should be 0 after *** minutes
    datadog_dca_test.go:***68: --- testing activation ---
    helper.go:54***: Applying template: lightLoadTemplate
    helper.go:494: Waiting for some time to ensure deployment replica count doesn't change from 0
    helper.go:50***: Deployment - datadog-dca-test-deployment, Current  - ***
    helper.go:504: 
        	Error Trace:	/__w/keda/keda/tests/helper/helper.go:504
        	            				/__w/keda/keda/tests/sequential/datadog_dca/datadog_dca_test.go:***7***
        	            				/__w/keda/keda/tests/sequential/datadog_dca/datadog_dca_test.go:***6***
        	Error:      	datadog-dca-test-deployment replica count has changed from 0 to ***
        	Test:       	TestDatadogScalerDCA
    datadog_dca_test.go:***75: --- testing scale out ---
...

Failed tests:
	Execution of tests/sequential/datadog_dca/datadog_dca_test.go, has failed after "two" attempts
make: *** [Makefile:***09: e***e-test] Error ***

@dttung2905 dttung2905 force-pushed the refactor-datadog-scaler branch from 0f8d4f6 to 7e6759e Compare April 7, 2025 22:04
@dttung2905
Copy link
Contributor Author

dttung2905 commented Apr 7, 2025

/run-e2e datadog
Update: You can check the progress here

Copy link
Member

@wozniakjan wozniakjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking great! just a minor formatting nits

also to pass the github checks after release, can you please rebase the PR on the latest main?

@dttung2905 dttung2905 force-pushed the refactor-datadog-scaler branch from 292a99c to b0f4361 Compare April 9, 2025 16:26
Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
@dttung2905 dttung2905 force-pushed the refactor-datadog-scaler branch from 5b69695 to 1809288 Compare April 9, 2025 16:43
@dttung2905
Copy link
Contributor Author

dttung2905 commented Apr 12, 2025

/run-e2e datadog

Update: You can check the progress here

@dttung2905
Copy link
Contributor Author

dttung2905 commented Apr 12, 2025

/run-e2e datadog
Update: You can check the progress here

@dttung2905 dttung2905 requested a review from wozniakjan April 14, 2025 20:25
@zroubalik
Copy link
Member

zroubalik commented Apr 24, 2025

/run-e2e datadog
Update: You can check the progress here

@zroubalik zroubalik enabled auto-merge (squash) April 24, 2025 15:58
@zroubalik zroubalik disabled auto-merge April 24, 2025 15:58
@zroubalik zroubalik enabled auto-merge (squash) April 24, 2025 15:58
@zroubalik zroubalik merged commit 9d7c1aa into kedacore:main Apr 24, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants