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

move pod start/end time to a common template vars #4676

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

vraiyaninv
Copy link
Contributor

Why are the changes needed?

Currently, in the tasklog template, task pod start end/time is only supported with TemplateSchemePodscheme. It is useful to have it for TemplateSchemeTaskExecution scheme as well to construct URLs with correct time ranges (eg. Grafana Metrics Dashboard for multi-worker training jobs)

What changes were proposed in this pull request?

Move pod start/end time temalateVars to common section.

How was this patch tested?

Unit-testes

pod start/end time is useful to have even with TemplateSchemeTaskExecution,
to construct precise timerange in the URL.

Signed-off-by: vraiyani <[email protected]>
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Jan 4, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 4, 2024
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (842d3a8) 58.13% compared to head (8bbdd44) 58.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4676      +/-   ##
==========================================
+ Coverage   58.13%   58.16%   +0.02%     
==========================================
  Files         626      626              
  Lines       53782    53786       +4     
==========================================
+ Hits        31266    31282      +16     
+ Misses      20008    19998      -10     
+ Partials     2508     2506       -2     
Flag Coverage Δ
unittests 58.16% <100.00%> (+0.02%) ⬆️

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 pingsutw enabled auto-merge (squash) January 8, 2024 20:43
@pingsutw pingsutw merged commit f2316b3 into flyteorg:master Jan 8, 2024
45 checks passed
katrogan pushed a commit that referenced this pull request Jan 12, 2024
pod start/end time is useful to have even with TemplateSchemeTaskExecution,
to construct precise timerange in the URL.

Signed-off-by: vraiyani <[email protected]>
Co-authored-by: David Espejo <[email protected]>
Co-authored-by: Kevin Su <[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 lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants