Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Decks proposal #453

Merged
merged 29 commits into from
Jun 22, 2022
Merged

Decks proposal #453

merged 29 commits into from
Jun 22, 2022

Conversation

EngHabu
Copy link
Contributor

@EngHabu EngHabu commented Jun 21, 2022

TL;DR

Add deck_uri in NodeExecutionEvent. This change was originally proposed in #443 but this is a modified (and simplified) implementation that only sends DeckUri for task nodes...

Blocked By

flyteorg/flyteplugins#272

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

flyteorg/flyte#2175

pingsutw added 24 commits May 24, 2022 23:21
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
@EngHabu EngHabu changed the base branch from master to deck June 21, 2022 21:51
@EngHabu EngHabu changed the base branch from deck to master June 21, 2022 21:52
@EngHabu EngHabu force-pushed the decks-proposal branch 4 times, most recently from 9a94dd0 to e14eb96 Compare June 21, 2022 23:49
@EngHabu EngHabu force-pushed the decks-proposal branch 3 times, most recently from c6335aa to 5d9ccd9 Compare June 21, 2022 23:52
Signed-off-by: Haytham Abuelfutuh <[email protected]>
@EngHabu EngHabu marked this pull request as ready for review June 21, 2022 23:56
@EngHabu EngHabu requested review from kumare3 and hamersaw as code owners June 21, 2022 23:56
@EngHabu EngHabu requested review from eapolinario and pingsutw June 21, 2022 23:57
hamersaw
hamersaw previously approved these changes Jun 22, 2022
Copy link
Contributor

@hamersaw hamersaw left a comment

Choose a reason for hiding this comment

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

Looks like a few lint issues to clean up. Otherwise LGTM!

logger.Errorf(ctx, "Failed to check deck file existence. Error: %v", err)
return handler.UnknownTransition, regErrors.Wrapf(err, "failed to check existence of deck file")
} else if exists {
deckUriValue := tCtx.ow.GetDeckPath()
Copy link
Member

Choose a reason for hiding this comment

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

sorry, please correct me if I'm wrong.

I think it should be deckUriValue := r.GetDeckPath().
When cache hit, we copy literal to another bucket, but we didn't copy the deck file to new path (tCtx.ow.GetDeckPath()). As a result, deckURI here should point to the original path (r.GetDeckPath())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aha, excellent observation! will fix that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed it completely as we discussed earlier... people, for now, can click to follow the original execution of that task to find/access the decks... for now... to properly fix this, I think we need to modify the OutputReader interface in flyteplugins, specifically the Read() method to return OutputMetadata struct and the deckpath can be a field there...

Copy link
Member

Choose a reason for hiding this comment

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

Agreed, I can do that.

Signed-off-by: Haytham Abuelfutuh <[email protected]>
EngHabu added 2 commits June 22, 2022 10:17
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
@codecov
Copy link

codecov bot commented Jun 22, 2022

Codecov Report

Merging #453 (1f97d42) into master (d5ba4c7) will decrease coverage by 0.00%.
The diff coverage is 62.22%.

❗ Current head 1f97d42 differs from pull request most recent head 44efa04. Consider uploading reports for the commit 44efa04 to get more accurate results

Signed-off-by: Haytham Abuelfutuh <[email protected]>
@EngHabu EngHabu merged commit f08ccaa into master Jun 22, 2022
@EngHabu EngHabu deleted the decks-proposal branch June 22, 2022 18:44
@pingsutw pingsutw mentioned this pull request Jun 22, 2022
8 tasks
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
* Add deck_uri in NodeExecutionEvent

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* lint fix

Signed-off-by: Kevin Su <[email protected]>

* Updated idl

Signed-off-by: Kevin Su <[email protected]>

* wip

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* Fix tests

Signed-off-by: Kevin Su <[email protected]>

* Fix tests

Signed-off-by: Kevin Su <[email protected]>

* Fix tests

Signed-off-by: Kevin Su <[email protected]>

* Fix tests

Signed-off-by: Kevin Su <[email protected]>

* Fix tests

Signed-off-by: Kevin Su <[email protected]>

* Updated idl

Signed-off-by: Kevin Su <[email protected]>

* address comment

Signed-off-by: Kevin Su <[email protected]>

* fix tests

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* fix tests

Signed-off-by: Kevin Su <[email protected]>

* fix tests

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* fix tests

Signed-off-by: Kevin Su <[email protected]>

* updates

Signed-off-by: Kevin Su <[email protected]>

* updates

Signed-off-by: Kevin Su <[email protected]>

* More cleanup

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* lint

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* PR comments

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* Unit tests

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* lint

Signed-off-by: Haytham Abuelfutuh <[email protected]>

Co-authored-by: Kevin Su <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants