-
Notifications
You must be signed in to change notification settings - Fork 797
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
Use tmpfs for integration tests #5959
base: main
Are you sure you want to change the base?
Conversation
0f7b48c
to
1c2b97f
Compare
7ad3de4
to
df76c15
Compare
@Luap99 It seems increasing CPU for |
Also |
cirrus graph for the container task seems broken as this usage makes no sense. Looking at another int test we do not seem max out the cpu much so I am not sure if 8 cores make much sense. Also memory usage seems quite low so I think we can reduce that as well. Overall the first question is what is the goal here? 30 mins total CI like podman? What is the target time we are aiming for? |
I think we are already under 30mins, this PR was just an experiment. Increasing cores reduces time by a lot but yeah I don't think it's a good idea to keep throwing money at the problem if its not needed. |
I am talking about total time for CI to finish. Not just a single task time. There is a bit of overhead in scheduling tasks. You need to look at the cirrus build page at the top it shows you |
Yes I am only talking about integration tests, waiting for this to merge for |
5020a4b
to
c7dbcd8
Compare
@Luap99 I see minor improvement in other tests but not in |
e548e62
to
fe0750f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the tmpfs change actually do anything? AFAICT we set TMPDIR=/var/tmp so nothing ends up on tmpfs?
In general a PR like this benefits from precise numbers before/after. A commit like "bump cpu and memory" is not helping any future reader. It is missing the why we do this and the numbers on much we safe.
Actually never mind we only set So I think the tests were already using tmpfs |
fe0750f
to
4547c96
Compare
5d1e8f1
to
e4b5009
Compare
Add `run_with_log` to mkcw tests. Add `sleep 1` during cleanup between attempting `luksClose` and unmounting the filesystem mounted on the device /dev/mapper/"$uuid". Without this somehow we end up in a state where mount is still being used by the kernel because when we do `lsof /dev/mapper/"$uuid"` it shows nothing but `dmsetup info -c $uuid` shows the device is still under use. Adding `sleep 1` in between somehow fixes this. Also this problem with `cryptsetup` is pretty common for reference one thread which I found https://lore.kernel.org/all/[email protected]/T/ Signed-off-by: flouthoc <[email protected]>
e4b5009
to
e1563d0
Compare
What type of PR is this?
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?