Skip to content

Conversation

@sluongng
Copy link
Contributor

This PR fixes test which failed locally on my new PC running CachyOS (Arch-based distro).
They are splitted into separate commits for easier review.

  • cli/parser: stabilize parser tests by isolating HOME

  • codesearch/github: drop whatchanged for incremental update

  • runner: materialize disk usage in pool disk limit test

  • testregistry: build deterministic image fixtures

@sluongng sluongng marked this pull request as ready for review September 25, 2025 09:52
@sluongng sluongng marked this pull request as draft September 25, 2025 16:08
@sluongng
Copy link
Contributor Author

still some issues with the permission of the binaries. Gona take a look in a bit

@sluongng sluongng force-pushed the sluongng/test-fixes branch 2 times, most recently from b1a1eb8 to ce6e3b2 Compare September 26, 2025 08:36
@sluongng sluongng marked this pull request as ready for review September 26, 2025 08:36
@sluongng
Copy link
Contributor Author

I dropped the Firecracker changes. It's a bit too complicated to sort out and wouldn't solve my problem (need additional SYS_CAP_ADMIN on jailer).

I will skip those bare tests for now and revisit them in the future.

@sluongng sluongng requested a review from bduffany September 26, 2025 08:38
@sluongng sluongng force-pushed the sluongng/test-fixes branch 3 times, most recently from 828aad5 to b19223f Compare September 26, 2025 09:37
return r.Push(t, image, imageName), image
}

func imageFromFiles(files map[string][]byte) (gcr.Image, error) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe add a comment on why we don't use crane.Image here? Seems likely that someone might try to clean this up/undo the fix by replacing it with crane.Image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Added.

Copy link
Member

@bduffany bduffany Oct 10, 2025

Choose a reason for hiding this comment

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

errrr sorry I should've noticed this before. By overriding all perms to 0o644 I wonder if we aren't testing the "real" tarball perms and this could potentially mask problems. Which test fails without this change and how is it failing?

nvm I think this should be fine

Copy link
Member

Choose a reason for hiding this comment

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

nvm I see - this should only ever be called in cases where the perms actually should be 0o644 anyway. LGTM

@sluongng sluongng force-pushed the sluongng/test-fixes branch 2 times, most recently from 1a720e4 to 399090a Compare October 6, 2025 08:55
@sluongng sluongng requested a review from bduffany October 6, 2025 11:19
return r.Push(t, image, imageName), image
}

func imageFromFiles(files map[string][]byte) (gcr.Image, error) {
Copy link
Member

@bduffany bduffany Oct 10, 2025

Choose a reason for hiding this comment

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

errrr sorry I should've noticed this before. By overriding all perms to 0o644 I wonder if we aren't testing the "real" tarball perms and this could potentially mask problems. Which test fails without this change and how is it failing?

nvm I think this should be fine

@sluongng sluongng force-pushed the sluongng/test-fixes branch from 399090a to 05a20a9 Compare October 21, 2025 10:34
@sluongng
Copy link
Contributor Author

Rebasing to re-test everything against latest master before merging

@sluongng sluongng merged commit d05e21b into master Oct 21, 2025
11 checks passed
@sluongng sluongng deleted the sluongng/test-fixes branch October 21, 2025 11:04
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