Skip to content

Free up slots more aggressively#334

Merged
rayman2000 merged 2 commits intomasterfrom
nklose/ast-slots
Mar 4, 2026
Merged

Free up slots more aggressively#334
rayman2000 merged 2 commits intomasterfrom
nklose/ast-slots

Conversation

@rayman2000
Copy link
Contributor

@rayman2000 rayman2000 commented Feb 17, 2026

This is part of an effort to increase test reliability of Viper IDE.

We limit the number of AST jobs to three, but currently do not free up slots very well. For example, if you switch around between files somewhat quickly, then things will get stuck because the slots are not freed up. This "getting-stuck" means that the server stops responding, so tests fail.

This PR frees these slots more aggressively when things are cancelled (e.g. by switching to a different file while verification is still running) so that this hang-up doesn't happen anymore.

@JonasAlaif
Copy link
Contributor

I only have a very rough idea of how this stuff is meant to work, so can't really tell if it's correct just from looking at the code. But if it passes the IDE tests and you've tried it out and it seems to work then it's fine with me.

@rayman2000 rayman2000 added this pull request to the merge queue Mar 4, 2026
Merged via the queue into master with commit ba02381 Mar 4, 2026
13 checks passed
@rayman2000 rayman2000 deleted the nklose/ast-slots branch March 4, 2026 14:04
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.

2 participants