forked from UT-InfraAI/ventis
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(core): declare and enforce the manifest and agent-YAML schema #178
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4bfe54f
feat: declare the manifest and agent-YAML schema in core
userAugustos 585730c
feat: validate the manifest before the in-container deploy builds any…
userAugustos d88284e
fix: fail the build when an app pin conflicts with a platform pin
userAugustos fe43773
fix: support environment references in string fields only
userAugustos ddaa940
refactor: gate the build once, and point a pin conflict at the entry …
userAugustos d7828cc
fix: accept a fractional otel timeout, and keep the variable name in …
userAugustos 37b444b
fix: reject a service whose code is not in the project
userAugustos 11a9f44
fix: name a missing source file the way the manifest writes it
userAugustos 94bdf6d
fix: build from the same expanded config the schema validated
userAugustos 9356d13
fix: reject a key set twice in one mapping
userAugustos cda1cb1
fix: match a pinned package however its name is spelled
userAugustos 638cc47
merge: main into feat/manifest-schema
userAugustos af883dd
fix: accept any provider casing, and retire the database key
userAugustos effc4e6
fix(cli): read the local Redis port doctor checks from the deploy config
userAugustos 315bde1
fix: reject non-finite and overflowing numbers
userAugustos 092bd38
fix: reject a Windows-rooted entrypoint or workflow file
userAugustos 9fdeba0
fix: treat an empty required list as missing
userAugustos 19e28ff
fix: combine every bound on a package before checking its pin
userAugustos 757cbbf
fix: count a strictly-greater-than-the-pin request as newer
userAugustos ae2323b
Merge branch 'main' into feat/manifest-schema
userAugustos 853018b
fix: read the manifest through one loader that expands ${VAR}
userAugustos 5e1953e
fix: generate stubs from the declaration the schema checked
userAugustos e216230
fix: check otel destinations with the exporter's own rules
userAugustos 58cac35
fix: only check ec2: for EC2 deploys, and treat an unset ${VAR} as mi…
userAugustos 4417b58
fix: accept a fractional poll_interval and cleanup_interval
userAugustos 4a0cfd8
fix: check every requirement the image installs against the platform …
userAugustos 69b80ff
fix: keep canyonos doctor running on a config with a bad redis_port
userAugustos 31a8d1d
fix: reject an entrypoint or workflow file that resolves outside the …
userAugustos 45537e9
fix: report every problem in an entry, at the line it is on, from one…
userAugustos f6afc87
fix: close the gaps CodeRabbit found in the schema and pin checks
userAugustos 9804061
Merge main into PR 178
userAugustos 407a102
Merge latest main into PR 178
userAugustos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import subprocess | ||
| import sys | ||
|
|
||
|
|
||
| def test_the_canyonos_entry_point_imports_in_a_fresh_interpreter(): | ||
| """`canyonos` is `cli:main`; if `import cli` fails, every command fails. | ||
|
|
||
| Run in a fresh interpreter: inside the suite another test may already have | ||
| imported the modules involved, which is how a broken import once passed. | ||
| """ | ||
| result = subprocess.run( | ||
| [sys.executable, "-c", "import cli; assert callable(cli.main)"], | ||
| capture_output=True, | ||
| text=True, | ||
| timeout=60, | ||
| ) | ||
|
|
||
| assert result.returncode == 0, result.stderr |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.