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

Add Flyin propeller config #4610

Merged
merged 11 commits into from
Dec 20, 2023
Merged

Add Flyin propeller config #4610

merged 11 commits into from
Dec 20, 2023

Conversation

eapolinario
Copy link
Contributor

Tracking issue

#4284

Why are the changes needed?

We want a way to expose a log link in the case of tasks that use the flyin plugin

What changes were proposed in this pull request?

Expose a flyin-enabled pflag and ensure that only tasks that fill the task template with the appropriate config get a Flyin log.

How was this patch tested?

Unit tests and a smoke test with single-binary running locally.

Setup process

Screenshots

Ran this workflow:
Screenshot 2023-12-18 at 12 30 54 PM

The task that's using the @vscode decorator:
Screenshot 2023-12-18 at 12 30 36 PM

And the other task:
Screenshot 2023-12-18 at 12 30 43 PM

Check all the applicable boxes

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

Related PRs

Docs link

…f ArrayNode (#4535)"

This reverts commit b50ba87.

Signed-off-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Dec 18, 2023
Signed-off-by: Eduardo Apolinario <[email protected]>
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (3648440) 59.01% compared to head (6f4dc20) 59.02%.

Files Patch % Lines
flyteplugins/go/tasks/logs/logging_utils.go 62.50% 2 Missing and 1 partial ⚠️
flyteplugins/go/tasks/plugins/k8s/pod/plugin.go 40.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4610   +/-   ##
=======================================
  Coverage   59.01%   59.02%           
=======================================
  Files         622      622           
  Lines       52739    52775   +36     
=======================================
+ Hits        31123    31148   +25     
- Misses      19133    19140    +7     
- Partials     2483     2487    +4     
Flag Coverage Δ
unittests 59.02% <84.61%> (+<0.01%) ⬆️

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.

eapolinario and others added 5 commits December 18, 2023 12:39
Signed-off-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
@eapolinario eapolinario enabled auto-merge (squash) December 19, 2023 18:43
@eapolinario eapolinario merged commit 3501675 into master Dec 20, 2023
45 checks passed
@eapolinario eapolinario deleted the vscode-config branch December 20, 2023 16:11
Comment on lines +31 to +33
IsFlyinEnabled bool `json:"flyin-enabled" pflag:",Enable Log-links to flyin logs"`
FlyinTemplateURI tasklog.TemplateURI `json:"flyin-template-uri" pflag:",Template Uri to use when building flyin log links"`

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this specific to flyin? This should be a map of string & tasklog.TemplateLogPlugin... task templates should be able to enable any number of them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We sync'd offline and the idea is to make this more extensible by providing a way for tasks to dynamically set log links. I'll be sending a follow up PR shortly.

eapolinario added a commit that referenced this pull request Jan 24, 2024
This reverts commit 3501675.

Signed-off-by: Eduardo Apolinario <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants