Skip to content

Conversation

@GeorgeSapkin
Copy link
Member

@GeorgeSapkin GeorgeSapkin commented Nov 4, 2025

Formality checks are now unified into a single script that is meant to be shared between all the feeds.

Author and Signed-off-by email cannot be a GitHub noreply email as per the contributing guidelines. Which is a common issues in luci and packages feeds.

Add Weblate exceptions for the luci feed.

Extract the script to a separate file for easier maintainability and debugging.

Example failing job: https://github.com/GeorgeSapkin/openwrt-packages/actions/runs/19117211025/job/54629195566?pr=3#step:5:7
Example passing job: https://github.com/GeorgeSapkin/openwrt-packages/actions/runs/19117490411/job/54630136784?pr=3#step:5:7

TODO:

  • integrate luci feed checks

@GeorgeSapkin GeorgeSapkin force-pushed the formal-check-for-github-sob branch from 0a99eb1 to 00aad6f Compare November 4, 2025 19:23
@GeorgeSapkin GeorgeSapkin changed the title formal: add SOB check for GitHub noreply email formal: check author and SOB for GitHub noreply email Nov 4, 2025
@GeorgeSapkin GeorgeSapkin force-pushed the formal-check-for-github-sob branch from 00aad6f to b7803a1 Compare November 4, 2025 19:24
@BKPepe
Copy link
Member

BKPepe commented Nov 4, 2025

Ping @systemcrash , who has similar thing in LuCI repository.

@systemcrash
Copy link
Contributor

@GeorgeSapkin you can see my simple if condition here:
https://github.com/openwrt/luci/blob/master/.github/workflows/formal.yml

( I have no commit rights to the openwrt/actions-shared-workflows repo to amend that workflow )

@GeorgeSapkin
Copy link
Member Author

Any reason luci has its own formalities (besides Weblate)? I thought they were shared between repos.

Other than that, the checks look pretty similar.

@BKPepe
Copy link
Member

BKPepe commented Nov 5, 2025

Any reason luci has its own formalities (besides Weblate)?

That's a good question, I asked the same while creating openwrt/luci#7821 and openwrt/luci@4dc7a4e#commitcomment-158889550

The goal is indeed to have it shared between all repos, though. 😇

( I have no commit rights to the openwrt/actions-shared-workflows repo to amend that workflow )

No worries! Just go ahead and submit a PR. It'll be reviewed and merged if everything looks good.

@Ansuel
Copy link
Member

Ansuel commented Nov 5, 2025

@BKPepe I think it's because weblate is only used by luci so it should be a specific workaround for that.

It's ok if we add the workaround here tho :D

@GeorgeSapkin GeorgeSapkin marked this pull request as draft November 5, 2025 17:02
@GeorgeSapkin GeorgeSapkin force-pushed the formal-check-for-github-sob branch from b7803a1 to 20e5ca8 Compare November 5, 2025 21:59
@GeorgeSapkin GeorgeSapkin changed the title formal: check author and SOB for GitHub noreply email formal: refactor and unify formality checks Nov 5, 2025
@GeorgeSapkin
Copy link
Member Author

I integrated the Weblate checks from luci feed and extracted the script to a separate file for easier maintainability and debugging.

@GeorgeSapkin GeorgeSapkin marked this pull request as ready for review November 5, 2025 22:03
@GeorgeSapkin GeorgeSapkin force-pushed the formal-check-for-github-sob branch 2 times, most recently from 7b46c02 to 5c0448f Compare November 5, 2025 22:12
fi

body="$(git show -s --format=%b $commit)"
sob="$(git show -s --format='Signed-off-by: %aN <%aE>' $commit)"
Copy link
Member

Choose a reason for hiding this comment

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

While we're at it, I have a question and I’m not sure if we can address it within this PR.

@Ansuel, @aparcar, what is the policy on using AI to create pull requests and commits?
For example: openwrt/packages#27714

Is this accepted in OpenWrt? These changes are actually not bad and I would merge them, but they can’t pass our checks. :(

Copy link
Member

Choose a reason for hiding this comment

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

@BKPepe that is annoying but a good point... Actually impressed by that pr. Aside from formal and stuff it looks O.K.

Maybe we should discuss them on mailing list.

@Ansuel
Copy link
Member

Ansuel commented Nov 7, 2025

@BKPepe do you think we are ok with merging this?

Copy link
Member

@BKPepe BKPepe left a comment

Choose a reason for hiding this comment

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

Otherwise 👍. Thank you! This is really amazing. Hopefully, LuCI repository will use it as well to have really shared workflow.

@Ansuel
Copy link
Member

Ansuel commented Nov 7, 2025

@BKPepe if only github released the paid feature to introduce organization wide workflow... This would have been even easier to implement.

https://github.blog/enterprise-software/devops/introducing-required-workflows-and-configuration-variables-to-github-actions/

Formality checks are now unified into a single script that is meant to
be shared between all the feeds.

Author and Signed-off-by email cannot be a GitHub noreply email as per
the contributing guidelines.

Add Weblate exceptions for the luci feed.

Extract the script to a separate file for easier maintainability and
debugging.

Signed-off-by: George Sapkin <[email protected]>
@GeorgeSapkin GeorgeSapkin force-pushed the formal-check-for-github-sob branch from 5c0448f to 710b121 Compare November 7, 2025 11:32
@Ansuel Ansuel merged commit 34ee17c into openwrt:main Nov 7, 2025
1 check passed
@GeorgeSapkin GeorgeSapkin deleted the formal-check-for-github-sob branch November 7, 2025 11:40
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.

4 participants