Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite deploy to minimize API requests (#38)
* WIP: first pass at deploy * WIP: second pass, now with more cowbell * WIP: refactor coverage handling (cleaner, more consistent, no longer has to clobber top-level bin/) * WIP: the start of more "jq" tests * WIP: add a few TODOs * Add a benchmark for `om.OrderedMap.Set` I was testing a minor memory-usage improvement to `Set`, but it turns out it doesn't actually matter (and this helped me determine that, so I might as well keep it). * Add explicit `Reference.StringWithKnownDigest` unit test * WIP: refactor EnsureManifest loop with more correct handling of child manifests vs blobs * Update to use the new `ociregistry.HTTPError` for more consistent/correct HTTP error handling * WIP: remove TODO that was implemented elsewhere (and fix error message text / comment text) * WIP: also normalize descriptor field ordering * WIP: assume pre-normalized platform (no reason to normalize more than once) * WIP: initial "deploy" data munging helpers plus tests * WIP: update Jenkinsfile.deploy to use new deploy code * WIP: remove example-commands symlink so Git detects rename better * WIP: add delay for racy registry startup * WIP: remove trap once it's no longer necessary * WIP: typo * WIP: remove unnecessary TODOs
- Loading branch information