[O2B-1450] Update SYNTHETIC run definition#1913
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates the SYNTHETIC run definition to no longer rely on readout_cfg_uri and instead match on run_type.name (SYNTHETIC or REPLAY). It adjusts fixtures, tests, core logic, and documentation accordingly.
- Replace
PP/PBPBfixtures withREPLAY/SYNTHETICand removereadoutCfgUri - Update tests to expect the new subkeys and logic
- Modify
getRunDefinitionto userunType.nameregex instead of URI checks - Revise docs to describe the new run definition criteria
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/mocks/mock-run.js | Updated SYNTHETIC fixtures: removed URI and renamed keys |
| test/lib/server/services/run/getRunDefinition.test.js | Adjusted expectations to use SYNTHETIC.REPLAY and .SYNTHETIC |
| test/lib/server/services/run/RunService.test.js | Updated creation test to use SYNTHETIC.SYNTHETIC |
| lib/server/services/run/getRunDefinition.js | Removed URI check and switched to runType.name regex |
| docs/RUN_DEFINITIONS.md | Updated SYNTHETIC section; added run_type criteria and retained historical definitions |
Comments suppressed due to low confidence (3)
test/mocks/mock-run.js:173
- [nitpick] The nested object under
SYNTHETIC.REPLAYandSYNTHETIC.SYNTHETICmay be confusing. Consider adding a comment or using more descriptive keys to clarify the relationship between the top-levelSYNTHETICfixture and its subtypes.
REPLAY: {
test/lib/server/services/run/getRunDefinition.test.js:42
- These tests cover uppercase
REPLAYandSYNTHETIC. Add cases with mixed or lowercaserunType.namevalues to ensure the regex matching remains truly case-insensitive.
expect(getRunDefinition(SYNTHETIC.REPLAY)).to.equal(RunDefinition.SYNTHETIC);
docs/RUN_DEFINITIONS.md:60
- The 'Previous RUN Definitions' section still shows the old
readout_cfg_uricriteria without marking it as deprecated, which could confuse readers. Consider clearly labeling it as historical or removing it altogether.
## Previous RUN Definitions
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1913 +/- ##
=======================================
Coverage 40.89% 40.89%
=======================================
Files 1019 1019
Lines 17133 17132 -1
Branches 3090 3089 -1
=======================================
Hits 7006 7006
+ Misses 10127 10126 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
I have a JIRA ticket
Notable changes for users:
Notable changes for developers:
Changes made to the database: