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

Split templating scheme #373

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Conversation

jeevb
Copy link
Contributor

@jeevb jeevb commented Jul 14, 2023

No description provided.

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #373 (aa9ef4f) into jeev/tasklog-tmpl-vars (5a5ad82) will increase coverage by 1.34%.
The diff coverage is 81.15%.

❗ Current head aa9ef4f differs from pull request most recent head 74d1224. Consider uploading reports for the commit 74d1224 to get more accurate results

@@                    Coverage Diff                     @@
##           jeev/tasklog-tmpl-vars     #373      +/-   ##
==========================================================
+ Coverage                   62.87%   64.21%   +1.34%     
==========================================================
  Files                         153      154       +1     
  Lines                       12893    10570    -2323     
==========================================================
- Hits                         8107     6788    -1319     
+ Misses                       4172     3168    -1004     
  Partials                      614      614              
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
go/tasks/logs/config.go 0.00% <ø> (ø)
go/tasks/pluginmachinery/flytek8s/config/config.go 50.00% <ø> (ø)
...s/pluginmachinery/tasklog/templatescheme_enumer.go 0.00% <0.00%> (ø)
...tasks/pluginmachinery/flytek8s/container_helper.go 86.45% <41.66%> (+1.07%) ⬆️
go/tasks/pluginmachinery/tasklog/template.go 97.20% <98.27%> (-0.10%) ⬇️
go/tasks/logs/logging_utils.go 89.70% <100.00%> (+1.47%) ⬆️
go/tasks/pluginmachinery/flytek8s/pod_helper.go 71.07% <100.00%> (-1.95%) ⬇️
go/tasks/plugins/array/k8s/subtask.go 30.35% <100.00%> (-0.14%) ⬇️
go/tasks/plugins/array/k8s/subtask_exec_context.go 83.18% <100.00%> (+3.98%) ⬆️
go/tasks/plugins/k8s/dask/dask.go 86.12% <100.00%> (+3.24%) ⬆️
... and 6 more

... and 121 files with indirect coverage changes

@jeevb jeevb marked this pull request as ready for review July 14, 2023 17:43
@jeevb jeevb merged commit c41e055 into jeev/tasklog-tmpl-vars Jul 14, 2023
@jeevb jeevb deleted the jeev/split-templating-scheme branch July 14, 2023 17:43
jeevb added a commit that referenced this pull request Jul 15, 2023
…372)

* Refactor task log templates to support extra vars

* plumbing for k8s

* Cleanup use of providers

* cleanup

* more cleanups

* more cleanups

* more cleanups

* Plumb through task context for plugins

* fix

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>

* move task execution identifier into Input struct

* use pointer

* tests

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>

* fix linting

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>

* cleanups

* fix

* revert to using regex replacements for performance

* Readd benchmark

* Split templating scheme (#373)

* Use a split templating scheme

* add enum for TemplateScheme

* cleanup comment

* fix linting issues

* add unit tests for templateVarsForScheme

* update for consistency

---------

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
…372)

* Refactor task log templates to support extra vars

* plumbing for k8s

* Cleanup use of providers

* cleanup

* more cleanups

* more cleanups

* more cleanups

* Plumb through task context for plugins

* fix

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>

* move task execution identifier into Input struct

* use pointer

* tests

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>

* fix linting

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>

* cleanups

* fix

* revert to using regex replacements for performance

* Readd benchmark

* Split templating scheme (#373)

* Use a split templating scheme

* add enum for TemplateScheme

* cleanup comment

* fix linting issues

* add unit tests for templateVarsForScheme

* update for consistency

---------

Signed-off-by: Jeev B <jeevb@users.noreply.github.com>
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.

2 participants