Skip to content

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 <[email protected]>
@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