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

Make Flytefile and Flytedirectory's copilot local execution work correctly #2887

Conversation

wayner0628
Copy link
Contributor

Tracking issue

flyteorg/flyte#5929

Why are the changes needed?

To make copilot task local execution syntax aligned with remote execution and avoid the not expected behaviors.

What changes were proposed in this pull request?

For flyte directory and flyte file,
make /var/inputs work and make "{{.inputs.inputs}}" doesn't.

How was this patch tested?

Setup process

Screenshots

  • Assertion Error: Raised when using {{.inputs.inputs}} with FlyteFile and FlyteDirectory.
Screenshot 2024-10-31 at 7 04 54 PM
  • Successful Run: Indicates the expected behavior when valid commands are provided.
Screenshot 2024-10-31 at 7 05 26 PM

Check all the applicable boxes

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

Related PRs

#2258
flyteorg/flyte#5715

Docs link

Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Copy link

codecov bot commented Nov 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.31%. Comparing base (804dae1) to head (9416ca3).
Report is 22 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (804dae1) and HEAD (9416ca3). Click for more details.

HEAD has 23 uploads less than BASE
Flag BASE (804dae1) HEAD (9416ca3)
32 9
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2887      +/-   ##
==========================================
- Coverage   84.60%   79.31%   -5.29%     
==========================================
  Files         271      199      -72     
  Lines       23839    20851    -2988     
  Branches     2671     2683      +12     
==========================================
- Hits        20169    16538    -3631     
- Misses       2901     3564     +663     
+ Partials      769      749      -20     

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

@wayner0628
Copy link
Contributor Author

This PR should pass the CI, please retrigger CI if possible, thank you!

Future-Outlier
Future-Outlier previously approved these changes Nov 14, 2024
Copy link
Member

@Future-Outlier Future-Outlier left a comment

Choose a reason for hiding this comment

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

Very nice PR, you are Amazing, Flyte, Tesla, and AXIS will appreciate you.

@Future-Outlier Future-Outlier enabled auto-merge (squash) November 14, 2024 05:31
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Future-Outlier
Future-Outlier previously approved these changes Nov 14, 2024
Signed-off-by: wayner0628 <[email protected]>
auto-merge was automatically disabled November 14, 2024 06:00

Head branch was pushed to by a user without write access

@Future-Outlier Future-Outlier enabled auto-merge (squash) November 14, 2024 06:01
Signed-off-by: Future-Outlier <[email protected]>
@Future-Outlier Future-Outlier merged commit 8feb3b8 into flyteorg:master Nov 14, 2024
29 checks passed
@wayner0628 wayner0628 deleted the fix/copilot-local-execution-input-extract branch November 15, 2024 02:51
katrogan pushed a commit that referenced this pull request Nov 15, 2024
…ectly (#2887)

* fix container task local execution path key extraction

Signed-off-by: wayner0628 <[email protected]>

* lint

Signed-off-by: wayner0628 <[email protected]>

* lint

Signed-off-by: wayner0628 <[email protected]>

* lint

Signed-off-by: wayner0628 <[email protected]>

* ruff format

Signed-off-by: wayner0628 <[email protected]>

* add wrong syntax unit testing

Signed-off-by: wayner0628 <[email protected]>

* fix pytest raise

Signed-off-by: wayner0628 <[email protected]>

* Better Error MSG, very nice PR Wayner

Signed-off-by: Future-Outlier <[email protected]>

* nit

Signed-off-by: Future-Outlier <[email protected]>

* nit

Signed-off-by: Future-Outlier <[email protected]>

* nit

Signed-off-by: wayner0628 <[email protected]>

---------

Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Co-authored-by: Future-Outlier <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
400Ping pushed a commit to 400Ping/flytekit that referenced this pull request Nov 22, 2024
…ectly (flyteorg#2887)

* fix container task local execution path key extraction

Signed-off-by: wayner0628 <[email protected]>

* lint

Signed-off-by: wayner0628 <[email protected]>

* lint

Signed-off-by: wayner0628 <[email protected]>

* lint

Signed-off-by: wayner0628 <[email protected]>

* ruff format

Signed-off-by: wayner0628 <[email protected]>

* add wrong syntax unit testing

Signed-off-by: wayner0628 <[email protected]>

* fix pytest raise

Signed-off-by: wayner0628 <[email protected]>

* Better Error MSG, very nice PR Wayner

Signed-off-by: Future-Outlier <[email protected]>

* nit

Signed-off-by: Future-Outlier <[email protected]>

* nit

Signed-off-by: Future-Outlier <[email protected]>

* nit

Signed-off-by: wayner0628 <[email protected]>

---------

Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Co-authored-by: Future-Outlier <[email protected]>
Signed-off-by: 400Ping <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants