Skip to content

Conversation

@tuminoid
Copy link
Member

Rewrite the all-owners.sh due it growing complex and upstream data formats changing:

  • First line of approvers were always mangled from data format change in CNCF CSV, fixed that.
  • Fixed looking up the emails with logic:
    • if email exists in the ALL-OWNERS, keep it
    • try locating it in the CNCF CSV, or in Git repos
  • The repos were cloned in current dir, clone them in /tmp.

Due prevervation of emails logic, the usage changes to ./all-owners.sh as otherwise bash redirect > null the file before the script has chance to read it as input. If redirect is used, then it will ignore the existing emails and dig up and email that was last used. Currently this results in one email changing.

- First line of approvers were always mangled from data format change
  in CNCF CSV, fixed that.
- Fixed looking up the emails with logic:
  - if email exists in the ALL-OWNERS, keep it
  - try locating it in the CNCF CSV, or in Git repos
- The repos were cloned in current dir, clone them in /tmp.
- Refactor the whole script into functions that can be understood, the
  logic in main was getting out of hand.

Due prevervation of emails logic, the usage changes to `./all-owners.sh`
as otherwise bash redirect `>` null the file before the script has
chance to read it as input.

Signed-off-by: Tuomo Tanskanen <[email protected]>
@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kashifest for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 19, 2025
@tuminoid
Copy link
Member Author

/cc @kashifest @Rozzii

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

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants