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

Introduce Template-based task logging plugin #144

Merged
merged 9 commits into from
Jan 20, 2021

Conversation

EngHabu
Copy link
Contributor

@EngHabu EngHabu commented Jan 19, 2021

TL;DR

Add Template-based task logging plugin and update usage to match.

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

Tracking Issue

flyteorg/flyte#549
flyteorg/flyte#448

DefaultSparkConfig map[string]string `json:"spark-config-default" pflag:"-,Key value pairs of default spark configuration that should be applied to every SparkJob"`
SparkHistoryServerURL string `json:"spark-history-server-url" pflag:",URL for SparkHistory Server that each job will publish the execution history to."`
Features []Feature `json:"features" pflag:"-,List of optional features supported."`
LogConfig LogConfig `json:"logs" pflag:",Config for log links for spark applications."`
Copy link
Contributor

Choose a reason for hiding this comment

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

*? optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I like the * to indicate optional fields in logs... the added, mostly redundant, nil checks alone are just tiring... I think we might want to add something on the tags to indicate requirement...

@codecov-io
Copy link

Codecov Report

Merging #144 (a19ec4f) into master (9d02bb0) will increase coverage by 0.28%.
The diff coverage is 80.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #144      +/-   ##
==========================================
+ Coverage   61.62%   61.91%   +0.28%     
==========================================
  Files         106      109       +3     
  Lines        6090     6244     +154     
==========================================
+ Hits         3753     3866     +113     
- Misses       1954     1979      +25     
- Partials      383      399      +16     
Impacted Files Coverage Δ
go/tasks/logs/config.go 100.00% <ø> (ø)
go/tasks/logs/logging_utils.go 67.21% <68.00%> (-16.66%) ⬇️
...o/tasks/plugins/k8s/kfoperators/pytorch/pytorch.go 75.65% <71.42%> (-1.14%) ⬇️
go/tasks/plugins/k8s/spark/spark.go 77.77% <74.35%> (-4.53%) ⬇️
go/tasks/plugins/k8s/spark/config_flags.go 79.66% <79.66%> (ø)
go/tasks/pluginmachinery/tasklog/template.go 96.55% <96.55%> (ø)
go/tasks/logs/logconfig_flags.go 52.00% <100.00%> (+6.54%) ⬆️
go/tasks/plugins/k8s/spark/config.go 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d02bb0...a19ec4f. Read the comment docs.

@EngHabu EngHabu requested a review from kumare3 January 19, 2021 19:05
@EngHabu EngHabu requested a review from akhurana001 January 19, 2021 23:54
Copy link
Contributor

@akhurana001 akhurana001 left a comment

Choose a reason for hiding this comment

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

LGTM, this looks like backward compatible with the current setup so we should be fine.

Also the build is failing due to some access error, not sure why .

@EngHabu
Copy link
Contributor Author

EngHabu commented Jan 20, 2021 via email

@akhurana001 akhurana001 merged commit 79bcea8 into flyteorg:master Jan 20, 2021
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
* New task log interface and template plugin

* Update spark and pytorch plugins

* fix unit tests

* Make tests deterministic

* PR Comments

* unit test sorted

* Ensure deterministic order of task logs

* Use mixed logs for driver pod

* PR Comments
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.

4 participants