App validation - #175
Merged
Merged
Conversation
Contributor
Confidence Score: 5/5Safe to merge; static analysis correctly guards each failure mode and the rollback path works for the common case. All previously flagged correctness issues are fixed. Remaining observations are efficiency and defensive-cleanup concerns that don't affect correctness on the happy or failure path. pilot/core/app_validator.py — double _all_imports() call; pilot/commands/get_app.py — narrow except clause in _validate. Reviews (6): Last reviewed commit: "fix: Integration tests failing due to in..." | Re-trigger Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
tanmoysrt
pushed a commit
to tanmoysrt/bench-cli
that referenced
this pull request
Jul 18, 2026
App validation
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.
App Validations [Pre-Install]
Ensure internal and external imports are accounted for.
pilot.core.bench import Benchpyproject.tomldeclarations of app + framework itself.Ensure the directory structure for frappe apps is sound
Ensure get-app fails when imports are broken.
Since app validations are pre-install therefore we can't fallback to a simpler run files with import check, since the env won't have those dependencies yet since the app is not installed.