Repository navigation
Conversation
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
October 2, 2026 10:37
ModeSevenIndustrialSolutions
force-pushed
the
fix/dependabot-group-suffix-relax
branch
from
October 2, 2026 11:00
5e09d5a to
2df8edc
Compare
ModeSevenIndustrialSolutions
force-pushed
the
fix/dependabot-group-suffix-relax
branch
from
October 2, 2026 11:06
2df8edc to
e4f76d1
Compare
ModeSevenIndustrialSolutions
force-pushed
the
fix/dependabot-group-suffix-relax
branch
from
October 2, 2026 11:17
e4f76d1 to
6401ea4
Compare
Dependabot pull requests that bump one dependency in a group now fail
the Semantic Pull Request check, as on gha-workflow-linter#387 and
github2gerrit-action#464.
dependabot-core d0bf3df (2026-09-30) changed how a commit subject over
72 characters is shortened. Its version fragment match now runs on to
' in /<dir>', ' (via audit fix)' or the end of the title instead of
stopping at the next space. A grouped title therefore loses its
' in the <group> group across N directory' suffix with the versions,
and a subject still too long is then cut at its first ' in ':
title: Chore: Bump virtualenv from 20.36.1 to 21.7.13 in the uv
group across 1 directory
subject: Chore: Bump virtualenv
The same change drops a library requirement containing spaces, such
as '^0.20, ^0.21', as a whole. A ' (via audit fix)' marker stays in
the subject, so the cut can leave a deletion either side of it.
relax_matches accepted a removed span reading exactly 'from <old> to
<new>' with single-token values, so it kept the strict match for these
subjects. Now:
- Where both strings carry the audit fix marker, it must sit where
Dependabot writes it: after the version fragment in the title, with
the subject keeping the text after it whole or not at all. There,
remove it from each so the deletion reads as one span; anywhere
else the match stays strict.
- Let each value continue with requirement tokens: a token carrying a
digit, a token of symbols alone, or one of 'and', 'or' (Hex), 'v'
(Elm) and 'as' (Composer). Words such as 'to', 'in' and prose never
extend a value, so neither value can swallow the other or the
context after it.
- Let the span carry the context Dependabot appends to a title, in
its order and wording: ' in /<dir>', then ' in the <group> group',
then ' across <N> directory'. The directory may contain spaces, up
to the 'in' that starts a group suffix.
The single-span, whitespace-boundary and author guards are unchanged,
and any other trailing text keeps the strict match. A marker placed
ahead of the version fragment, which Dependabot never writes, now
keeps the strict match where it used to pass as a trailing fragment.
Each new relax fixture is the output of Dependabot's current
commit_subject for its title, including dependabot-core's own
multi-token requirement fixture; new strict fixtures pin the guards on
the added context, requirement tokens and audit marker. The bash
fixture harness has no expected-fail marker, so the tests ship in the
same commit as the fix.
Copilot review:
- Multi-token requirements were still rejected; now accepted, with
the upstream fixture added.
- Elm ranges such as '1.0.0 <= v < 2.0.0' were rejected; 'v' is now a
requirement token, with an Elm fixture added.
- An audit fix title cut at ' in ' left two deleted spans either side
of the retained marker; the marker is now removed from both first.
- The review overview noted Composer aliases ('dev-main as 1.0.x-dev')
were rejected; 'as' is now a requirement token. Operator tokens are
generalised to any symbol-only token, which also covers Julia's
Unicode comparison operators.
- Removing the marker unconditionally hid a moved marker; it is now
removed only where Dependabot writes it.
- A directory containing spaces was rejected; it may now run over
several words, up to the 'in' of a group suffix.
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
force-pushed
the
fix/dependabot-group-suffix-relax
branch
from
October 2, 2026 11:25
6401ea4 to
34947a2
Compare
tykeal
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Dependabot pull requests that bump one dependency in a group now fail the org-wide Semantic Pull Request check, for example:
The org ruleset already runs the migrated workflow (
lfreleng-actions/.github→generic-workflows@v0.3.1), and the relax logic is the same onmain. The failure comes from a change in Dependabot itself.Cause
dependabot-core
d0bf3df(merged 2026-09-30) changed howcommit_subjectshortens a subject over 72 characters:/ from [^\s]*? to [^\s]*/%r{ from .+? to .+?(?= \(via audit fix\)| in /|\z)}The new match runs on to
in /<dir>,(via audit fix)or the end of the title instead of stopping at the next space. Three things follow:A group suffix doesn't stop the match, so it goes along with the versions. If the subject is still too long, Dependabot then cuts it at its first
in:Chore: Bump virtualenv from 20.36.1 to 21.7.13 in the uv group across 1 directoryd0bf3df)Chore: Bump virtualenv in the uv group across 1 directoryChore: Bump virtualenvA library requirement containing spaces is dropped whole:
Update JSON requirement from ^0.20, ^0.21 to ^0.20, ^0.21, 1.5 in /BasicPackage.jlbecomesUpdate JSON requirement in /BasicPackage.jl. This is dependabot-core's own fixture for the change.A
(via audit fix)marker stays in the subject, so theincut can leave a deletion on each side of it:… from 0.48b0 to 0.49b0 (via audit fix) in the uv groupbecomes… (via audit fix).relax_matchesaccepted a removed span reading exactlyfrom <old> to <new>with single-token values, so it kept the strict match for all three forms.Change
relax_matches:(via audit fix), the marker must sit where Dependabot writes it: straight after the version fragment in the title, with the subject keeping the title's post-marker text whole or not at all. In that case the marker is removed from each string before the single-span test, so the deletion reads as one span. Anywhere else, someone moved the marker and the match stays strict.>=,~>,||,,,≥, …), or one ofand/or(Hex),v(Elm,1.0.0 <= v < 2.0.0) andas(Composer,dev-main as 1.0.x-dev). Words such asto,inand prose never extend a value, so neither value can swallow the other or the trailing context.in /<dir>, thenin the <group> group, thenacross <N> directory(ordirectories). The directory may contain spaces, up to theinthat starts a group suffix. Any other trailing text keeps the strict match.Bump foo (via audit fix) from 1 to 2. The old rule passed that as a trailing fragment, but Dependabot never writes it, so it now stays strict. Nothing Dependabot writes that passed before starts failing.tests/test-relax-matches.sh). Every newrelaxsubject was generated by running Dependabot's currentcommit_subjecton its title:relaxcases:strictcases:in the …span, text after the group suffix (with and without a directory), directory and group in reverse order, a non-numeric directory count, and a directory without its leading slashasd0bf3dffixture stays, because older Dependabot output is still valid.README.mdanddocs/semantic-pull-request.mdnow describe the new behaviour, with new table rows.Validation
tests/test-relax-matches.sh: 52/52 pass under bash 5.3 and bash 3.2, inCandC.UTF-8locales. Againstupstream/mainthe same fixtures fail 17 cases: 16 new relax cases for formatsupstream/mainrejects, plus the intentional moved-marker narrowing.prek run --fileson all changed files: pass.zizmor --persona=auditor, offline and online: no findings.scripts/agents/aislop-gate.sh upstream/main): clean.Rollout
Once this is merged and released, the pin in
lfreleng-actions/.github.github/workflows/semantic-pull-request.yaml(currently4bff3c4d, v0.3.1) needs bumping. TheMandatory workflowsorg ruleset runs that file. The blocked Dependabot PRs then need their check re-run.