Skip to content
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

Fix: segment not found issues (SOFIE-3626) #1325

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

nytamin
Copy link
Contributor

@nytamin nytamin commented Nov 21, 2024

About the Contributor

This pull request is posted on behalf of the NRK

Type of Contribution

This is a:

Bug fix

Current Behavior

We have experienced various issues in production related to error messages of the Segment "xyz" not found type.
While we haven't confidently identified the core issue we have found a few potential problems introduced in release51.

Fixes

  • If the NRCS removes a Part that is currently the previous Part in Sofie, the syncChangesToPartInstances failed because the Segment of the previous PartInstance was not found.
    The fix: Include previous PartInstance in the orphan-Segment-check, so that the Segment will now be orphaned instead of removed.
  • If the NRCS removes the first Part in a Segment, this changes the id of the Segment (this is normal). There was a potential situation in the updatePartInstancesSegmentIds method where the new ids are to be synced to the PartInstances, that has now been fixed.

Testing

  • I have added one or more unit tests for this PR
  • I have updated the relevant unit tests
  • No unit test changes are needed for this PR

Affected areas

  • This PR affects ingest operations
  • This PR affects takes/Next/Adlibbing/playout logic in general

Time Frame

This Bug Fix is critical for us, we till merge this asap.

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@nytamin nytamin requested a review from a team as a code owner November 21, 2024 10:42
@nytamin nytamin changed the title Fix: segment not found issues Fix: segment not found issues (SOFIE-3626) Nov 21, 2024
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 79.70297% with 41 lines in your changes missing coverage. Please review.

Project coverage is 58.02%. Comparing base (d908ac6) to head (93f4b9d).

Files with missing lines Patch % Lines
...c/playout/model/implementation/PlayoutModelImpl.ts 0.00% 23 Missing ⚠️
...ckages/job-worker/src/playout/timeline/generate.ts 0.00% 12 Missing ⚠️
packages/job-worker/src/playout/infinites.ts 76.19% 5 Missing ⚠️
packages/job-worker/src/ingest/commit.ts 99.01% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           release51    #1325      +/-   ##
=============================================
+ Coverage      57.96%   58.02%   +0.05%     
=============================================
  Files            525      525              
  Lines          84951    85094     +143     
  Branches        4443     4437       -6     
=============================================
+ Hits           49245    49376     +131     
+ Misses         35673    35664       -9     
- Partials          33       54      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@nytamin nytamin merged commit 3b0cbdc into release51 Nov 21, 2024
78 of 80 checks passed
@nytamin nytamin deleted the fix/segment-not-found-issues branch November 21, 2024 11:54
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