Skip to content

Conversation

@lexnv
Copy link
Contributor

@lexnv lexnv commented Dec 18, 2025

Sometimes the CI is wrongly detecting the metadata-hash feature as being enabled for glutton based runtimes:

To improve this check:

  • grep is used in quiet mode to avoid stdout/stderr pollution for our checks
  • glutton runtimes are entirely skipped for the metadata-hash feature

Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
FEATURES=""
# Find out if the `metadata-hash` feature exists for the given package.
if cargo metadata --format-version=1 | jq '.packages[] | select(.name=="${{ matrix.runtime.package }}") | .features' | grep metadata-hash; then
# Exclude glutton runtimes as they don't support metadata-hash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser, the point of thks if is to filter out packages that don't have the feature. So, we should fix this and not ignoring particular packages. I remember having fixed this at some point, but maybe my memory is not correct.

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.

2 participants