Skip to content

App validation - #175

Merged
Aradhya-Tripathi merged 7 commits into
mainfrom
app-validation
Jul 12, 2026
Merged

App validation#175
Aradhya-Tripathi merged 7 commits into
mainfrom
app-validation

Conversation

@Aradhya-Tripathi

@Aradhya-Tripathi Aradhya-Tripathi commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

App Validations [Pre-Install]

  • Ensure internal and external imports are accounted for.

    • Internal imports are app imports like pilot.core.bench import Bench
    • External imports are handled by the pyproject.toml declarations of app + framework itself.
    • Optional imports are not hard failures
      try:
           import something
      except ModuleNotFound:
           pass
      except ImportError:
           pass    
  • 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.

@greptile-apps

greptile-apps Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe 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

Comment thread tests/test_app_validator.py
Comment thread pilot/core/app_validator.py Outdated
Comment thread pilot/core/app_validator.py Outdated
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Comment thread pilot/core/app_validator.py
Comment thread pilot/core/app_validator.py Outdated
Aradhya-Tripathi and others added 2 commits July 12, 2026 13:00
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@Aradhya-Tripathi
Aradhya-Tripathi merged commit f0ce169 into main Jul 12, 2026
7 checks passed
tanmoysrt pushed a commit to tanmoysrt/bench-cli that referenced this pull request Jul 18, 2026
@tanmoysrt
tanmoysrt deleted the app-validation branch July 19, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant