-
Notifications
You must be signed in to change notification settings - Fork 361
Route debugger exploration builds through repository proxies #12590
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,25 @@ build-exploration-tests-image: | |
| - when: manual | ||
| allow_failure: true | ||
| before_script: | ||
| - | | ||
| mkdir -p "$HOME/.m2" | ||
| cat > "$HOME/.m2/settings.xml" <<EOF | ||
| <settings> | ||
| <mirrors> | ||
| <mirror> | ||
| <id>env-proxy</id> | ||
| <mirrorOf>*</mirrorOf> | ||
| <url>${MAVEN_REPOSITORY_PROXY}</url> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The generated 🤖 Generated with Claude Code |
||
| </mirror> | ||
| </mirrors> | ||
| </settings> | ||
| EOF | ||
| - export MVNW_REPOURL=${MAVEN_REPOSITORY_PROXY%/} | ||
| - export ORG_GRADLE_PROJECT_mavenRepositoryProxy="$MAVEN_REPOSITORY_PROXY" | ||
| - export ORG_GRADLE_PROJECT_gradlePluginProxy="$GRADLE_PLUGIN_PROXY" | ||
| # TODO: Centralize Gradle repository proxy initialization instead of reusing a smoke-test resource. | ||
| - mkdir -p "$HOME/.gradle/init.d" | ||
| - cp build-logic/smoke-test/src/main/resources/datadog/buildlogic/smoketest/proxy-repositories.init.gradle.kts "$HOME/.gradle/init.d/" | ||
| - cp workspace/dd-java-agent/build/libs/*.jar /exploration-tests/dd-java-agent.jar | ||
| - cp dd-java-agent/agent-debugger/exploration-tests/run-exploration-tests.sh /exploration-tests | ||
| - cp dd-java-agent/agent-debugger/exploration-tests/exclude_*.txt /exploration-tests | ||
|
|
||
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.
This proxy routing is only added to
.common-exploration-tests'sbefore_script, not tobuild-exploration-tests-image(the image-build job above), which still resolves dependencies directly against the public internet. That job's Dockerfile runsmvn verify -DskipTests=true(jsoup/jackson/jackson-databind) and./gradlew dependencies(okhttp) with no proxy configured at all (dd-java-agent/agent-debugger/exploration-tests/Dockerfile.exploration-tests). If direct access to Maven Central / Gradle Plugin Portal is what motivated this PR (unreliable/blocked egress), image builds will keep failing or flaking exactly as before, while only the downstream test-execution job is fixed — an incomplete fix for the stated goal of "routing exploration builds through repository proxies."🤖 Generated with Claude Code