Repository navigation
fix(release): verify current runtime manifest #539
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -670,18 +670,32 @@ def read_runtime_inspection( | |
| "workbook_classification", | ||
| "workbook_project_file", | ||
| "workbook_runtime_path", | ||
| "match_principal", | ||
| "runtime_uid", | ||
| "runtime_gid", | ||
| "runtime_files", | ||
| "topology", | ||
| } | ||
| if expected_notary_image is not None: | ||
| expected_keys.add("notary") | ||
| if not isinstance(runtime_manifest, dict) or set(runtime_manifest) != expected_keys: | ||
| raise ReleaseFormError("canonical runtime manifest fields are not closed") | ||
| if ( | ||
| runtime_manifest.get("schema_version") != "registryctl.local_runtime.v1" | ||
| runtime_manifest.get("schema_version") != "registryctl.local_runtime.v2" | ||
| or runtime_manifest.get("environment") != "local" | ||
| or runtime_manifest.get("relay_image") != expected_relay_image | ||
| or runtime_manifest.get("workbook_classification") | ||
| != "operator_owned_source_data" | ||
| or not isinstance(runtime_manifest.get("match_principal"), str) | ||
| or not runtime_manifest["match_principal"] | ||
|
Comment on lines
+689
to
+690
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This accepts any non-empty string, so a candidate can emit AGENTS.md reference: AGENTS.md:L79-L81 Useful? React with 👍 / 👎. |
||
| or not isinstance(runtime_manifest.get("runtime_uid"), str) | ||
| or not runtime_manifest["runtime_uid"].isdigit() | ||
| or runtime_manifest.get("runtime_uid") == "0" | ||
| or not isinstance(runtime_manifest.get("runtime_gid"), str) | ||
| or not runtime_manifest["runtime_gid"].isdigit() | ||
| or runtime_manifest.get("runtime_gid") == "0" | ||
|
Comment on lines
+693
to
+696
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
A v2 candidate manifest with AGENTS.md reference: AGENTS.md:L79-L81 Useful? React with 👍 / 👎. |
||
| or not isinstance(runtime_manifest.get("runtime_files"), dict) | ||
| or not runtime_manifest["runtime_files"] | ||
|
Comment on lines
+697
to
+698
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
A manifest such as AGENTS.md reference: AGENTS.md:L79-L81 Useful? React with 👍 / 👎. |
||
| or runtime_manifest.get("topology") != expected_topology | ||
| ): | ||
| raise ReleaseFormError( | ||
|
|
||
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.
The reviewed commit message has no
Signed-off-bytrailer, so it violates the repository requirement that every commit carry a DCO sign-off; recreate the commit withgit commit -sbefore merging.AGENTS.md reference: AGENTS.md:L70-L70
Useful? React with 👍 / 👎.