Repository navigation
fix(id): discovery rejects apps whose program.source does not exist (#4064) - #4075
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
4 tasks
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.
Fixes #4064
What
discover_appsinpkgs/id/src/app_manifest.rsnow checks a parsed manifest against its folder: when[program].sourceis declared,folder.join(source)must exist (file or directory). A missing source produces a named per-app error inAppDiscovery.errors—<app.toml path>: program.source <source> does not exist in app folder <folder>— and the app is excluded fromAppDiscovery.apps.Previously discovery registered any app whose
app.tomlparsed:parse_app_manifestvalidates only the source path's shape, anddiscover_appsstatted onlyapp.tomlitself. Confirmed on main070f0d99by triage task 5962 — the pre-existing discovery test even registered an app whoseprogram/directory was never created.Scope notes
module_hash-only manifests are unaffected (no source declared, no check).program/) both pass: the check isPath::exists.resources.filesexistence is not checked (pack-step question), per the issue's scope.Tests
discovery_rejects_app_whose_program_source_is_missing— ghost folder yields 0 apps and 1 error namingprogram.source, the declared path, and the missing existence.discovery_reports_bad_app_and_keeps_valid_appfixture now creates the valid app'sprogram/directory so its expectation survives the new check.cargo test -p id --lib app_manifest(results in the task 5972 completion note on id(app_manifest): discovery registers apps whose program.source does not exist — manifest is never checked against its folder #4064).Queue: task 5972 (repo-health-code-pilot), lane D. Triage: task 5962.
Need help on this PR? Tag
@codesmith-botwith what you need.