-
Notifications
You must be signed in to change notification settings - Fork 8
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
Run tmt tests #59
Comments
@nikic thank you for these ideas. About tmt testsWhy can't we run tmt tests in the incubator project? Because it is not the final place to consume from? I think for the most part this is negligible. About forking earlierI agree that we could potentially fork into the
I'll try to get more information about the time this all takes in Copr from the |
I don't think it matters on which repo they run. I was mainly thinking in terms of how to implement the process so they run exactly once, so doing it during the promotion seemed like a good idea. But if running them on the incubator project is easier that should be totally fine. As to forking, that's a good concern. I think something to keep in mind is that it's always day somewhere -- the middle of the night for us is probably day time on the west coast. You're right though that at least the current time is very predictable. |
Okay.
Right, that's the only part I meant. Predictability. I found out from the |
Sorry for the late update. I didn't follow along our chat internally but apparently the forking takes 1 hour. |
@nikic I began working on this here: https://github.com/kwk/llvm-daily-fedora-rpms/blob/main/.github/workflows/tmt.yml . Once the workflow is free from systematic errors I think we can discuss how and when we wanna trigger it. |
Also, we default to YYYYMMDD to be the value of today, when the workflow was running from a schedule. See #59
I had to disable the tmt linting git pre-commit hook because the new `$PROJECT_TODAY` apparently breaks `tmt lint` (see teemtee/tmt#2651). See #59
Don't overwrite other artifacts by using the strategy in the filename See #59
In order to clean up for #59 I want to move the plans/example.fmf next to the llvm-snapshot-builder source code.
This is related to #59 because it allows us to call the snapshot promotion from different places in the workflow more easily.
Exceeding free execution minutes with Github actionsI gave this some thought yesterday. Looking at the usage time, we currently spend 1:45 hours per tmt run given that we have three strategies in parallel and three Fedora versions we test on: The realistic case I can think of right now is that we have tmt running for 1:45 each day (1:45h x 31). That makes up a total of 3255 minutes per month. Github gives us 2000 minutes per month in the free plan: Given that our current selection process for a stable git commit in the LLVM repo has improved, it is theoretically possible that we have successful builds every day, hence we would run the tmt tests each day. ProposalI'd say we carefully select which Fedora version we run the tmt tests on. The architecture is more or less fixed and determined by the github action runner being x86_64. This happens to be the fastest architecture we build for on Copr (due to high performance builders). That means Copr builds on that architecture will always be done first for any given day and we can start tmt tests as early as this architecture is done. We should probably wait for all three supported Fedora versions (currently: Summary
|
I believe that limit only applies to private repos. |
This adds the `testing-farm` cli command a described here: https://docs.testing-farm.io/Testing%20Farm/0.1/cli.html https://gitlab.com/testing-farm/cli/-/blob/main/README.adoc#user-content-pip See #59
* Add tft-cli to python requirements This adds the `testing-farm` cli command a described here: https://docs.testing-farm.io/Testing%20Farm/0.1/cli.html https://gitlab.com/testing-farm/cli/-/blob/main/README.adoc#user-content-pip See #59 * run ppc64le-long-double test again We intend to run tests in testing-farm and no longer on a github actions runner. That's why we can include the test again. * Add testing-farm workflow
We do run testing-farm now and I think this issue can be closed. Currently the testing-farm results are not gating things because they need fixing. We're working on having the tests green by default and only report on real errors. |
Agree that this can be closed now. Thanks for your awesome work on this, the end result is really great! |
I'm wondering whether we should try to run tmt tests on snapshots. The way I see this working is that after forking into llvm-snapshots we would run the tests for one fedora version in a corresponding container on Github Actions.
Possibly the overall approach could be that we move out the snapshot promotion out of fedora-copr-build into check-todays-snapshot, doing something like this:
We could also swap the last two points, which means that we would only fork to llvm-snapshots if tmt tests pass as well. We'd probably need some experience with how often / why they fail first.
The text was updated successfully, but these errors were encountered: