Skip to content

pkg: Add activate_with_early_release for early lock release#348

Merged
aviatesk merged 1 commit intomasterfrom
avi/early-release-activation-lock
Nov 30, 2025
Merged

pkg: Add activate_with_early_release for early lock release#348
aviatesk merged 1 commit intomasterfrom
avi/early-release-activation-lock

Conversation

@aviatesk
Copy link
Copy Markdown
Owner

Add a variant of activate_do that allows early release of ACTIVATE_LOCK before the callback completes. The caller can notify the passed event to signal that the activated environment is no longer needed, enabling the environment to be restored and the lock released while the callback continues executing.

Use this in full-analysis to release the activation lock after the code loading phase finishes, allowing other analysis requests to proceed while type inference continues in the background.

@aviatesk aviatesk force-pushed the avi/early-release-activation-lock branch from 425882a to bb579fe Compare November 29, 2025 19:43
Add a variant of activate_do that allows early release of ACTIVATE_LOCK
before the callback completes. The caller can notify the passed event to
signal that the activated environment is no longer needed, enabling the
environment to be restored and the lock released while the callback
continues executing.

Use this in full-analysis to release the activation lock after the code
loading phase finishes, allowing other analysis requests to proceed
while type inference continues in the background.
@aviatesk aviatesk force-pushed the avi/early-release-activation-lock branch from bb579fe to b625684 Compare November 30, 2025 13:24
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 30, 2025

Codecov Report

❌ Patch coverage is 88.09524% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.78%. Comparing base (c88c41f) to head (b625684).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/analysis/full-analysis.jl 66.66% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #348      +/-   ##
==========================================
+ Coverage   65.62%   65.78%   +0.15%     
==========================================
  Files          40       40              
  Lines        4154     4173      +19     
==========================================
+ Hits         2726     2745      +19     
  Misses       1428     1428              
Flag Coverage Δ
JETLS.jl 65.78% <88.09%> (+0.15%) ⬆️

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 e0e19a6 into master Nov 30, 2025
10 of 11 checks passed
@aviatesk aviatesk deleted the avi/early-release-activation-lock branch November 30, 2025 14:01
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