Skip to contentSkip to conversation

ci: ignore rubygems warning in the "Documentation" job

PATCH In review Johannes Schindelin via GitGitGadget 2 participants 2 messages Feb 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ci: ignore rubygems warning in the "Documentation" job

From: Johannes Schindelin <[email protected]>

A recent update in the Linux VM images used by Azure Pipelines surfaced a new problem in the "Documentation" job. Apparently, this warning appears 396 times on stderr when running make doc:

/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated

This problem was already reported to the rubygems project via
https://github.com/rubygems/rubygems/issues/3068.

As there is nothing Git can do about this warning, and as the "Documentation" job reports this warning as a failure, let's just silence it and move on.

---
Fix CI/PR failures in the "Documentation" job

It would probably make sense to apply this to maint, too, as it will cause CI failures even if there is nothing actionable to be done to really fix this on Git's side.

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-707%2Fdscho%2Fworkaround-for-rubygems-using-deprecated-component-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-707/dscho/workaround-for-rubygems-using-deprecated-component-v1
Pull-Request: https://github.com/git/git/pull/707

 ci/test-documentation.sh | 1 +
 1 file changed, 1 insertion(+)
ci/test-documentation.sh +1 -0
index b3e76ef863..de41888430 100755
@@ -7,6 +7,7 @@
 
 filter_log () {
 	sed -e '/^GIT_VERSION = /d' \
+	    -e "/constant Gem::ConfigMap is deprecated/d" \
 	    -e '/^    \* new asciidoc flags$/d' \
 	    -e '/stripped namespace before processing/d' \
 	    -e '/Attributed.*IDs for element/d' \

base-commit: d0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783

Signature · 1 line
gitgitgadget
#1 lore raw

Hi Johannes,

Quoted 6 lines · Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

A recent update in the Linux VM images used by Azure Pipelines surfaced a new problem in the "Documentation" job. Apparently, this warning appears 396 times on stderr when running make doc:

Quoted 8 lines

/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated

This problem was already reported to the rubygems project via
https://github.com/rubygems/rubygems/issues/3068.

As there is nothing Git can do about this warning, and as the "Documentation" job reports this warning as a failure, let's just silence it and move on.

Thanks for explaining, and for taking time to silence errors such as these that we can't do anything about. Everything as explained makes good sense to me.

Quoted 28 lines

---
Fix CI/PR failures in the "Documentation" job

It would probably make sense to apply this to maint, too, as it will cause CI failures even if there is nothing actionable to be done to really fix this on Git's side.

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-707%2Fdscho%2Fworkaround-for-rubygems-using-deprecated-component-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-707/dscho/workaround-for-rubygems-using-deprecated-component-v1
Pull-Request: https://github.com/git/git/pull/707

 ci/test-documentation.sh | 1 +
 1 file changed, 1 insertion(+)
ci/test-documentation.sh +1 -0
index b3e76ef863..de41888430 100755
@@ -7,6 +7,7 @@
 
 filter_log () {
 	sed -e '/^GIT_VERSION = /d' \
+	    -e "/constant Gem::ConfigMap is deprecated/d" \
 	    -e '/^    \* new asciidoc flags$/d' \
 	    -e '/stripped namespace before processing/d' \
 	    -e '/Attributed.*IDs for element/d' \
Quoted 3 lines

base-commit: d0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783 --
gitgitgadget

Thanks,
Taylor