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: Use deterministic execution names in scheduler #5724

Merged
merged 6 commits into from
Sep 5, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Sep 4, 2024

Tracking issue

NA

Why are the changes needed?

https://github.com/flyteorg/flyte/pull/5637/files changes the execution name to a random string in the scheduler, but it should use a deterministic name. Otherwise, the scheduler will create multiple executions for the same time slot.

What changes were proposed in this pull request?

generate a deterministic hash and than use it to generate a human id

How was this patch tested?

unit test

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

Signed-off-by: Kevin Su <pingsutw@apache.org>
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 36.20%. Comparing base (5f69589) to head (a9d7bee).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
flyteadmin/scheduler/identifier/identifier.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5724   +/-   ##
=======================================
  Coverage   36.19%   36.20%           
=======================================
  Files        1303     1303           
  Lines      109554   109560    +6     
=======================================
+ Hits        39657    39669   +12     
+ Misses      65778    65771    -7     
- Partials     4119     4120    +1     
Flag Coverage Δ
unittests-datacatalog 51.37% <ø> (ø)
unittests-flyteadmin 55.60% <88.88%> (+0.04%) ⬆️
unittests-flytecopilot 12.17% <ø> (ø)
unittests-flytectl 62.17% <ø> (ø)
unittests-flyteidl 7.12% <ø> (ø)
unittests-flyteplugins 53.35% <ø> (ø)
unittests-flytepropeller 41.76% <ø> (ø)
unittests-flytestdlib 55.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

pingsutw and others added 4 commits September 4, 2024 14:00
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com>
eapolinario
eapolinario previously approved these changes Sep 5, 2024
Copy link
Contributor

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@eapolinario eapolinario enabled auto-merge (squash) September 5, 2024 14:22
Signed-off-by: Kevin Su <pingsutw@apache.org>
@eapolinario eapolinario merged commit a058fd1 into master Sep 5, 2024
50 checks passed
@eapolinario eapolinario deleted the deterministic-name branch September 5, 2024 18:07
pmahindrakar-oss pushed a commit that referenced this pull request Sep 9, 2024
* feat: Use deterministic execution names in scheduler

Signed-off-by: Kevin Su <pingsutw@apache.org>

* fix tests

Signed-off-by: Kevin Su <pingsutw@apache.org>

* lint

Signed-off-by: Kevin Su <pingsutw@apache.org>

* lint

Signed-off-by: Kevin Su <pingsutw@apache.org>

---------

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com>
Signed-off-by: pmahindrakar-oss <prafulla.mahindrakar@gmail.com>
pmahindrakar-oss pushed a commit that referenced this pull request Sep 9, 2024
* feat: Use deterministic execution names in scheduler

Signed-off-by: Kevin Su <pingsutw@apache.org>

* fix tests

Signed-off-by: Kevin Su <pingsutw@apache.org>

* lint

Signed-off-by: Kevin Su <pingsutw@apache.org>

* lint

Signed-off-by: Kevin Su <pingsutw@apache.org>

---------

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com>
Signed-off-by: pmahindrakar-oss <prafulla.mahindrakar@gmail.com>
pingsutw added a commit that referenced this pull request Sep 11, 2024
bgedik pushed a commit to bgedik/flyte that referenced this pull request Sep 12, 2024
* feat: Use deterministic execution names in scheduler

Signed-off-by: Kevin Su <pingsutw@apache.org>

* fix tests

Signed-off-by: Kevin Su <pingsutw@apache.org>

* lint

Signed-off-by: Kevin Su <pingsutw@apache.org>

* lint

Signed-off-by: Kevin Su <pingsutw@apache.org>

---------

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com>
Signed-off-by: Bugra Gedik <bgedik@gmail.com>
eapolinario pushed a commit that referenced this pull request Sep 26, 2024
* Revert "fix: Use deterministic execution names in scheduler (#5724)"

This reverts commit a058fd1.

* Revert "Improve execution name readability (#5637)"

This reverts commit 2ed2408.

* nit

Signed-off-by: Kevin Su <pingsutw@apache.org>

* make helm

Signed-off-by: Kevin Su <pingsutw@apache.org>

---------

Signed-off-by: Kevin Su <pingsutw@apache.org>
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.

3 participants