Repository navigation
test: DAPSetExpressionSessionTest waits for a frame of the next stop to be the current one before it sets a value of that stop - #2216
Merged
lagergren merged 1 commit intoNov 24, 2026
Conversation
…to be the current one before it sets a value of that stop stopAgain() waited for a new suspend context and for a DAPStackFrame to be the current frame. The frame of the earlier stop is one too, and the session takes the new suspend context before it makes a frame of it the current one. So the wait could end in between, and the test then took the variable of the earlier stop, which Set Value rightly reports as out of date: testSetValueOfAVariableOfAnEarlierStopReportsItAndSendsNothing failed so on the Linux 2026.3 job of redhat-developer#2211. stopAgain() now also waits until the current frame is another one than before the stop.
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 17 minutes. View limit details
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2216 +/- ##
==========================================
- Coverage 54.65% 54.64% -0.01%
==========================================
Files 834 834
Lines 35385 35385
Branches 5546 5546
==========================================
- Hits 19339 19336 -3
- Misses 13208 13209 +1
- Partials 2838 2840 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
What
DAPSetExpressionSessionTest.testSetValueOfAVariableOfAnEarlierStopReportsItAndSendsNothingfailed on the Linux 2026.3 job of #2211, which doesn't touch DAP. Its message was "The value is set": Set Value of a variable of the second stop answered with an error.stopAgain()waited for a new suspend context, and for aDAPStackFrameto be the current frame. The earlier stop's frame is one too, and the session takes the new suspend context before it makes a frame of it the current one. So the wait could end in between.local("answer")then took the variable of the earlier stop, which Set Value rightly reports as out of date.Change
stopAgain()also waits until the current frame is a different object from the one before the stop. A stop makes new frames, also for a frame whose id and function are the same. The tests that use a value of the earlier stop,DAPJumpToDeclarationSessionTestandDAPJumpToValueSourceSessionTest, don't use the current frame, so they don't have this race.Only the test changes.
Tests
DAPSetExpressionSessionTestpasses headless on IC 2024.2, 2025.3 and IU 2026.3: 19 tests each, also in three runs on 2026.3.