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

[Backport 2.10] Fixing Duplicate Pipeline Versions [CORE-2252] (#10024) #10038

Merged
merged 1 commit into from
May 8, 2024

Conversation

acohen4
Copy link
Contributor

@acohen4 acohen4 commented May 8, 2024

Summary:
This change adds a migration step to 2.10 that detects whether pipeline versions with colliding version numbers exist. If detected, the migration proceeds to renumber all of the pipeline versions for the offending pipelines, updates the corresponding Job objects in the collections.jobs table, and finally adds a UNIQUE index onto the Pipelines table so that we prevent the database from entering a bad state in the future.

TODO

  • fix for issue
  • tests infra
  • handle proto versions
  • test completion

@acohen4 acohen4 changed the title Fixing Duplicate Pipeline Versions [CORE-2252] (#10024) [Backport 2.10] Fixing Duplicate Pipeline Versions [CORE-2252] (#10024) May 8, 2024
@acohen4 acohen4 requested a review from jrockway May 8, 2024 19:39
Summary:
This change adds a migration step to 2.10 that detects whether pipeline
versions with colliding version numbers exist. If detected, the
migration proceeds to renumber all of the pipeline versions for the
offending pipelines, updates the corresponding Job objects in the
collections.jobs table, and finally adds a UNIQUE index onto the
Pipelines table so that we prevent the database from entering a bad
state in the future.

TODO
- [x] fix for issue
- [x] tests infra
- [x] handle proto versions
- [x] test completion

---------

Co-authored-by: Zartaj Majeed <zartaj.majeed@hpe.com>
Co-authored-by: Robert A. Uhl <robert.uhl@hpe.com>
Co-authored-by: Alon Cohen <acohen4@users.noreply.github.com>
Co-authored-by: Zartaj Majeed <zmajeed@users.noreply.github.com>
@acohen4 acohen4 force-pushed the acohen4/2_10-fix-dup-pips branch from 9025399 to 30fc62f Compare May 8, 2024 19:50
Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 85.39326% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 57.91%. Comparing base (7f2fda6) to head (30fc62f).

Files Patch % Lines
src/internal/clusterstate/v2.10.0/pipelines.go 84.07% 25 Missing ⚠️
src/internal/pachd/builder.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           2.10.x   #10038      +/-   ##
==========================================
- Coverage   58.11%   57.91%   -0.20%     
==========================================
  Files         619      620       +1     
  Lines       76009    76178     +169     
==========================================
- Hits        44174    44121      -53     
- Misses      31287    31516     +229     
+ Partials      548      541       -7     

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

@acohen4 acohen4 merged commit 6704c6e into 2.10.x May 8, 2024
21 checks passed
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.

None yet

3 participants