-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adjust server-side timers when resuming an execution #2438
Merged
hectoras
merged 18 commits into
develop
from
feat/TR-5911-adjust-server-timers-when-resuming-an-execution
Jan 25, 2024
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
851360e
feat: Adjust server timers when resuming an execution
hectoras e9bc636
chore: Cleanup
hectoras 83dd3f8
chore: Cleanup
hectoras a5b8f75
chore: Update year in license header
hectoras 8b5b6f2
chore: Get the former order for duration cache updates
hectoras 229d5a3
fix: Explicitly provide the component to apply the adjustment in
hectoras fb85c06
chore: Revert to the simpler approach applying the adjustment tot he …
hectoras c5d9648
chore: Change log msg
hectoras 8da35ae
fix: Store the pause timestamp associated to all execution IDs
hectoras 4393a42
chore: Cleanup
hectoras 0519afb
chore: Cleanup
hectoras b4e1bd2
chore: Cleanup
hectoras 4c1ca83
chore: Coding style improvements
hectoras 46d1793
chore: Use a lower log level for debug messages in ConcurringSessionS…
hectoras 46991ef
fix: Don't try to update the duration cache for non-available sources
hectoras 75fb5c8
fix: Pass the execution user ID when fetching the service context
hectoras f841314
fix: Store the item duration instead of the current timestamp on test…
hectoras c6b4f7b
test: Update unit tests
hectoras File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure, that we can use
$this
(TestSession) instead of RoutItem ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This solves a bug: If this ends up being called on a test (lets call it test B) other than the one we are current running (lets call it test A),
$routeItem
isnull
. That is,getCurrentRouteItem()
returnsnull
when called from a request associated with the test runner session for test A to get the current item for test B.The test we are pausing (B) is / was running, but not in the current request (which is "bound" to A), and we need this to work also in that case (so the elapsed time for the item of test B is stored when suspending the test).
Both
$routeItem->getAssessmentItemRef()
and$this->getAssessmentTest()
return an instance ofAssessmentTest
that refers to the same test.