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: only generate metadata for the targeted arch #236

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

rigor789
Copy link
Member

nsld.sh is usually invoked per target architecture.

Right now, we generate metadata for all valid architectures from env[ARCH]. This can cause issues in case we run mutiple builds in parallel (one for each target architecture) in which case both metadata generators output to the same files likely causing file corruption.

With these changes, in case a first argument is passed to the metadata generator python script, we skip architectures that don't match the argument.

This way, in case the metadata generation is invoked via nsld - we pass through the target architecture.

@cla-bot cla-bot bot added the cla: yes label Jan 31, 2024
@edusperoni edusperoni force-pushed the fix/metadata-arch-target branch from 43a6d43 to 4b8ac56 Compare January 31, 2024 15:34
@edusperoni edusperoni force-pushed the fix/metadata-arch-target branch from 4b8ac56 to e741cb1 Compare January 31, 2024 15:48
@edusperoni edusperoni merged commit 17a5c5f into main Jan 31, 2024
3 checks passed
@edusperoni edusperoni deleted the fix/metadata-arch-target branch January 31, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants