flyte
flyte copied to clipboard
[Core feature] `pyflyte info` show `Version`
Motivation: Why do you think this is important?
when typing pyflyte info, we want to know the backend version of flyteadmin, this is super helpful.
(dev) future@outlier ~ % pyflyte info
11:33:17.941096 INFO file.py:252 - Using flytectl/YAML config /Users/future-outlier/.flyte/config-sandbox.yaml
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1731295999.145644 10087933 config.cc:230] gRPC experiments enabled: call_status_override_on_cancellation, event_engine_dns, event_engine_listener, http2_stats_fix, monitoring_experiment, pick_first_new, trace_record_callops, work_serializer_clears_time_cache
╭─────────────────────────────────────────────────────────── Flytekit CLI Info ───────────────────────────────────────────────────────────╮
│ │
│ │
│ This CLI is meant to be used within a virtual environment that has Flytekit installed. Ideally it is used to iterate on your Flyte │
│ workflows and tasks. │
│ │
│ Flytekit Version: 1.999.0dev0 │
│ Flyte Backend Endpoint: localhost:30080 │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Goal: What should the final outcome look like, ideally?
We should add a line Flyte Backend Version: vXXX under Flytekit Version.
You can use API from this PR.
https://github.com/flyteorg/flytekit/pull/2874
Describe alternatives you've considered
This is doable and we should do this.
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
- [X] Yes
Have you read the Code of Conduct?
- [X] Yes
#take
#take