From a52f69739055e0c9d92e4b4776fc77ad8feba85d Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 14:47:00 -0800 Subject: [PATCH 01/15] print out the m2 cache at some points --- eng/pipelines/templates/jobs/ci.tests.yml | 11 +++++++++++ eng/pipelines/templates/jobs/ci.yml | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 6195ff3979ac..8a02c23304ac 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -104,6 +104,12 @@ jobs: sbomEnabled: false steps: + + - pwsh: | + gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j + displayName: 'Show the current log4j versions in the cache' + condition: succeededOrFailed() + - template: /eng/pipelines/templates/steps/initialize-test-environment.yml parameters: CheckoutRecordings: true @@ -174,3 +180,8 @@ jobs: } displayName: Dump Test-Proxy Error Logs condition: succeededOrFailed() + + - pwsh: | + gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j + displayName: 'Show the current log4j versions in the cache' + condition: succeededOrFailed() diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index e5076c76a7aa..58bba6eb2555 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -83,6 +83,10 @@ jobs: os: linux steps: + - pwsh: | + gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j + displayName: 'Show the current log4j versions in the cache' + # Skip sparse checkout for the `azure-sdk-for--pr` private mirrored repositories # as we require the GitHub service connection to be loaded. - ${{ if not(contains(variables['Build.DefinitionName'], 'java-pr')) }}: From 86857de31e41e532abdbb4db8ddae371455695e4 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 15:01:45 -0800 Subject: [PATCH 02/15] ignore errors --- eng/pipelines/templates/jobs/ci.tests.yml | 4 ++-- eng/pipelines/templates/jobs/ci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 8a02c23304ac..a80ca60527de 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -106,7 +106,7 @@ jobs: steps: - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j + gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j -ErrorAction SilentlyContinue displayName: 'Show the current log4j versions in the cache' condition: succeededOrFailed() @@ -182,6 +182,6 @@ jobs: condition: succeededOrFailed() - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j + gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j -ErrorAction SilentlyContinue displayName: 'Show the current log4j versions in the cache' condition: succeededOrFailed() diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 58bba6eb2555..27cf0911a3ae 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -84,7 +84,7 @@ jobs: steps: - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j + gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j -ErrorAction SilentlyContinue displayName: 'Show the current log4j versions in the cache' # Skip sparse checkout for the `azure-sdk-for--pr` private mirrored repositories From 5fce845f3e2764003476e102b2c54cd8d9ca603e Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 15:34:19 -0800 Subject: [PATCH 03/15] print the whole repo --- eng/pipelines/templates/jobs/ci.tests.yml | 4 ++-- eng/pipelines/templates/jobs/ci.yml | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index a80ca60527de..93591ce9aaa4 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -106,7 +106,7 @@ jobs: steps: - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j -ErrorAction SilentlyContinue + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue displayName: 'Show the current log4j versions in the cache' condition: succeededOrFailed() @@ -182,6 +182,6 @@ jobs: condition: succeededOrFailed() - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j -ErrorAction SilentlyContinue + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue displayName: 'Show the current log4j versions in the cache' condition: succeededOrFailed() diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 27cf0911a3ae..9b46df5b4b10 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -84,7 +84,7 @@ jobs: steps: - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository/org/apache/logging/log4j -ErrorAction SilentlyContinue + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue displayName: 'Show the current log4j versions in the cache' # Skip sparse checkout for the `azure-sdk-for--pr` private mirrored repositories @@ -259,6 +259,10 @@ jobs: parameters: Artifacts: ${{ parameters.Artifacts }} + - pwsh: | + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue + displayName: 'Show the current log4j versions in the cache' + - template: /eng/pipelines/templates/steps/post-job-cleanup.yml - job: 'Analyze' From f52aac24f6c2b17ff9aef60165a4ff8c2162c458 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 15:58:48 -0800 Subject: [PATCH 04/15] try something else --- eng/pipelines/templates/jobs/ci.tests.yml | 6 ++++-- eng/pipelines/templates/jobs/ci.yml | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 93591ce9aaa4..1caeb85dff38 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -106,7 +106,8 @@ jobs: steps: - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue + gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host displayName: 'Show the current log4j versions in the cache' condition: succeededOrFailed() @@ -182,6 +183,7 @@ jobs: condition: succeededOrFailed() - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue + gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host displayName: 'Show the current log4j versions in the cache' condition: succeededOrFailed() diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 9b46df5b4b10..5876bde8c5ff 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -84,8 +84,10 @@ jobs: steps: - pwsh: | + gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue displayName: 'Show the current log4j versions in the cache' + condition: succeededOrFailed() # Skip sparse checkout for the `azure-sdk-for--pr` private mirrored repositories # as we require the GitHub service connection to be loaded. @@ -260,8 +262,10 @@ jobs: Artifacts: ${{ parameters.Artifacts }} - pwsh: | - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue + gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host displayName: 'Show the current log4j versions in the cache' + condition: succeededOrFailed() - template: /eng/pipelines/templates/steps/post-job-cleanup.yml From 04fb1ab0e7c6c378815c83bd24096f458a198c80 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 16:16:36 -0800 Subject: [PATCH 05/15] why aren't the things printing.. --- eng/pipelines/templates/jobs/ci.tests.yml | 2 ++ eng/pipelines/templates/jobs/ci.yml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 1caeb85dff38..4625f3f88131 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -106,6 +106,7 @@ jobs: steps: - pwsh: | + Write-Host 'show the current log4j versions' gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host displayName: 'Show the current log4j versions in the cache' @@ -183,6 +184,7 @@ jobs: condition: succeededOrFailed() - pwsh: | + Write-Host 'show the current log4j versions' gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host displayName: 'Show the current log4j versions in the cache' diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 5876bde8c5ff..e3a508f6d725 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -84,8 +84,9 @@ jobs: steps: - pwsh: | - gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue + Write-Host 'show the current log4j versions' + gci /mnt/vss/__work -ErrorAction SilentlyContinue | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host displayName: 'Show the current log4j versions in the cache' condition: succeededOrFailed() @@ -262,6 +263,7 @@ jobs: Artifacts: ${{ parameters.Artifacts }} - pwsh: | + Write-Host 'show the current log4j versions' gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host displayName: 'Show the current log4j versions in the cache' From 552322edb09634bfa1f782f6ecbaf8df63541ced Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 16:30:06 -0800 Subject: [PATCH 06/15] turn up maven logging --- eng/pipelines/templates/variables/globals.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 14b31235acc2..8af9ab589390 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -19,7 +19,7 @@ variables: IsDebug: $[coalesce(variables['System.Debug'], 'false')] # Sets the Maven log level to either the LogLevel passed in the manual pipeline run or the default 'warn' - MavenLogLevel: $[coalesce(variables['LogLevel'], 'warn')] + MavenLogLevel: $[coalesce(variables['LogLevel'], 'debug')] # Maven build/test options MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository From c614da37949c1186cf8c298eb7a8ddd0a491de6d Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 16:44:18 -0800 Subject: [PATCH 07/15] try excluding at the parent pom level --- sdk/parents/azure-client-sdk-parent/pom.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdk/parents/azure-client-sdk-parent/pom.xml b/sdk/parents/azure-client-sdk-parent/pom.xml index 00187ee716b9..75d724380799 100644 --- a/sdk/parents/azure-client-sdk-parent/pom.xml +++ b/sdk/parents/azure-client-sdk-parent/pom.xml @@ -1049,6 +1049,16 @@ org.revapi revapi-java 0.26.1 + + + org.apache.logging.log4j + log4j-core + + + org.apache.logging.log4j + log4j-api + + org.revapi From 9124a9d96d5946d5d39f4c1942e2bd341239ab21 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 17:10:56 -0800 Subject: [PATCH 08/15] change the logging --- eng/pipelines/templates/jobs/ci.tests.yml | 12 ++++++------ eng/pipelines/templates/jobs/ci.yml | 15 +++++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 4625f3f88131..c3ec803567d5 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -107,10 +107,10 @@ jobs: - pwsh: | Write-Host 'show the current log4j versions' - gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host + gci /mnt/vss/__work/1 | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository | Write-Host displayName: 'Show the current log4j versions in the cache' - condition: succeededOrFailed() + continueOnError: true - template: /eng/pipelines/templates/steps/initialize-test-environment.yml parameters: @@ -185,7 +185,7 @@ jobs: - pwsh: | Write-Host 'show the current log4j versions' - gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host + gci /mnt/vss/__work/1 | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository | Write-Host displayName: 'Show the current log4j versions in the cache' - condition: succeededOrFailed() + continueOnError: true diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index e3a508f6d725..adeceb8d4ef1 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -85,10 +85,12 @@ jobs: steps: - pwsh: | Write-Host 'show the current log4j versions' - gci /mnt/vss/__work -ErrorAction SilentlyContinue | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host + gci /mnt/vss | Write-Host + gci /mnt/vss/__work | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository | Write-Host displayName: 'Show the current log4j versions in the cache' - condition: succeededOrFailed() + continueOnError: true + # Skip sparse checkout for the `azure-sdk-for--pr` private mirrored repositories # as we require the GitHub service connection to be loaded. @@ -264,10 +266,11 @@ jobs: - pwsh: | Write-Host 'show the current log4j versions' - gci /mnt/vss/__work/1 -ErrorAction SilentlyContinue | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository -ErrorAction SilentlyContinue | Write-Host + gci /mnt/vss | Write-Host + gci /mnt/vss/__work/1 | Write-Host + gci -r /mnt/vss/__work/1/.m2/repository | Write-Host displayName: 'Show the current log4j versions in the cache' - condition: succeededOrFailed() + continueOnError: true - template: /eng/pipelines/templates/steps/post-job-cleanup.yml From c2b151f9c830e86ef1af1300eb1c9fb2ae50fed5 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 17:12:37 -0800 Subject: [PATCH 09/15] change logging level --- eng/pipelines/templates/variables/globals.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 8af9ab589390..551634430e1a 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -19,7 +19,7 @@ variables: IsDebug: $[coalesce(variables['System.Debug'], 'false')] # Sets the Maven log level to either the LogLevel passed in the manual pipeline run or the default 'warn' - MavenLogLevel: $[coalesce(variables['LogLevel'], 'debug')] + MavenLogLevel: $[coalesce(variables['LogLevel'], 'info')] # Maven build/test options MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository From 192a94171e5808b6430d29e13a7b7256211bd1ed Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 17:21:11 -0800 Subject: [PATCH 10/15] fixup path --- eng/pipelines/templates/jobs/ci.tests.yml | 8 ++++---- eng/pipelines/templates/jobs/ci.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index c3ec803567d5..6ff31e19d521 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -107,8 +107,8 @@ jobs: - pwsh: | Write-Host 'show the current log4j versions' - gci /mnt/vss/__work/1 | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository | Write-Host + gci /mnt/vss/_work/1 -ErrorAction Continue | Write-Host + gci -r /mnt/vss/_work/1/.m2/repository -ErrorAction Continue| Write-Host displayName: 'Show the current log4j versions in the cache' continueOnError: true @@ -185,7 +185,7 @@ jobs: - pwsh: | Write-Host 'show the current log4j versions' - gci /mnt/vss/__work/1 | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository | Write-Host + gci /mnt/vss/_work/1 -ErrorAction Continue | Write-Host + gci -r /mnt/vss/_work/1/.m2/repository -ErrorAction Continue | Write-Host displayName: 'Show the current log4j versions in the cache' continueOnError: true diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index adeceb8d4ef1..830f1378f80f 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -86,8 +86,8 @@ jobs: - pwsh: | Write-Host 'show the current log4j versions' gci /mnt/vss | Write-Host - gci /mnt/vss/__work | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository | Write-Host + gci /mnt/vss/_work -ErrorAction Continue | Write-Host + gci -r /mnt/vss/_work/1/.m2/repository -ErrorAction Continue | Write-Host displayName: 'Show the current log4j versions in the cache' continueOnError: true @@ -267,8 +267,8 @@ jobs: - pwsh: | Write-Host 'show the current log4j versions' gci /mnt/vss | Write-Host - gci /mnt/vss/__work/1 | Write-Host - gci -r /mnt/vss/__work/1/.m2/repository | Write-Host + gci /mnt/vss/_work/1 -ErrorAction Continue | Write-Host + gci -r /mnt/vss/_work/1/.m2/repository -ErrorAction Continue | Write-Host displayName: 'Show the current log4j versions in the cache' continueOnError: true From 0ffa87743299efc6a8b7043e6083ce3252410603 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 17:33:45 -0800 Subject: [PATCH 11/15] maybe we need verbose.. --- eng/pipelines/templates/variables/globals.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 551634430e1a..651d44649fc6 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -19,7 +19,7 @@ variables: IsDebug: $[coalesce(variables['System.Debug'], 'false')] # Sets the Maven log level to either the LogLevel passed in the manual pipeline run or the default 'warn' - MavenLogLevel: $[coalesce(variables['LogLevel'], 'info')] + MavenLogLevel: $[coalesce(variables['LogLevel'], 'verbose')] # Maven build/test options MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository From 3a75bca2967653c39f7791e2757556d1811468d9 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 17:40:35 -0800 Subject: [PATCH 12/15] back to full debug --- eng/pipelines/templates/variables/globals.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 651d44649fc6..8af9ab589390 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -19,7 +19,7 @@ variables: IsDebug: $[coalesce(variables['System.Debug'], 'false')] # Sets the Maven log level to either the LogLevel passed in the manual pipeline run or the default 'warn' - MavenLogLevel: $[coalesce(variables['LogLevel'], 'verbose')] + MavenLogLevel: $[coalesce(variables['LogLevel'], 'debug')] # Maven build/test options MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository From fd648003894e5c16f3f288aee8c422d98cdfe8f3 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 17:53:13 -0800 Subject: [PATCH 13/15] turn up the maven download logging --- eng/pipelines/templates/variables/globals.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 8af9ab589390..41f5bd149c53 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -27,7 +27,7 @@ variables: # If reports about Maven dependency downloads become more common investigate re-introducing "-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false", or other iterations of the configurations. WagonOptions: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.pool=false' DefaultOptions: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER) --batch-mode --fail-at-end --settings eng/settings.xml $(WagonOptions)' - LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=$(MavenLogLevel) -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' + LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=$(MavenLogLevel) -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=debug' MemoryOptions: '-Xmx4096m' DefaultSkipOptions: '-Dgpg.skip -Dmaven.javadoc.skip=true -Dcodesnippet.skip=true -Dspotbugs.skip=true -Dcheckstyle.skip=true -Drevapi.skip=true -DtrimStackTrace=false -Dspotless.apply.skip=true -Dspotless.check.skip=true' DefaultTestOptions: '$(DefaultOptions) $(DefaultSkipOptions) -pl $(ProjectList)' From 6e17917d04a26240932c9673b5b57fa2cea8855c Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 18:12:14 -0800 Subject: [PATCH 14/15] more fine grained --- eng/pipelines/templates/jobs/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 830f1378f80f..63059240a383 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -183,6 +183,13 @@ jobs: - script: | python -m pip install markdown2==2.4.6 BeautifulSoup4==4.11.1 displayName: 'pip install markdown2 and BeautifulSoup4' + - pwsh: | + Write-Host 'show the current log4j versions' + gci /mnt/vss | Write-Host + gci /mnt/vss/_work -ErrorAction Continue | Write-Host + gci -r /mnt/vss/_work/1/.m2/repository -ErrorAction Continue | Write-Host + displayName: 'Show the current log4j versions in the cache' + continueOnError: true - task: Maven@4 displayName: 'Build and Package, JDK Version: ${{ parameters.JavaBuildVersion }}' @@ -196,6 +203,14 @@ jobs: jdkArchitectureOption: 'x64' publishJUnitResults: false + - pwsh: | + Write-Host 'show the current log4j versions' + gci /mnt/vss | Write-Host + gci /mnt/vss/_work -ErrorAction Continue | Write-Host + gci -r /mnt/vss/_work/1/.m2/repository -ErrorAction Continue | Write-Host + displayName: 'Show the current log4j versions in the cache' + continueOnError: true + - task: PowerShell@2 displayName: 'Verify Required Maven Artifacts' inputs: From eb68c457e1b278417181f3a39444e88e2ec61d90 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Fri, 7 Mar 2025 18:24:56 -0800 Subject: [PATCH 15/15] break the cache --- .../steps/generate-project-list-and-cache-maven-repository.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/steps/generate-project-list-and-cache-maven-repository.yml b/eng/pipelines/templates/steps/generate-project-list-and-cache-maven-repository.yml index da5b450f5575..bd757668e362 100644 --- a/eng/pipelines/templates/steps/generate-project-list-and-cache-maven-repository.yml +++ b/eng/pipelines/templates/steps/generate-project-list-and-cache-maven-repository.yml @@ -72,6 +72,6 @@ steps: inputs: # Note: CacheSalt is only intended to be used in special cases, as a build is queued, to force a cache miss. # This would be set as a variable in the UI when the run is queued. - key: 'maven | "$(CacheSalt)" | "$(Agent.OS)" | $(Build.SourcesDirectory)/eng/versioning/external_dependencies.txt | "$(ProjectListSha256)" | "${{ parameters.JobType }}" | "$(TestFromSource)"' + key: 'ver2 | maven | "$(CacheSalt)" | "$(Agent.OS)" | $(Build.SourcesDirectory)/eng/versioning/external_dependencies.txt | "$(ProjectListSha256)" | "${{ parameters.JobType }}" | "$(TestFromSource)"' path: $(MAVEN_CACHE_FOLDER) displayName: Cache Maven local repo