Skip to content

Conversation

@driazati
Copy link
Member

@driazati driazati commented Aug 10, 2022

This fixes the issue where merging from GitHub Actions (i.e. with the default GITHUB_TOKEN) doesn't trigger post merge GitHub Actions on the commit it creates in main. Instead these jobs are triggered manually by a call to the Actions API after the merge has taken place.

This also updates the tvmbot testing code (and by extension some of the other CI testing code) to remove the fixtures for each test in favor of constructing them from a single sample at runtime, this makes it a lot easier to add new tests and see what is different between each data sample and clean up the testing anti-patterns that were there before (e.g. run() instead of pytest.mark.parameterize, but none of the tests in test_ci.py have changed)

Tested in https://github.com/driazati/tvm/pull/36 which ran https://github.com/driazati/tvm/actions/runs/2881047903

cc @Mousius @areusch @gigiblender

@driazati
Copy link
Member Author

@tvm-bot rerun

@github-actions
Copy link
Contributor

Built docs for commit 23f2113 can be found here.

@driazati driazati marked this pull request as ready for review August 18, 2022 08:34
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

possible to unit test this one? curious about bypassing the subsequent auth checks here.

@driazati
Copy link
Member Author

possible to unit test this one? curious about bypassing the subsequent auth checks here.

it should have been an OR instead of an AND for the checks hence the break but i’ll add some better testing

@github-actions github-actions bot requested a review from Mousius August 19, 2022 21:58
@driazati driazati marked this pull request as draft August 19, 2022 21:59
@driazati driazati marked this pull request as ready for review August 19, 2022 22:23
@driazati driazati requested a review from areusch August 24, 2022 18:08
@github-actions
Copy link
Contributor

It has been a while since this PR was updated, @gigiblender @Mousius @areusch please leave a review or address the outstanding comments. @driazati if this PR is still a work in progress, please convert it to a draft until it is ready for review.

Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

thanks @driazati, couple of comments here, but LGTM otherwise

@driazati driazati merged commit 7c7b0f7 into apache:main Sep 2, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
This fixes the issue where merging from GitHub Actions (i.e. with the default `GITHUB_TOKEN`) doesn't trigger post merge GitHub Actions on the commit it creates in `main`. Instead these jobs are triggered manually by a call to the Actions API after the merge has taken place.

This also updates the tvmbot testing code (and by extension some of the other CI testing code) to remove the fixtures for each test in favor of constructing them from a single sample at runtime, this makes it a lot easier to add new tests and see what is different between each data sample and clean up the testing anti-patterns that were there before (e.g. `run()` instead of `pytest.mark.parameterize`, but none of the tests in `test_ci.py` have changed)

Tested in https://github.com/driazati/tvm/pull/36 which ran https://github.com/driazati/tvm/actions/runs/2881047903
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.

2 participants