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

Adding support for structured dataset #369

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Adding support for structured dataset #369

merged 1 commit into from
Feb 22, 2023

Conversation

pmahindrakar-oss
Copy link
Contributor

@pmahindrakar-oss pmahindrakar-oss commented Feb 21, 2023

TL;DR

Adds support for structured data set for flytectl

Followup PR in flytectl to dumps the output which were missing in details flag.

Eg o/p for execution with structured dataset. It dumps the URI currently for the stored o/p.

 flytectl get executions -p flytesnacks -d development f12ce5ce3aae045378c1  --details 
TABLE format is not supported on detailed view and defaults to tree view. Choose either json/yaml

└── start-node - SUCCEEDED - 2023-02-21 19:20:26.545951047 +0000 UTC - 2023-02-21 19:20:26.545951047 +0000 UTC
│   ├── Outputs :
│       └── a: 2
└── n0 - SUCCEEDED - 2023-02-21 19:20:26.777756742 +0000 UTC - 2023-02-21 19:20:41.033027942 +0000 UTC
│   ├── Attempt :0
│   │   ├── Task - SUCCEEDED - 2023-02-21 19:20:27.069960835 +0000 UTC - 2023-02-21 19:20:40.827311935 +0000 UTC
│   │   ├── Task Type - python-task
│   │   ├── Reason - [ContainersNotReady|ContainerCreating]: containers with unready status: [f12ce5ce3aae045378c1-n0-0]|
│   │   ├── Metadata
│   │   │   ├── Generated Name : f12ce5ce3aae045378c1-n0-0
│   │   │   ├── Plugin Identifier : container
│   │   │   ├── External Resources
│   │   │   ├── Resource Pool Info
│   │   ├── Logs :
│   │       └── Name :Cloudwatch Logs (User)
│   │       └── URI :https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#logsV2:log-groups/log-group/$252Faws$252Fcontainerinsights$252Fopta-oc-canary$252Fapplication$3FlogStreamNameFilter$3Dvar.log.containers.f12ce5ce3aae045378c1-n0-0_flytesnacks-development_f12ce5ce3aae045378c1-n0-0
│   ├── Outputs :
│       └── o0: s3://union-oc-canary-playground/7y/f12ce5ce3aae045378c1-n0-0/2a1d85ef4a87410f5a04ce889e876776
└── n1 - SUCCEEDED - 2023-02-21 19:20:41.420976535 +0000 UTC - 2023-02-21 19:20:57.090747824 +0000 UTC
│   ├── Attempt :0
│   │   ├── Task - SUCCEEDED - 2023-02-21 19:20:41.720309792 +0000 UTC - 2023-02-21 19:20:56.914747315 +0000 UTC
│   │   ├── Task Type - python-task
│   │   ├── Reason - [ContainersNotReady|ContainerCreating]: containers with unready status: [f12ce5ce3aae045378c1-n1-0]|
│   │   ├── Metadata
│   │   │   ├── Generated Name : f12ce5ce3aae045378c1-n1-0
│   │   │   ├── Plugin Identifier : container
│   │   │   ├── External Resources
│   │   │   ├── Resource Pool Info
│   │   ├── Logs :
│   │       └── Name :Cloudwatch Logs (User)
│   │       └── URI :https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#logsV2:log-groups/log-group/$252Faws$252Fcontainerinsights$252Fopta-oc-canary$252Fapplication$3FlogStreamNameFilter$3Dvar.log.containers.f12ce5ce3aae045378c1-n1-0_flytesnacks-development_f12ce5ce3aae045378c1-n1-0
│   ├── Outputs :
│       └── o0: s3://union-oc-canary-playground/g9/f12ce5ce3aae045378c1-n1-0/e340ecf4db7d64e3a539665cb7648047
└── n2 - SUCCEEDED - 2023-02-21 19:20:57.318835153 +0000 UTC - 2023-02-21 19:21:11.021544907 +0000 UTC
│   ├── Attempt :0
│   │   ├── Task - SUCCEEDED - 2023-02-21 19:20:57.56183156 +0000 UTC - 2023-02-21 19:21:10.828786539 +0000 UTC
│   │   ├── Task Type - python-task
│   │   ├── Reason - [ContainersNotReady|ContainerCreating]: containers with unready status: [f12ce5ce3aae045378c1-n2-0]|
│   │   ├── Metadata
│   │   │   ├── Generated Name : f12ce5ce3aae045378c1-n2-0
│   │   │   ├── Plugin Identifier : container
│   │   │   ├── External Resources
│   │   │   ├── Resource Pool Info
│   │   ├── Logs :
│   │       └── Name :Cloudwatch Logs (User)
│   │       └── URI :https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#logsV2:log-groups/log-group/$252Faws$252Fcontainerinsights$252Fopta-oc-canary$252Fapplication$3FlogStreamNameFilter$3Dvar.log.containers.f12ce5ce3aae045378c1-n2-0_flytesnacks-development_f12ce5ce3aae045378c1-n2-0
│   ├── Outputs :
│       └── o0: s3://union-oc-canary-playground/o4/f12ce5ce3aae045378c1-n2-0/0d1195b0dbded5310076263af1f96315
└── end-node - SUCCEEDED - 2023-02-21 19:21:11.401510279 +0000 UTC - 2023-02-21 19:21:11.541818271 +0000 UTC

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

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

fixes flyteorg/flyte#2757

Follow-up issue

@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Merging #369 (19abc26) into master (f3724b4) will increase coverage by 2.67%.
The diff coverage is 100.00%.

❗ Current head 19abc26 differs from pull request most recent head 648cf69. Consider uploading reports for the commit 648cf69 to get more accurate results

@@            Coverage Diff             @@
##           master     #369      +/-   ##
==========================================
+ Coverage   73.71%   76.38%   +2.67%     
==========================================
  Files          18       18              
  Lines        1377     1207     -170     
==========================================
- Hits         1015      922      -93     
+ Misses        311      234      -77     
  Partials       51       51              
Flag Coverage Δ
unittests ?

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

Impacted Files Coverage Δ
clients/go/coreutils/extract_literal.go 87.27% <100.00%> (+3.63%) ⬆️
clients/go/coreutils/literals.go 93.64% <100.00%> (+1.83%) ⬆️
clients/go/admin/pkce/auth_flow_orchestrator.go 63.04% <0.00%> (-1.96%) ⬇️
clients/go/admin/pkce/handle_app_call_back.go 93.93% <0.00%> (-0.94%) ⬇️
clients/go/admin/client.go 86.91% <0.00%> (-0.31%) ⬇️
clients/go/admin/config.go 50.00% <0.00%> (ø)
clients/go/admin/cert_loader.go 100.00% <0.00%> (ø)
clients/go/admin/atomic_credentials.go 100.00% <0.00%> (ø)
clients/go/admin/pkce/oauth2_client.go 61.11% <0.00%> (+0.24%) ⬆️
clients/go/admin/token_source_provider.go 37.16% <0.00%> (+1.20%) ⬆️
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@EngHabu EngHabu merged commit e69fd54 into master Feb 22, 2023
@EngHabu EngHabu deleted the structured-dataset branch February 22, 2023 03:16
eapolinario pushed a commit that referenced this pull request Jun 27, 2023
eapolinario added a commit that referenced this pull request Jun 28, 2023
* Adding support for structured dataset (#369)

Signed-off-by: pmahindrakar-oss <[email protected]>

* added dynamic_job_spec_uri to dynamic workflow metadata and node execution closure (#360)

Signed-off-by: Daniel Rammer <[email protected]>

* Use TokenCache in ClientCredentialsTokenSourceProvider (#377)

* Init customTokenSource.refreshTime (#381)

Signed-off-by: Andrew Dye <[email protected]>

* added DataLoadingConfig to K8sPod message (#368)

Signed-off-by: Daniel Rammer <[email protected]>

* Add Reasons field to TaskExecutionClosure to track time-series of reasons (#382)

* added a time-series of reasons to the TaskExecution closure

Signed-off-by: Daniel Rammer <[email protected]>

* added docs

Signed-off-by: Daniel Rammer <[email protected]>

* actually finishing docs too

Signed-off-by: Daniel Rammer <[email protected]>

---------

Signed-off-by: Daniel Rammer <[email protected]>

* Create service for runtime metrics (#367)

* added span messages

Signed-off-by: Daniel Rammer <[email protected]>

* added endpoints to service

Signed-off-by: Daniel Rammer <[email protected]>

* generated mocks

Signed-off-by: Daniel Rammer <[email protected]>

* removed get task execution metrics rpc

Signed-off-by: Daniel Rammer <[email protected]>

* added EXECUTION_IDLE category

Signed-off-by: Daniel Rammer <[email protected]>

* updated PLUGIN_EXECUTION to PLUGIN_RUNTIME

Signed-off-by: Daniel Rammer <[email protected]>

* removed recorded_at on workflow and node level events

Signed-off-by: Daniel Rammer <[email protected]>

* added docs for task event reported_at field

Signed-off-by: Daniel Rammer <[email protected]>

* removed GetNodeExecutionMetrics endpoint - will implement later if necessary

Signed-off-by: Daniel Rammer <[email protected]>

* updated docs

Signed-off-by: Daniel Rammer <[email protected]>

* added reported_at for node execution events

Signed-off-by: Daniel Rammer <[email protected]>

* fixed typo

Signed-off-by: Daniel Rammer <[email protected]>

* fixed typos and removed dead code

Signed-off-by: Daniel Rammer <[email protected]>

* updated categories

Signed-off-by: Daniel Rammer <[email protected]>

* added workflow setup and teardown categories

Signed-off-by: Daniel Rammer <[email protected]>

* simplified span message and moved to flyteidl.core

Signed-off-by: Daniel Rammer <[email protected]>

---------

Signed-off-by: Daniel Rammer <[email protected]>

* Remove misleading token refresh logic from client credentials token source provider (#383)

* Out of core plugin (#378)

* Add backend plugin system service

Signed-off-by: Kevin Su <[email protected]>

* Add backend plugin system service

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* update state

Signed-off-by: Kevin Su <[email protected]>

* update state

Signed-off-by: Kevin Su <[email protected]>

* dics

Signed-off-by: Kevin Su <[email protected]>

* Remove output prefix from get request

Signed-off-by: Kevin Su <[email protected]>

* update

Signed-off-by: Kevin Su <[email protected]>

* remove prev state

Signed-off-by: Kevin Su <[email protected]>

* update proto

Signed-off-by: Kevin Su <[email protected]>

* remove error message

Signed-off-by: Kevin Su <[email protected]>

* update comment

Signed-off-by: Kevin Su <[email protected]>

* make generate

Signed-off-by: Kevin Su <[email protected]>

* Rename the service

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>

* Feat: Add `ElasticConfig` message type for torch elastic training (#394)

* Add elastic config args to pytorch proto

Signed-off-by: Fabio Graetz <[email protected]>

* Add elastic config message type for torchrun training

Signed-off-by: Fabio Graetz <[email protected]>

---------

Signed-off-by: Fabio Graetz <[email protected]>
Co-authored-by: Fabio Grätz <[email protected]>
Co-authored-by: Ketan Umare <[email protected]>

* Retract 1.4.x (#397)

Signed-off-by: eduardo apolinario <[email protected]>
Co-authored-by: eduardo apolinario <[email protected]>

* Data addresses #minor (#391)

Signed-off-by: Yee Hing Tong <[email protected]>

* Refactor kf-operator plugins configs and support setting different specs for different replica groups (#386)

* refactor kubeflow operators proto

Signed-off-by: Yubo Wang <[email protected]>

* add back the original proto for backward compatible

Signed-off-by: Yubo Wang <[email protected]>

* clean up comments

Signed-off-by: Yubo Wang <[email protected]>

* add kubeflow.rs

Signed-off-by: Yubo Wang <[email protected]>

* add elastic config

Signed-off-by: Yubo Wang <[email protected]>

* add command to MPI

Signed-off-by: Yubo Wang <[email protected]>

* add slots and command to mpi spec

Signed-off-by: Yubo Wang <[email protected]>

---------

Signed-off-by: Yubo Wang <[email protected]>
Co-authored-by: Yubo Wang <[email protected]>

* add user_identifier (#388)

Signed-off-by: byhsu <[email protected]>
Signed-off-by: eduardo apolinario <[email protected]>
Co-authored-by: byhsu <[email protected]>
Co-authored-by: eduardo apolinario <[email protected]>

* Add envs to execution spec (#400)

Signed-off-by: Kevin Su <[email protected]>

* Support union and none type in flyteidl (#401)

* add support for Union Scalar

Signed-off-by: Yubo Wang <[email protected]>

* support union type and literals

Signed-off-by: Yubo Wang <[email protected]>

* change union type extraction

Signed-off-by: Yubo Wang <[email protected]>

---------

Signed-off-by: Yubo Wang <[email protected]>
Co-authored-by: Yubo Wang <[email protected]>
Co-authored-by: Kevin Su <[email protected]>

* Rename user_identity to execution_identity (#402)

Signed-off-by: byhsu <[email protected]>
Co-authored-by: byhsu <[email protected]>

* Single literal in GetDataResponse (#404)

Signed-off-by: Yee Hing Tong <[email protected]>

* Add namespace to execution system metadata (#406)

Signed-off-by: Katrina Rogan <[email protected]>

* Add oauth2 http proxy client (#405)

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

* Rename externalPluginService to AgentService (#410)

* Rename externalPluginService to AgentService

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>

* Add external_plugin_service proto back to the idl (#413)

* Add external-plugin-service proto back to the idl

Signed-off-by: Kevin Su <[email protected]>

* update idl

Signed-off-by: Kevin Su <[email protected]>

* update idll

Signed-off-by: Kevin Su <[email protected]>

* update idll

Signed-off-by: Kevin Su <[email protected]>

* AsyncAgentService

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>

* Rerun make generate

Signed-off-by: eduardo apolinario <[email protected]>

---------

Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Andrew Dye <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Fabio Graetz <[email protected]>
Signed-off-by: eduardo apolinario <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yubo Wang <[email protected]>
Signed-off-by: byhsu <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Co-authored-by: pmahindrakar-oss <[email protected]>
Co-authored-by: Dan Rammer <[email protected]>
Co-authored-by: Andrew Dye <[email protected]>
Co-authored-by: Kevin Su <[email protected]>
Co-authored-by: Fabio M. Graetz, Ph.D <[email protected]>
Co-authored-by: Fabio Grätz <[email protected]>
Co-authored-by: Ketan Umare <[email protected]>
Co-authored-by: eduardo apolinario <[email protected]>
Co-authored-by: Yee Hing Tong <[email protected]>
Co-authored-by: Yubo Wang <[email protected]>
Co-authored-by: Yubo Wang <[email protected]>
Co-authored-by: ByronHsu <[email protected]>
Co-authored-by: byhsu <[email protected]>
Co-authored-by: Katrina Rogan <[email protected]>
eapolinario pushed a commit that referenced this pull request Sep 8, 2023
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.

[BUG] --details flag in flytectl command is erroring out
3 participants