-
Notifications
You must be signed in to change notification settings - Fork 33
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
support both serialized protos and YAML #1181
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1181 +/- ##
=======================================
Coverage 71.91% 71.92%
=======================================
Files 146 146
Lines 12097 12116 +19
=======================================
+ Hits 8700 8714 +14
- Misses 2721 2723 +2
- Partials 676 679 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
A note on my testing this: One interesting test I did was to run the full battery of tests after forcing the archive storage to default to yaml. I say interesting because everything works as expected... except the conformance tests:
I couldn't identify why these were failing as the conformance tests aren't really unit tests - they start processes and move data around in ways that are hidden from the test suite. In addition, nothing was logged that indicated what the root cause might be. In any case, this maybe isn't something that necessarily needs to be addressed within this PR, but it is something that will need to be addressed before we can finish #946. |
Just wondering... how did you do that? By temporarily hard-coding this to true? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious about the conformance test problem, but that's not breaking anything since we're still using proto storage and testing everything with that. LGTM!
ctx context.Context | ||
}{ | ||
{"application/octet-stream", context.Background()}, | ||
{"application/yaml", SetStoreArchivesAsYaml(context.Background())}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is our main test that this works, right? Verifying that all artifact types can be stored and read in both formats? (just thinking out loud... LGTM)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Task 2 in #946: Update registry subcommands that read artifacts to support both serialized protos and YAML.