Skip to content
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

Fix OCIRepository testdata permissions #998

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

darkowlzz
Copy link
Contributor

On Ubuntu, and maybe some others, the
TestOCIRepository_reconcileArtifact test fails due to difference in file permission, which results in different artifact checksum. This is due to the default umask on ubuntu. Reset the permission of the testdata to fix the test on ubuntu.
There's a similar fix in TestGitRepositoryReconciler_reconcileArtifact test.

Refer #732 for the last time we had a similar issue.

On Ubuntu, and maybe some others, the
`TestOCIRepository_reconcileArtifact` test fails due to difference in
file permission, which results in different artifact checksum. This is
due to the default umask on ubuntu. Reset the permission of the testdata
to fix the test on ubuntu.
There's a similar fix in `TestGitRepositoryReconciler_reconcileArtifact`
test.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
@darkowlzz darkowlzz added the area/testing Testing related issues and pull requests label Jan 17, 2023
@darkowlzz darkowlzz changed the title Fix ocirepo testdata permissions Fix OCIRepository testdata permissions Jan 17, 2023
@stefanprodan stefanprodan merged commit c2e605a into main Jan 18, 2023
@stefanprodan stefanprodan deleted the oci-testdata-umask-fix branch January 18, 2023 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Testing related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants