-
Notifications
You must be signed in to change notification settings - Fork 324
Run tests in Gitlab #8656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Run tests in Gitlab #8656
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit 26a7adb.
# Conflicts: # .gitlab-ci.yml
…-tests # Conflicts: # dd-java-agent/instrumentation/kafka-clients-3.8/src/test/groovy/KafkaClientCustomPropagationConfigTest.groovy # dd-java-agent/instrumentation/kafka-clients-3.8/src/test/groovy/KafkaClientTestBase.groovy
sarahchen6
reviewed
May 5, 2025
sarahchen6
reviewed
May 5, 2025
sarahchen6
approved these changes
May 5, 2025
Contributor
sarahchen6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited to see this go in!
bric3
reviewed
May 6, 2025
...test/java/datadog/trace/bootstrap/instrumentation/jfr/exceptions/ExceptionHistogramTest.java
Outdated
Show resolved
Hide resolved
...instrumentation/spring-webmvc-3.1/src/latestDepTest/groovy/test/boot/SpringBootServer.groovy
Show resolved
Hide resolved
dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/base/HttpServerTest.groovy
Outdated
Show resolved
Hide resolved
dd-smoke-tests/log-injection/src/test/resources/SpockConfig.groovy
Outdated
Show resolved
Hide resolved
528ce5a to
2b5d9ac
Compare
bric3
reviewed
May 7, 2025
…ests # Conflicts: # dd-smoke-tests/spring-boot-3.0-native/src/test/groovy/SpringBootNativeInstrumentationTest.groovy
sarahchen6
pushed a commit
that referenced
this pull request
Jun 12, 2025
* first pass checks * add some debug * Revert "add some debug" This reverts commit 26a7adb. * Normalize node index and node total * fix normalization * actually use the normalized values * first pass: migrate tests to Gitlab * less scenarios for now * bump memory and workers * actually use task partitions * Add section start/end * Allow individual tests to control gradle memory * remove a little of the reportspam * use concrete docker image tags * configure test containers to use mirror * fix limit * fix missing container versions * Better gitlab naming with smarter split * update caches with test dep cache, save test results * Cleanup repositories {} blocks * update proxy url to use internal routing * no "s" * allow insecure everywhere * include apache with confluence * remove intentional fail * use gradlePluginCache, mavenCentral after pluginportal * proxy mule as well * change BUILD_CACHE_TYPE to CACHE_TYPE since its used for both * split cache like with circleci. Cache became too big * Some caches are too big to be saved * test fixes * more test fixes * disable some tests for now * more fixes * Use maven proxy with openliberty smoketests * missed one more mongodb case * enable some more of the matrix * Fix lettuce tests * Fix lettuce tests * cleanup imports * create asyncCommands * codenarc * Cleanup aggregator tests to try to reduce flakiness * debug maven logs for now * try non-ssh url * Revert "debug maven logs for now" This reverts commit c5c158f. * add some debug logging * codenarc * try fixed value of parallelism * enable debug logs for smoketest building only * limit number of reserved threads * some debug for why the smoketest is not running * more debug for gradle launcher failure * try fixing graal test * try to force the logging * codenarc * set available processors for jetty * codenarc * bluntly bump max threads * some more debug * remove verbose logging * try memcached test with new location * opt out of split by parallel * Try with 3 gradle workers * try decreasing reporting interval * Refractor CrashTrackingSmokeTest to use OutputThreads * Simple forked memory test * better ergonomics * try increasing timeout * extend agent test runner * don't override forkedMinHeapSize and forkedMaxHeapSize * print out requests * remove logging statement * Better crash tracking * remove intentionally failing test * use a test UDP server to record oom events * Make crash tracking smoke test more resiliant * loop through messages until the correct event * some debug * configurable dogstatsd port * enable everything * use sleep instead of park nanos * save body data ahead of time * retry once for system failures * spotless * cleanup * spotless/merge issues * Skip ExceptionHistogramTest on J9 * add a print statement around the body for debugging * comment out all but 8, 17, and 21 for now * fix spring 6 forwarding headers * revert logging statements * needs to be set in 3.1 for latestDepTest * faster OOM * property was set in incorrect location * ssi_smoke, flaky, and esoteric jvms on master only * use normal runner when TestContainers isn't needed * skip forwarding header filter here too * tweaks * limit executor size and fix IPV4 assumptions * try more workers with less memory * set max memory for all crashtracking tests * double retry * scale up memory, less jobs * revert memory bump, increase forked tests * tweaks * add flag for nondefault jvms and flaky tests * correct description * Externalize runtime processors override * ExceptionHistogramTest exclusions already handled by master * increase spring native build memory * bump gradle build timeout * bump graalvm compile memory --------- Co-authored-by: Santiago Mola <santiago.mola@datadoghq.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What Does This Do
Runs the test suite in Gitlab.
The main bulk of the changes are in
.gitlab-ci.ymlwhich creates the test jobs, applies the appropriate caches, uploads the results to Datadog CI Observability, saves artifacts, etc.Changes to tests
localhostwas assumed with the appropriategetHost()-like methodsforward-headers-strategy: NONEfor Spring Boot tests. Spring Boot stripsx-forwarded-forheaders which breaks forwarding testsMotivation
Eventually, all CircleCI jobs will be migrated to Gitlab
Future Work
where there is an optimization between job duration, number of jobs, size of cache, "stability".
Flaky Tests
InstrumenterUnloadTestGradleLauncherSmokeTestApmTracingDisabledMatrixSmokeTestContributor Checklist
type:and (comp:orinst:) labels in addition to any useful labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]