Skip to content

ts: ignore Spack warning lines in source-sh install tests - #703

Open
xdelaruelle wants to merge 1 commit into
envmodules:mainfrom
xdelaruelle:ts-spack-stderr-warnings
Open

xdelaruelle wants to merge 1 commit into
envmodules:mainfrom
xdelaruelle:ts-spack-stderr-warnings

Conversation

@xdelaruelle

Copy link
Copy Markdown
Collaborator

Spack reports on stderr the warnings raised when loading its package repository, for instance the SyntaxWarning that Python 3.12+ emits over the invalid escape sequence in the recently added krona package (see spack/spack-packages#6525, fix proposed in spack/spack-packages#6526). It makes the bash source-sh test case fail on the tcl91 CI job, the only one running with a recent Python version.

These warnings are unrelated to what the source-sh tests check, so the ==> Warning: lines are now dropped from stderr before comparison for the Spack test cases.

Spack reports on stderr the warnings raised when loading its package
repository, for instance the syntax warning emitted by Python 3.12+ over
an invalid escape sequence in a package file. Such a warning, introduced
by the krona package, makes the bash source-sh test case fail on the
tcl91 CI job, the only one running with a recent Python version.

These warnings are unrelated to what is tested here, so drop the
"==> Warning:" lines from stderr before comparing it against the
expected output of the Spack test cases.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
@codecov

codecov Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant