Skip to content

Conversation

@BKPepe
Copy link
Member

@BKPepe BKPepe commented Oct 3, 2025

Most of the time, when people want to contribute to the repository for the first time or after a longer break, the multi-arch-test-build passes, but the formality check fails
and requires the user to make some changes.

This puts quite a load on the CI/CD, since the multi-arch-test-build runs again even though it already passed before.

Let’s now set it up so that the formality check is resolved first, and only then the package tests are executed.

@BKPepe BKPepe force-pushed the RunPackagesTestAfterFormality branch 3 times, most recently from d599913 to f1497d8 Compare October 3, 2025 11:35
@1715173329
Copy link
Member

I'm not sure if this is really necessary but LGTM

@BKPepe BKPepe force-pushed the RunPackagesTestAfterFormality branch from f1497d8 to 3bc6658 Compare October 3, 2025 13:09
Most of the time, when people contribute to the repository for the first time
 (or after a longer break), the multi-arch-test-build passes, but the
formality check fails and requires the contributor to make some changes.

This creates unnecessary load on the CI/CD, since the multi-arch-test-build
runs again even though it already passed, while other PRs are waiting for a runner.
Hopefully, this change will help decrease the waiting time.

Proposed changes:

- Run the formality check first, and only trigger the package tests afterwards.
This can be done using needs: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idneeds

- Merge formal.yml into multi-arch-test-build.yml so that needs can be used.

Signed-off-by: Josef Schlehofer <[email protected]>
@BKPepe BKPepe force-pushed the RunPackagesTestAfterFormality branch from 3bc6658 to 115e9c6 Compare October 3, 2025 13:12
@BKPepe
Copy link
Member Author

BKPepe commented Oct 3, 2025

Okay, I pushed a small change. I shorten the name of the workflow, because there is also job's name. Also, improved the commit description a little bit. Thus this is ready. It does what it should. 😇

Well, I hope that this decrease the time while waiting for runner. Sometimes, it really takes ages.

@1715173329
Copy link
Member

The runners are taken by the core repository at the most of time, there're hundreds of tasks waiting to be checked.

@BKPepe BKPepe merged commit 4474f53 into openwrt:master Oct 5, 2025
11 of 12 checks passed
@wehagy
Copy link
Member

wehagy commented Oct 6, 2025

Indirectly, this “solves a problem” I encountered recently: once I chose to finish the code review before handling the formalities, after all the back and forth, the contributor did not want to use their real name. It’s a shame.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants