Skip to content

fix: properly extract tags that include forward slashes#5928

Merged
beckermr merged 1 commit intoregro:mainfrom
salim-b:patch-1
Apr 21, 2026
Merged

fix: properly extract tags that include forward slashes#5928
beckermr merged 1 commit intoregro:mainfrom
salim-b:patch-1

Conversation

@salim-b
Copy link
Copy Markdown
Contributor

@salim-b salim-b commented Apr 21, 2026

Fixes extracting tags from the github source (atom feed containing URLs of the form https://github.com/<owner>/<repo>/releases/tag/<tag> for all releases of a repository incl. side-packages).

Before, when a tag contained a forward slash like e.g. sass_api/17.5.0, everything up to and including the last slash was stripped, wrongly extracting 17.5.0 as the tag instead of the full sass_api/17.5.0 tag name. As a consequence, the bot.version_updates.allowed_tag_globs config setting wouldn't work as intended.

Description:

Checklist:

  • Pydantic model updated or no update needed

Cross-refs, links to issues, etc:

Copy link
Copy Markdown
Contributor

@beckermr beckermr left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Please add a test!

salim-b added a commit to salim-b/dart-sass-feedstock that referenced this pull request Apr 21, 2026
By default, all sources are enabled and the `github` update source currently has a bug when tags contain forward slashes, cf. regro/cf-scripts#5928.

This change works around this problem by only checking GitHub's `/releases/latest` API endpoint which is automatically limited to the primary latest release, ignoring side-packages like `sass_api`.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.69%. Comparing base (96da6a3) to head (25ae913).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5928      +/-   ##
==========================================
+ Coverage   80.62%   80.69%   +0.07%     
==========================================
  Files         146      146              
  Lines       17434    17442       +8     
==========================================
+ Hits        14056    14075      +19     
+ Misses       3378     3367      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@salim-b
Copy link
Copy Markdown
Contributor Author

salim-b commented Apr 21, 2026

Thanks for the PR! Please add a test!

Done :)

Fixes extracting tags from the `github` source (atom feed with URLs of
the form `https://github.com/<owner>/<repo>/releases/tag/<tag>`).

Before, when a tag contained a slash like e.g. `sass_api/17.5.0`,
everything up to and including the last slash was stripped prematurely,
wrongly passing `17.5.0` instead of the full `sass_api/17.5.0` tag name
when evaluating `is_tag_ignored()`. As a consequence, the
[`bot.version_updates.allowed_tag_globs`](https://conda-forge.org/docs/maintainer/conda_forge_yml/#bot)
config setting wouldn't work as intended.
Copy link
Copy Markdown
Contributor

@beckermr beckermr left a comment

Choose a reason for hiding this comment

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

The changes and tests look good. This could break existing globs on other feedstocks, but that is a risk we'll have to take I think.

@beckermr beckermr merged commit 1fca546 into regro:main Apr 21, 2026
11 checks passed
@salim-b salim-b deleted the patch-1 branch April 21, 2026 21:35
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