-
Notifications
You must be signed in to change notification settings - Fork 583
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
[Monorepo] Bring flytectl #5301
Conversation
Signed-off-by: Flyte-Bot <[email protected]> Co-authored-by: evalsocket <[email protected]>
* fix sandbox start if sandbox exist Signed-off-by: Yuvraj <[email protected]>
* Added node execution data to show inputs and outputs Signed-off-by: Prafulla Mahindrakar <[email protected]> * Added closure class Signed-off-by: Prafulla Mahindrakar <[email protected]> * Removed the old wrapper classes Signed-off-by: Prafulla Mahindrakar <[email protected]> * Uncommented the task exec closure Signed-off-by: Prafulla Mahindrakar <[email protected]> * Fixed unit tests for the closure classes Signed-off-by: Prafulla Mahindrakar <[email protected]> * go mod tidy Signed-off-by: Prafulla Mahindrakar <[email protected]> * Adding .gitattribute file to contain rule for .rst files Signed-off-by: Prafulla Mahindrakar <[email protected]> * Adding gen path to .gitattr Signed-off-by: Prafulla Mahindrakar <[email protected]> * Added comments to new structs Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Sean Lin <[email protected]>
* fix gcp parameters... s3 -> google Signed-off-by: Bruce Arctor <[email protected]> * change s3 to google for gcs docs Signed-off-by: Bruce Arctor <[email protected]>
Signed-off-by: Flyte-Bot <[email protected]> Co-authored-by: kumare3 <[email protected]>
* Added setup flytedir before config init Signed-off-by: Yuvraj <[email protected]>
Signed-off-by: Yuvraj <[email protected]>
* code-of-conduct Signed-off-by: Samhita Alla <[email protected]> * boilerplate Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: cosmicBboy <[email protected]>
…un individually (#155) Signed-off-by: Sean Lin <[email protected]>
Signed-off-by: Sean Lin <[email protected]>
Signed-off-by: Sean Lin <[email protected]>
* Added k8s check in sandbox * Added upgrade command Signed-off-by: Yuvraj <[email protected]>
Signed-off-by: Flyte-Bot <[email protected]> Co-authored-by: pmahindrakar-oss <[email protected]>
* Added version compare check and bug fix in sandbox start Signed-off-by: Yuvraj <[email protected]>
Signed-off-by: Arnaud Alies <[email protected]>
Signed-off-by: Flyte-Bot <[email protected]> Co-authored-by: evalsocket <[email protected]>
Signed-off-by: Yuvraj <[email protected]>
Signed-off-by: Ketan Umare <[email protected]>
Update current video to a shorter version specifically edited to be embedded in the docs.
…#168) `flytectl get task/workflow/launchplan -o table` panics if resource has no expected output. We encountered `FormatVariableDescriptions at pkg/printer/printer.go:173` to panic when using the get commands on a resource without expected output. This happened with both explicit table output as well as default. Replicated on lastest master, workflow demo-1.no-output has no expected output: ``` $ go run ./main.go get launchplans -p demo-1 -d production --latest demo-1.no-output panic: assignment to entry in nil map goroutine 1 [running]: github.com/flyteorg/flytectl/pkg/printer.FormatVariableDescriptions(0x0) /workspace/flyteorg/flytectl/pkg/printer/printer.go:202 +0x307 github.com/flyteorg/flytectl/cmd/get.LaunchplanToTableProtoMessages({0xc000a30938, 0x1, 0x7ffeefbff977}) /workspace/flyteorg/flytectl/cmd/get/launch_plan.go:136 +0xee github.com/flyteorg/flytectl/cmd/get.getLaunchPlanFunc({0x2dfbf98, 0xc0000580b8}, {0xc0002fb8c0, 0x1, 0x11519b4}, {{0x2e55850, 0xc000a30120}, {0x2e472c0, 0xc0009a3110}, {0x2ddff60, ...}, ...}) /workspace/flyteorg/flytectl/cmd/get/launch_plan.go:158 +0x307 github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0xc000481680, {0xc0002fb8c0, 0x1, 0x6}) /workspace/flyteorg/flytectl/cmd/core/cmd.go:69 +0x47d github.com/spf13/cobra.(*Command).execute(0xc000481680, {0xc0002fb860, 0x6, 0x6}) /workspace/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x60e github.com/spf13/cobra.(*Command).ExecuteC(0xc000480000) /workspace/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x3ad github.com/spf13/cobra.(*Command).Execute(...) /workspace/go/pkg/mod/github.com/spf13/[email protected]/command.go:897 github.com/flyteorg/flytectl/cmd.ExecuteCmd() /workspace/flyteorg/flytectl/cmd/root.go:135 +0x1e main.main() /workspace/flyteorg/flytectl/main.go:12 +0x1d exit status 2 ``` Simple fix: nil checks exists for container but not on the map itself prior to calling, and nil input causes the panic. Added nil check on map parameter prior to calling in all places found. Signed-off-by: Viktor Gerdin <[email protected]>
Signed-off-by: Yuvraj <[email protected]>
* Added launchplan update command and moved namedentity Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
* Rename --archive to --deactivate in update launchplan Signed-off-by: asoundarya96 <[email protected]> * Rename --archive to --deactivate in update launchplan Signed-off-by: asoundarya96 <[email protected]> * Keep --archive as deprecated flag Signed-off-by: asoundarya96 <[email protected]> * make generate Signed-off-by: Eduardo Apolinario <[email protected]> --------- Signed-off-by: asoundarya96 <[email protected]> Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Niels Bantilan <[email protected]>
Signed-off-by: Niels Bantilan <[email protected]>
Signed-off-by: Niels Bantilan <[email protected]>
Signed-off-by: Niels Bantilan <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
* project-archive-with-yaml Signed-off-by: Peeter Piegaze <[email protected]> * fix syntax Signed-off-by: Peeter Piegaze <[email protected]> * fix list Signed-off-by: Peeter Piegaze <[email protected]> * update generated Signed-off-by: Peeter Piegaze <[email protected]> --------- Signed-off-by: Peeter Piegaze <[email protected]>
Signed-off-by: Niels Bantilan <[email protected]>
…st (#450) Signed-off-by: Guy Rapaport <[email protected]>
Signed-off-by: Jeongwon Song <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: troychiu <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: cosmicBboy <[email protected]>
* feat: add pagination for get execution (draft) Signed-off-by: zychen5186 <[email protected]> fix: catches existing commands in os.Args Signed-off-by: zychen5186 <[email protected]> fix: restore neccessary codes Signed-off-by: zychen5186 <[email protected]> * feat: use -i to trigger bubbletea, add pagination for get execution Signed-off-by: zychen5186 <[email protected]> * change dot to arabic paging format Signed-off-by: zychen5186 <[email protected]> change dot to arabic paging format Signed-off-by: zychen5186 <[email protected]> change var names Signed-off-by: zychen5186 <[email protected]> fix: lint Signed-off-by: zychen5186 <[email protected]> * reuse JSONToTable Signed-off-by: zychen5186 <[email protected]> * reuse JSONToTable Signed-off-by: zychen5186 <[email protected]> change := to var Signed-off-by: zychen5186 <[email protected]> * keep original format when not using bubbletea Signed-off-by: zychen5186 <[email protected]> * improve readability and no functionality is changed Signed-off-by: zychen5186 <[email protected]> --------- Signed-off-by: zychen5186 <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-CERTIFI-3164749 - https://snyk.io/vuln/SNYK-PYTHON-CERTIFI-5805047 - https://snyk.io/vuln/SNYK-PYTHON-JINJA2-6150717 - https://snyk.io/vuln/SNYK-PYTHON-PYGMENTS-1086606 - https://snyk.io/vuln/SNYK-PYTHON-PYGMENTS-1088505 - https://snyk.io/vuln/SNYK-PYTHON-PYGMENTS-5750273 - https://snyk.io/vuln/SNYK-PYTHON-REQUESTS-5595532 - https://snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-3180412 - https://snyk.io/vuln/SNYK-PYTHON-SPHINX-570772 - https://snyk.io/vuln/SNYK-PYTHON-SPHINX-570773 - https://snyk.io/vuln/SNYK-PYTHON-SPHINX-5811865 - https://snyk.io/vuln/SNYK-PYTHON-SPHINX-5812109 Co-authored-by: snyk-bot <[email protected]>
…pare-monorepo--flytectl Signed-off-by: Eduardo Apolinario <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5301 +/- ##
==========================================
+ Coverage 59.68% 60.19% +0.50%
==========================================
Files 568 646 +78
Lines 41729 45654 +3925
==========================================
+ Hits 24906 27480 +2574
- Misses 14410 15582 +1172
- Partials 2413 2592 +179
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Eduardo Apolinario <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing, thank you!
) | ||
|
||
replace ( | ||
github.com/flyteorg/flyte/flyteidl => github.com/flyteorg/flyte/flyteidl v1.9.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be relative now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, module renaming is next.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, will drop in the next PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this can be handled in a follow-up, but do we still need all the package-level boilerplate with this move?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, these all will be removed in separate PRs.
Oh cool... will hold off on any work for flyteorg/flytectl#472 and reevaluate for vulns after the move is complete |
thank you, @ddl-ebrown! |
cc @zychen5186 |
Tracking issue
NA
Why are the changes needed?
Having flytectl in the monorepo helps in the development and rollout of changes that require cross-component changes (including flyteidl).
What changes were proposed in this pull request?
Similar to #4017, this PR only brings in
flytectl
at flyteorg/flytectl@67cae23. Subsequent PRs will hook up the CI checks and necessary changes to release flytectl on Flyte releases.How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link