ci: run the checks on pull requests alone #279
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry!279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/checks-on-pr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The Maintenance workflow ran its checks twice for each merge: on the
pull request, then again on the push to
main, wherepublishwaitedfor them 11 to 13 minutes before updating the plugin marketplaces.
Merges fast-forward, so the push carries the commit the pull request's
run already checked.
What changed
The job
checksnow runs on pull requests tomainalone, andpublishruns on each push tomainat once, withoutneeds: checks.Before, both events ran the checks and
publishfollowed them.mainstays checked only while the forge protects it.docs/MAINTENANCE.mdnow says which protection to set: block directpushes, require the status of the Maintenance workflow's
checksjob,and require a pull request up to date with
main. Set these on theforge if they are not set yet.
How to verify
On branch tip
53632ec:prints
checks'sif: github.event_name == 'pull_request'andpublish'sif: github.event_name == 'push' && github.ref == 'refs/heads/main', and noneeds:; on baseb058b0eit also printsneeds: checksand no condition onchecks. Run as written.On the forge, this pull request's run should show
checksrunning andpublishskipped; after the merge, the push run should showchecksskipped and
publishstarting at once. Not yet observed.The checks of
docs/MAINTENANCE.mdpass on the tip: 427 agentconfiguration tests, the work-folder check tests, the shell check,
Prettier on the docs and the workflow, the static validator, and
git diff --check main.Considerations
Without the protection of
main, a direct push publishes uncheckedbuilds. The protection cannot be read or set from this change.
Command failed
The agent did not complete this command, so nothing came of it. A person should look at this thread.
The run failed at step "aoe_purge". The operator reads the job logs in the Windmill editor, or finds the run with:
wmill job list --path f/agents/bot_commands