You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is to discuss the output artifacts for the docker-based workflow.
The docker-based workflow allows wildcard artifact paths, say dist/** which may match a number of artifacts and subfolders, for e.g. dist/subfolder/b.txt and dist/a.txt.
Question 1 There is a bit of a mismatch between uploading the path-preserved files in the GH artifacts, and uploading the individual files. Should we remove the path heirarchy preservation and assume that generated artifacts do not need that structure?
Question 2 When using matrix strategy or multiple runs, I believe the build output and provenance folders should be separated in the GH artifact uploads in the workflow. They will be things like build-outputs-RNG_A and build-outputs-RNG_B for each of the matrix strategies. This way you can distinguish between each job in the matrices outputs. Again, for a release, they will all be uploaded as a flat structure to the release. Does that make sense?
Question 1 There is a bit of a mismatch between uploading the path-preserved files in the GH artifacts, and uploading the individual files. Should we remove the path heirarchy preservation and assume that generated artifacts do not need that structure?
I think we cannot generally assume this. Removing the structure will work with the current setup of Oak, but I think that can in general be an annoying restriction for the user.
Question 2 When using matrix strategy or multiple runs, I believe the build output and provenance folders should be separated in the GH artifact uploads in the workflow. They will be things like build-outputs-RNG_A and build-outputs-RNG_B for each of the matrix strategies. This way you can distinguish between each job in the matrices outputs.
This part makes sense to me, and seems to work fine.
Again, for a release, they will all be uploaded as a flat structure to the release. Does that make sense?
Does a flat structure mean that files with the same base name will be overridden?
If that is the case, I think the best thing we can do it to be clear about this behaviour, so that the users configure their artifact_paths accordingly. I think the artifact_path field in the config file gives enough flexibility.
Activity
rbehjati commentedon Apr 4, 2023
Sorry for the late reply.
I think we cannot generally assume this. Removing the structure will work with the current setup of Oak, but I think that can in general be an annoying restriction for the user.
This part makes sense to me, and seems to work fine.
Does a flat structure mean that files with the same base name will be overridden?
If that is the case, I think the best thing we can do it to be clear about this behaviour, so that the users configure their
artifact_paths accordingly. I think theartifact_pathfield in the config file gives enough flexibility.