Skip to content

Fix commit validation workflow#6593

Open
cevich wants to merge 2 commits intocontainers:mainfrom
cevich:fix_commit_validation_workflow
Open

Fix commit validation workflow#6593
cevich wants to merge 2 commits intocontainers:mainfrom
cevich:fix_commit_validation_workflow

Conversation

@cevich
Copy link
Member

@cevich cevich commented Dec 10, 2025

What type of PR is this?

/kind other

What this PR does / why we need it:

Fix commit title-length checking workflow bug. Also, skip running this check for PR's NOT targeting the main branch. These are typically renovate and/or release-branches that often have extended commit titles w/ additional context details.

How to verify it

The workflow will fail on this PR when the very long 'DO NOT MERGE:...' commit is included. But the workflow will pass when that commit is removed.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

Frequently when run against non-main branches, commits have been
backported with a `[<branch name>]` prefix in their title(s).  This can
easily cause them to run over the title-length checker action.  Fix this
by restricting it to only running on pull requests targeted at the
`main` branch.

Signed-off-by: Chris Evich <cevich@redhat.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cevich
Once this PR has been reviewed and has the lgtm label, please assign luap99 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cevich cevich marked this pull request as draft December 10, 2025 15:25
@cevich
Copy link
Member Author

cevich commented Dec 10, 2025

Ref: Workflow log with the too-long "DO NOT MERGE: ..." commit 26a4c1c.

@cevich cevich force-pushed the fix_commit_validation_workflow branch from 26a4c1c to 614666c Compare December 10, 2025 15:27
@packit-as-a-service
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

@cevich
Copy link
Member Author

cevich commented Dec 10, 2025

Ref: Workflow log without the too-long "DO NOT MERGE: ..."

@cevich cevich marked this pull request as ready for review December 10, 2025 15:28
@TomSweeneyRedHat
Copy link
Member

@cevich I like the idea, but the tests don't as of yet.

@cevich
Copy link
Member Author

cevich commented Jan 5, 2026

Ugh, must be flakes. I didn't touch any code other than the workflow! 😞 I'll rebase and re-run shortly.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 5, 2026
@cevich
Copy link
Member Author

cevich commented Jan 5, 2026

There we go, the Cirrus tests are all green. I dunno about the testing farm stuff and/or if that's required or not.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

A friendly reminder that this PR had no activity for 30 days.

@nalind
Copy link
Member

nalind commented Feb 10, 2026

This looks like it'll accomplish the goal, but once we limit the validation check to main, I'm not sure how much we want to also be raising the limit on the number of commits in a PR that the check can handle.

@github-actions github-actions bot removed the stale-pr label Feb 11, 2026
@cevich
Copy link
Member Author

cevich commented Feb 11, 2026

I'm not sure how much we want to also be raising the limit on the number of commits in a PR that the check can handle.

I'm not sure what the actual limit is, but by my understanding, there's also no way to increase that limit. The solution would have to be "use a different tool".

For now, IMHO it's probably fine to have this but keep is as "optional" in case it fails again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/other size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants