Skip to content

full-analysis: auto-instantiate environments and cache detection results#337

Merged
aviatesk merged 1 commit intomasterfrom
avi/pkg-instantiate
Nov 27, 2025
Merged

full-analysis: auto-instantiate environments and cache detection results#337
aviatesk merged 1 commit intomasterfrom
avi/pkg-instantiate

Conversation

@aviatesk
Copy link
Copy Markdown
Owner

Add automatic Pkg.instantiate() for environments that have not been instantiated yet (e.g., freshly cloned repositories or new project directories). This allows full analysis to work immediately upon opening files in such environments, whether they are package source files, test files, or scripts with their own Project.toml.

Also add caching for environment detection results to avoid redundant Pkg.instantiate() calls and Base.identify_package_env lookups for the same environment.

The behavior is controlled by full_analysis.auto_instantiate config option (default: true).

Add automatic `Pkg.instantiate()` for environments that have not been
instantiated yet (e.g., freshly cloned repositories or new project
directories). This allows full analysis to work immediately upon opening
files in such environments, whether they are package source files,
test files, or scripts with their own Project.toml.

Also add caching for environment detection results to avoid redundant
`Pkg.instantiate()` calls and `Base.identify_package_env` lookups for
the same environment.

The behavior is controlled by `full_analysis.auto_instantiate` config
option (default: `true`).
@aviatesk aviatesk force-pushed the avi/pkg-instantiate branch from b07d6d3 to ff1955e Compare November 27, 2025 22:20
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2025

Codecov Report

❌ Patch coverage is 40.38462% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.19%. Comparing base (e45cd7c) to head (ff1955e).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/analysis/full-analysis.jl 41.17% 30 Missing ⚠️
src/types.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #337      +/-   ##
==========================================
- Coverage   66.24%   66.19%   -0.06%     
==========================================
  Files          40       40              
  Lines        4050     4076      +26     
==========================================
+ Hits         2683     2698      +15     
- Misses       1367     1378      +11     
Flag Coverage Δ
JETLS.jl 66.19% <40.38%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aviatesk aviatesk merged commit 486f172 into master Nov 27, 2025
11 of 14 checks passed
@aviatesk aviatesk deleted the avi/pkg-instantiate branch November 27, 2025 23:43
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