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 tests failing in Ubuntu #732

Merged
merged 1 commit into from
May 25, 2022
Merged

Fix tests failing in Ubuntu #732

merged 1 commit into from
May 25, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented May 25, 2022

Some test cases rely on checksum to match in order to pass.
Those checksums were calculated based on file headers which contain their file modes, which were created from a machine set with umask 022.

In Ubuntu, the umask is set to 002 by default, resulting in the tests files having different permissions then when the same files are cloned on other Linux machines with a different umask.

This change ensures that the files are always set (to 0644 and the directories to 0755) before running the aforementioned tests.

Some test cases rely on checksum to match in order to pass.
Those checksums were calculated based on file headers which
contain their file modes.

In Ubuntu, the umask is set to 002 by default, resulting in
the tests files having different permissions then when the
same files are cloned on another Linux machine with umask
set to 022.

This change ensures that the files are always set (to 0644 and
the directories to 0755) before running the aforementioned tests.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
@pjbgf pjbgf added the area/ci CI related issues and pull requests label May 25, 2022
@makkes makkes merged commit 4909bac into fluxcd:main May 25, 2022
@pjbgf pjbgf deleted the umask-fix branch May 25, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci CI related issues and pull requests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants