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

Sort datasetconfig for deterministic storage #97

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afflom
Copy link

@afflom afflom commented Sep 29, 2022

Related: #92

@@ -224,8 +225,15 @@ func (o *BuildCollectionOptions) Run(ctx context.Context) error {

descs = append(descs, linkedDescs...)

// Store the DataSetConfiguration file in the manifest config of the OCI artifact for
// later use.
// Sort the slices within the DataSetConfiguration and store the file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this logic to config/load? It would probably be useful to have these sorted upfront.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll get on it

Copy link
Contributor

@jpower432 jpower432 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think it just needs some tweaks to the unit tests for validation, and this should be good to go.

@sabre1041
Copy link
Contributor

@afflom are you planning on adding the requested unit tests?

@afflom
Copy link
Author

afflom commented Nov 8, 2022

Yes, but I'm finishing up the attributes API on the registry first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants