Skip to content

.github/workflows/releng-audit: handle simultaneous override and fail… - #68913

Merged
batrick merged 3 commits into
ceph:mainfrom
batrick:releng-audit-override-fix
May 14, 2026
Merged

batrick merged 3 commits into
ceph:mainfrom
batrick:releng-audit-override-fix

Conversation

@batrick

@batrick batrick commented May 14, 2026 •

Copy link
Copy Markdown
Member

… label changes

And add branch debugging.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

… label changes

And add branch debugging.

Signed-off-by: Patrick Donnelly <[email protected]>
@batrick
batrick requested a review from idryomov May 14, 2026 16:50
@batrick batrick added the script label May 14, 2026
@github-actions github-actions Bot added the CI Continuous Integration label May 14, 2026
batrick added 2 commits May 14, 2026 13:39
In order to make this a required check someday, we can't have the main
job ever be skipped. So, consolidate into a single job and skip actions
based on the router logic.

Signed-off-by: Patrick Donnelly <[email protected]>
@batrick
batrick merged commit 360a475 into ceph:main May 14, 2026
6 checks passed
@batrick
batrick deleted the releng-audit-override-fix branch May 14, 2026 23:51
// --- OPENED / REOPENED ---
if (eventName === 'pull_request_target' && (payload.action === 'opened' || payload.action === 'reopened')) {
core.info(`[Router] PR ${payload.action}. Triggering audit.`);
core.setOutput('run_audit', 'true');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should the override label be removed on reopened the same way it's removed when new commits are pushed? I wonder if it's possible for the PR to be closed with the override label, new commits pushed to the branch and the PR be reopened with the label still there.

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.

Thanks, addressed here: #68937

}
} catch (error) {}
const { data: permData } = await github.rest.repos.getCollaboratorPermissionLevel({ owner: context.repo.owner, repo: context.repo.repo, username: actor });
if (permData.permission === 'admin' || permData.permission === 'maintain') isAuthorized = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

isAuthorized code could probably be refactored into a method -- it's duplicated in two places now.

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.

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

Labels

CI Continuous Integration script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants