No cirrus#697
Conversation
|
Tests failed. @containers/packit-build please check. |
|
Thanks. Note to myself once this is ready we need to update merge protection settings with the new job names. I think we looked at this a while ago but can packit do do task dependencies? I suppose it is not critical but it is nice to first run validate before triggering all the other jobs. |
| /msrv: | ||
| summary: Minimum Supported Rust Version (MSRV) check | ||
| test: | | ||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.86 |
There was a problem hiding this comment.
The test will fetch rust version directly from Cargo.toml now.
There's discussion and WIP happening in packit/packit-service#1720 . |
28ac9a5 to
4852111
Compare
|
I'd say this is ready for reviews. Will keep in draft until #695 is done as I rebased it already but this PR doesn't need to depend on it AFAICT. @containers/netavark-maintainers @timcoding1988 PTAL |
Luap99
left a comment
There was a problem hiding this comment.
LGTM overall, just some minor comments.
| adjust: | ||
| enabled: false | ||
| when: initiator is not defined or initiator != packit |
There was a problem hiding this comment.
this is done so they do not run as part of Fedora CI/dist git setup I assume?
Unit tests are real test cases and they are faster than integration tests anyway so I think it would also make sense to run them as gating function. Not that I think this would catch anything particular but if we have this we should run this, better safe than sorry here.
Note I do agree we must skip validate, because a new rust will likely cause new validation errors due new lint rules.
There was a problem hiding this comment.
Are you ok leaving this for followup? IIUC, this would involve cloning the source tree in some form at downstream CI and we can't just use the -tests subpackage. That would need some more changes and downstream testing.
There was a problem hiding this comment.
ack sure absolutely not blocking, lets get it working as main upstream CI first and foremost right now
There was a problem hiding this comment.
Not sure if we would actually want to do this but AFAIK some packages run unit tests as part of the rpm spec %check which would have access to the full source tree? Anyhow not important right now.
There was a problem hiding this comment.
Not sure if we would actually want to do this but AFAIK some packages run unit tests as part of the rpm spec
%checkwhich would have access to the full source tree?
Ack yes, but that runs as part of rpmbuild / koji build which would be not so nice imo. I'm thinking either package the source as a -src subpackage or fetch TMT plan from the upstream tag. Let's see later ...
| trigger: pull_request | ||
| identifier: validate | ||
| skip_build: true | ||
| notifications: *test_failure_notification |
There was a problem hiding this comment.
Do you actually want this? If this is the primary CI than it is the author/maintainers job to look at the tests results. There is no point in spam pinging you for this.
If I or another maintainer sees general packit problems we can ping you then directly so you do not drown in noise.
There was a problem hiding this comment.
will remove all notifications in the upcoming update to this PR. Thanks!
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "$MSRV" | ||
| source $HOME/.cargo/env |
There was a problem hiding this comment.
generally not a huge fan of this as hoc installs due to flake risk but I guess we will see how it turns out. If it starts flaking to often we can consider another approach.
There was a problem hiding this comment.
ok, leaving this as is then.
small. am i missing something here, looks like tests all passed here. also the total success check seems still visible from here. maybe remove it possible ? |
I think Packit does a few retries so that's why you saw the failure notification without failures. But I'm removing the notifications in the upcoming force push, so this should be a non-issue.
I think that needs to be removed from branch protection in repo settings which @Luap99 will take care of.
Thanks |
correct as long as a task is required in merge rule settings GH will display it |
c167ed1 to
731d0b4
Compare
|
/packit retest-failed |
|
I've rebased only on main, so this is good to go without waiting for #695 . |
I have no observed any failures with cirrus in the past, but overall a lot of these test things are timing related so some flakes can be possible I think. Is there a way like in cirrus where I can see all runs from the repo so I can see the history which failed run you meant, i.e. Also the cirrus task always displayed at the top if they were a rerun and the previous log, I don't packit marks rerun in any way do they? |
Hmm, don't know offhand. I'll ask around and file a request if they don't have it already. |
|
seems to show a list of PRs and its copr builds links but not the testing farm links AFAICT |
|
I think https://dashboard.packit.dev/jobs/testing-farm will show all jobs, but that's currently a nightmare to navigate, no filtering from what I can tell. cc @LecrisUT see #697 (comment) |
|
Unfortunately I do not have any better solution and web-dev is not in my skillset to navigate https://github.com/packit/dashboard/. If there are ideas of FOSS dashboards that we could host, we can explore that as well |
right. One of the nice thing of the cirrus UI is I can filter this by branch. So I can only look at results on main because it should not contain broken code so any failure there is most likely a flake and could be worth reporting/tracking/fixing... On PRs contributors push broken code all the time so a failing status on a PR does not mean anything really. So overall I think it would be a nice feature request if we could have a webpage+API to get a list of all created copr and testing-farm jobs filtered by repo and branch if possible. |
|
@containers/netavark-maintainers I think we're good to go here unless anything unaddressed. PTAL. |
|
yes logic wise this seems good to me, I like to have #695 merged first before I update the merge protection settings here |
Signed-off-by: Lokesh Mandvekar <lsm5@linux.com>
Signed-off-by: Lokesh Mandvekar <lsm5@linux.com>
- Remove all COPR build failure notifications - Remove all test failure notifications from integration jobs - Add identifiers to integration jobs (integration-fedora, integration-centos) - Add tmt_plan to existing integration jobs (/plans/integration) - Add new validate test job (skip_build: true, fedora-latest-x86_64) - Add new unit test job (skip_build: true, fedora-latest-x86_64) Signed-off-by: Lokesh Mandvekar <lsm5@linux.com>
Signed-off-by: Lokesh Mandvekar <lsm5@linux.com>
Fixes: RUN-4616 Signed-off-by: Lokesh Mandvekar <lsm5@linux.com>
|
LGTM |
|
Rebased on the latest main. PTAL @containers/netavark-maintainers |
Luap99
left a comment
There was a problem hiding this comment.
LGTM,
branch protection is set to require this now
testing-farm:fedora-44-x86_64:msrv
testing-farm:fedora-44-x86_64:unit
testing-farm:fedora-44-x86_64:validate
testing-farm:fedora-44-x86_64:integration-fedora
testing-farm:fedora-44-aarch64:integration-fedora
When fedora upgrades to 45 we need to update this but one update every 6 months is not the end of the world.
See individual commits.