Skip to content

Fix SVGO zero percent filtering in CI - #9422

Merged
Alkarex merged 1 commit into
FreshRSS:edgefrom
Inverle:fix-zero-percent-svgo-filtering-ci
Oct 9, 2026
Merged

Alkarex merged 1 commit into
FreshRSS:edgefrom
Inverle:fix-zero-percent-svgo-filtering-ci

Conversation

@Inverle

@Inverle Inverle commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Because of the environment variable CI=true being passed in GitHub Actions to SVGO, it outputted colored text with ANSI escape sequences, which broke the awk 0% filtering (for unchanged files).

Ref: #9361 (comment)

@Inverle Inverle added this to the 1.30.2 milestone Oct 8, 2026
@Inverle Inverle added System care Everything related to system care Bug (confirmed) 🐞 issues that are reproducible github_actions Pull requests that update GitHub Actions code labels Oct 8, 2026
Comment thread package.json
"markdownlint_fix": "markdownlint-cli2 --fix",
"rtlcss": "rtlcss -d p/themes/ && find p/themes/ -type f -name '*.rtl.rtl.css' -delete",
"svgo": "find p/ docs/ -name '*.svg' -exec svgo {} + | awk '/:$/{name=$0;next} /KiB/ && !/ - 0% /{print name; print}'",
"svgo": "find p/ docs/ -name '*.svg' -exec svgo --no-color {} + | awk '/:$/{name=$0;next} /KiB/ && !/ - 0% /{print name; print}'",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

--no-color is not settable in svgo.config.mjs, only alternative is passing NO_COLOR=true using a env block in the SVG optimize step in tests.yml.

@Alkarex
Alkarex merged commit 07617c4 into FreshRSS:edge Oct 9, 2026
3 checks passed
@Inverle
Inverle deleted the fix-zero-percent-svgo-filtering-ci branch October 9, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug (confirmed) 🐞 issues that are reproducible github_actions Pull requests that update GitHub Actions code System care Everything related to system care

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants