Repository navigation
Conversation
Collaborator
|
Closing as part of clearing this pre-hygiene queue; see #298 (comment) for the note on the updated review process. Thank you again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
A valid update-feed URL with a query or fragment cannot be read by
strata update. For example,--feed http://127.0.0.1:PORT/release/named.json?token=a/bis rewritten to.../named.json?token=a/b/strata-feed.json, so the check exits with code 6. Appending.sigto the entire URL also puts the signature suffix into a query or fragment instead of the filename. This breaks update feeds served behind query-based routing or access checks.Parse HTTP(S) URLs before deciding whether the source names a feed file or a directory. Append the default feed name and the detached-signature suffix to the path component, preserving the supplied query. The existing fetch and Ed25519 verification paths then receive the intended resources.
All-state, all-author searches covered Edge0 and its imported Strata source, including feed/query, feed/relative, feed/urlsplit, feed/urljoin, and feed/signature/URL history. No equivalent submitted change was found.
Area
edge0-strata/strata_control/How was it tested?
Linux x86_64. The regression starts a real loopback HTTP server, generates an Ed25519 key using the production signing implementation, signs an actual feed, and serves a ZIP archive whose SHA-256 is listed in that feed.
python strata.py update --check --feed ... --output jsoncommand fails on the unchanged base with the query-bearing URL and passes with this patch. The plain-URL command passes on both..sigHTTP request paths, including slash-containing queries and fragments. Four cases fail on the unchanged base; all six pass after the correction.bc2dc409d420097b4e864d511901180d7c2c6bachas five failures; all new cases pass with this change. The new suite plus related setup, update, GPU-selection, and component-start suites: 31 tests pass.moe_test_app_generation, unavailable host memory data inmoe_test_platform_memory, and existing large-number serialization inmoe_test_ordered_json/moe_test_template_tools.git diff --checkpasses. No model or GPU performance claim is made.Checklist