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

Bedevere as GH Actions #568

Closed
wants to merge 33 commits into from
Closed

Bedevere as GH Actions #568

wants to merge 33 commits into from

Conversation

Mariatta
Copy link
Member

@Mariatta Mariatta commented Jun 13, 2023

Instead of getting information from webhook payload,
get them from the Actions environment.
Create fixtures for GitHub Actions environment vars.

Adjust tests for main.py.
Remove "ping" handler, not needed in Actions

Still in Draft.

Need help with Dockerising it or make it faster.

Closes #344

Instead of getting information from webhook payload,
get them from the Actions environment.
Create fixtures for GitHub Actions environment vars.

Adjust tests for __main__.py.
Remove "ping" handler, not needed in Actions.
@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #568 (67849cf) into main (a5000dc) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #568   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        19    +1     
  Lines         2083      2090    +7     
  Branches       234       241    +7     
=========================================
+ Hits          2083      2090    +7     
Flag Coverage Δ
Python_3.10.11 100.00% <100.00%> (ø)
Python_3.11.3 100.00% <100.00%> (ø)
Python_3.8.16 ?
Python_3.8.17 100.00% <100.00%> (?)
Python_3.9.16 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
bedevere/__main__.py 100.00% <100.00%> (ø)
bedevere/news.py 100.00% <100.00%> (ø)
bedevere/stage.py 100.00% <100.00%> (ø)
bedevere/util.py 100.00% <100.00%> (ø)
tests/fixtures.py 100.00% <100.00%> (ø)
tests/test___main__.py 100.00% <100.00%> (ø)
tests/test_stage.py 100.00% <100.00%> (ø)

Dockerfile Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@arhadthedev
Copy link
Member

For history: this PR resolves gh-344.

@Mariatta
Copy link
Member Author

I'm testing this on Mariatta/cpython#74

@hugovk
Copy link
Member

hugovk commented Jun 13, 2023

Sorry, I accidentally pushed a test to this branch. It didn't help so I've undone it.


from . import backport, gh_issue, close_pr, filepaths, news, stage

import sentry_sdk
# import sentry_sdk
Copy link
Member Author

Choose a reason for hiding this comment

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

Can we still use sentry in GitHub Actions? Is it needed? If not we can remove it from requirements.txt

@Mariatta
Copy link
Member Author

The bedevere actions seem to be working at least on my CPython fork.
Not sure if anyone else would be able to try it themselves? Example PR https://github.com/Mariatta/cpython/pull/74/files

I still find that the "actions" are slower to execute compared to having it as a Web app/ webhook event.

For example, when changing the skip issue/skip news label, the actions need to re-run and takes time before it posts the status. Whereas as a webhook event, it works faster/almost immediate.

@Mariatta Mariatta mentioned this pull request Jun 14, 2023
@arhadthedev arhadthedev mentioned this pull request Jun 15, 2023
@Mariatta Mariatta closed this Sep 12, 2023
@Mariatta Mariatta deleted the gh-actions branch September 12, 2023 17:49
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.

Move to GitHub Actions
3 participants