Open systemcrash opened 2 months ago
That is intended as the comment suggest. Push events on openwrt main repo are on main branch and stable branch and we want to check every package.
About the package/check not correctly fixing stuff, that is a bug i think ? probably FIXUP=1 is not propagated?
we want to check every package.
maybe better to have two separate event handlers in the yaml - one for pushes to main, and one for PRs and their (force) pushes. Then the check and build is much quicker for those PRs where only a single package changed.
About the package/check not correctly fixing stuff, that is a bug i think ? probably FIXUP=1 is not propagated?
🤷
maybe better to have two separate event handlers in the yaml - one for pushes to main, and one for PRs and their (force) pushes. Then the check and build is much quicker for those PRs where only a single package changed.
but push to pr (on our side) are pr event so the condition of checking all the package should not be triggered.
Hmm - my action logs for single package changes show they check every package.
@systemcrash can you link the action? Are you sure it's not run on your repository?
The runs are in my repo - but that should not matter, or?
It does as you push commits to a branch, push on your repository are not handled by openwrt runner but by your runner.
Check here
https://github.com/openwrt/openwrt/actions "Pull request https://github.com/openwrt/openwrt/pull/14448 synchronize by roshii"
For push we have instead Build Kernel #10217: Commit 12137cb pushed by openwrt-bot
But here (my repository) (ignore the gravestone of failed actions ahahha) https://github.com/ansuel/openwrt/actions?page=2
The Determine Changed Packages step correctly determines the only changed package. But the Download and check packages code in the first post checks everything. So something isn't right, or could be better.
( Irrespective of which repo or runner )
I think the
||
logic here is wrong. All packages are checked even if only a single package has changed in a (force) push. It would seem that any push event always triggersmake package/check
(if [ "${{ github.event_name }}" = "push" ]
)Also, if only checksums have changed in a Makefile, package/check FIXUP=1 seems to do nothing locally (to warrant a
git add blah; git commit --amend ; git push --force
).