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

New bot command bot: status #237

Merged
merged 16 commits into from
Jan 26, 2024
Merged

New bot command bot: status #237

merged 16 commits into from
Jan 26, 2024

Conversation

laraPPr
Copy link
Collaborator

@laraPPr laraPPr commented Jan 25, 2024

The command creates a comment that contains a table with all the builds done in the pr where the command is called.

example:

@laraPPr laraPPr marked this pull request as draft January 25, 2024 12:36
@laraPPr laraPPr marked this pull request as ready for review January 25, 2024 13:52
Copy link
Contributor

@trz42 trz42 left a comment

Choose a reason for hiding this comment

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

Looks great. Some small comments. The result is for sure very useful!!!

eessi_bot_event_handler.py Outdated Show resolved Hide resolved
eessi_bot_event_handler.py Outdated Show resolved Hide resolved
tasks/build.py Show resolved Hide resolved
eessi_bot_event_handler.py Outdated Show resolved Hide resolved
tasks/build.py Outdated Show resolved Hide resolved
tasks/build.py Show resolved Hide resolved
tasks/build.py Outdated Show resolved Hide resolved


def request_bot_build_issue_comments(repo_name, pr_number):
status_table = {'arch': [], 'date': [], 'status': [], 'url': [], 'result': []}
Copy link
Contributor

Choose a reason for hiding this comment

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

Wonder a bit if it would be better to let status_table be a list of dictionaries instead of a dictionary of lists where we assume that lists are always identically formed (same length, elements at same index belong to each other).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm open to that. Because it actually takes some effort to put it in a dictionary with lists.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ack. We can think about that later in case it becomes necessary.

tasks/build.py Show resolved Hide resolved
Copy link
Contributor

@trz42 trz42 left a comment

Choose a reason for hiding this comment

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

Great improvement @laraPPr !

@trz42 trz42 merged commit d02768c into EESSI:develop Jan 26, 2024
7 checks passed
This was referenced Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants