Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add debug on github-bot matrix subcommand + fixes #3244

Merged
merged 10 commits into from
Dec 2, 2024

Conversation

aeddi
Copy link
Contributor

@aeddi aeddi commented Nov 29, 2024

This PR will allow debugging errors of this type that unfortunately cannot be tested locally since they rely on the context of GitHub Actions.

Since I also had to add flags to the matrix subcommand, I moved the two matrix and check subcommands into subfolders.

This PR also modify the comment to stick to moul's request and fixes several Github Actions errors.

Related to #3238

Changes:

  • d11ad5a moves matrix and check subcommands to their own packages in internal
  • 462ac01 5c1edda ffdce93 adds a debug to matrix subcommand (print event input / matrix output) + direct output of matrix to GitHub Actions using a matrix-key flag
  • 6af501d embed comment template file as a string at compile time instead of opening it at runtime
  • 59c3ad6 modifies bot comment to meet this requirements
  • 241a755 filter out from the matrix generation and the PR processing all issues or closed PRs (process / list only opened PRs)
Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests

@Gno2D2
Copy link
Collaborator

Gno2D2 commented Nov 29, 2024

Merge Requirements

The following requirements must be fulfilled before a pull request can be merged.
Some requirement checks are automated and can be verified by the CI, while others need manual verification by a staff member.

These requirements are defined in this configuration file.

Automated Checks

🟢 Maintainers must be able to edit this pull request
🟢 The pull request head branch must be up-to-date with its base

Details
Maintainers must be able to edit this pull request

If

🟢 Condition met
└── 🟢 On every pull request

Then

🟢 Requirement satisfied
└── 🟢 Maintainer can modify this pull request

The pull request head branch must be up-to-date with its base

If

🟢 Condition met
└── 🟢 On every pull request

Then

🟢 Requirement satisfied
└── 🟢 Head branch (aeddi:dev/aeddi/fix-bot) is up to date with base (master): behind by 0 / ahead by 10

Manual Checks

  • The pull request description provides enough details
Details
The pull request description provides enough details

If

🟢 Condition met
└── 🟢 Not (🔴 Pull request author is a member of the team: core-contributors)

Can be checked by

  • team core-contributors

@aeddi aeddi force-pushed the dev/aeddi/fix-bot branch from 31e238c to 462ac01 Compare November 29, 2024 09:22
@aeddi aeddi force-pushed the dev/aeddi/fix-bot branch from 264c6c5 to 5c1edda Compare November 29, 2024 15:10
@aeddi aeddi marked this pull request as ready for review November 29, 2024 15:36
@aeddi
Copy link
Contributor Author

aeddi commented Nov 29, 2024

@moul does this comment change work for you? GnoCheckBot/demo#8 (comment)

@Kouteki Kouteki requested a review from zivkovicmilos December 1, 2024 03:21
@aeddi aeddi force-pushed the dev/aeddi/fix-bot branch from 467c212 to 241a755 Compare December 2, 2024 10:15
@aeddi aeddi changed the title ci: add debug on github-bot matrix subcommand ci: add debug on github-bot matrix subcommand + fixes Dec 2, 2024
@aeddi aeddi mentioned this pull request Dec 2, 2024
Copy link
Member

@thehowl thehowl left a comment

Choose a reason for hiding this comment

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

quickly skimmed; think we should merge and iterate in case of other issues. :)

@aeddi aeddi merged commit 8fa4997 into gnolang:master Dec 2, 2024
101 of 104 checks passed
@aeddi aeddi deleted the dev/aeddi/fix-bot branch December 2, 2024 17:57
r3v4s pushed a commit to gnoswap-labs/gno that referenced this pull request Dec 10, 2024
This PR will allow debugging errors of [this
type](https://github.com/gnolang/gno/actions/runs/12072757244) that
unfortunately cannot be tested locally since they rely on the context of
GitHub Actions.

Since I also had to add flags to the matrix subcommand, I moved the two
matrix and check subcommands into subfolders.

This PR also modify the comment to stick to moul's request and fixes
several Github Actions errors.

Related to gnolang#3238 

Changes:
-
gnolang@d11ad5a
moves matrix and check subcommands to their own packages in internal
-
gnolang@462ac01
gnolang@5c1edda
gnolang@ffdce93
adds a debug to matrix subcommand (print event input / matrix output) +
direct output of matrix to GitHub Actions using a matrix-key flag
-
gnolang@6af501d
embed comment template file as a string at compile time instead of
opening it at runtime
-
gnolang@59c3ad6
modifies bot comment to meet [this
requirements](gnolang#3238 (comment))
-
gnolang@241a755
filter out from the matrix generation and the PR processing all issues
or closed PRs (process / list only opened PRs)

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [x] Provided any useful hints for running manual tests
</details>

---------

Co-authored-by: Morgan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants