Skip to content

Conversation

m-bull
Copy link
Contributor

@m-bull m-bull commented Jul 11, 2025

Cloning Kayobe as part of check-kayobe-version.yml would fail with POSIX permission errors when it was run by multiple users, because the clone destination directory is a) always the same and b) never cleaned up.

Clone Kayobe into a unique directory each time using ansible.builtin.tempfile and clean up the directory tree when it is no longer needed. This ensures that each user that runs check-kayobe-version.yml gets a
Kayobe checkout to a unique path, and not one that already exists and is owned by someone else.

Cloning Kayobe as part of check-kayobe-version.yml
would fail with POSIX permission errors when it was run by multiple users, because the clone destination
directory is a) always the same and b) never cleaned up.

Clone Kayobe into a unique directory each time using
ansible.builtin.tempfile and clean up the directory tree
when it is no longer needed. This ensures that each
user that runs check-kayobe-version.yml gets a
Kayobe checkout to a unique path, and not one that
already exists and is owned by someone else.
@m-bull m-bull requested a review from a team as a code owner July 11, 2025 13:30
@m-bull m-bull requested a review from assumptionsandg July 11, 2025 13:30
@product-auto-label product-auto-label bot added size: s ansible Ansible playbooks labels Jul 11, 2025
@bbezak bbezak merged commit dc200bb into stackhpc/2024.1 Jul 11, 2025
22 checks passed
@bbezak bbezak deleted the fix/version-check-multiuser branch July 11, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible Ansible playbooks size: s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants