Skip to content
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

temporal 0.12.0 #170352

Merged
merged 2 commits into from
Apr 29, 2024
Merged

temporal 0.12.0 #170352

merged 2 commits into from
Apr 29, 2024

Conversation

josh-berry
Copy link
Contributor

@josh-berry josh-berry commented Apr 29, 2024

Created with brew bump-formula-pr.

Additionally, updated the formula to include support for auto-completion in fish.

release notes
## CLI Refresh

Temporal CLI has had its internals rewritten to be more consistent and more maintainable. This includes many improvements, but also some known backwards incompatibilities from the previous 0.11.0 release.

:boom: WARNING: There are known compatibility breaks with this release, see the sections below :boom:

Known Improvements

  • The position of flags is no longer significant; flags can be placed anywhere in the command invocation
  • --output json now makes sure to only output JSON to stdout (instances of invalid JSON output have been fixed)
  • --output jsonl now exists which disables indention/newline and, in some commands, streams lines of JSON instead of producing a single array
  • --input-meta is now supported so different encodings can be specified (e.g. Protobuf JSON)
  • Log level customization added
  • env file path can be customized
  • Payload shorthand support added, meaning most JSON base64 payloads are decoded to just show their contents
  • Exit codes are now non-zero in proper failing situations
  • --api-key can now be used to set an Authorization header with Bearer prefixed token
  • --tls-cert and --tls-key data now accepted in addition to just files
  • server start-dev now uses common log framework so log level can be more easily customized
  • Logs now go to stderr instead of stdout
  • server start-dev has reduced output noise (with more reduction to come)
  • workflow describe now has a text form instead of always JSON
  • workflow execute now streams event table instead of waiting on completion
  • workflow execute properly shows non-zero exit code on failure
  • workflow execute follows continue-as-new by default

:boom: Known Incompatibilities

All Commands

  • Outputs in both JSON and plain text have been changed across most commands—notably, JSON keys are now camelCase
  • Duration flags need trailing unit suffix (i.e. e.g. --workflow-timeout 5 becomes --workflow-timeout 5s)
  • --output table and --output card removed and merged into --output text
  • Pager removed
  • TEMPORAL_CLI_SHOW_STACKS environment variable no longer supported
  • --tls-ca-path can no longer be a URL
  • --fields command removed, commands now decide which fields should be present or not

Specific Commands

  • env commands now expect --env, -k and -v flags rather than positional arguments (positional arguments will continue to work, but are now deprecated and a warning is emitted)
  • operator namespace commands now expect a -n flag to specify the namespace rather than a positional argument (the positional argument will continue to work, but is now deprecated and a warning is emitted)
  • operator namespace update no longer supports --verbose
  • schedule create changed --workflow-type to be --type
  • server start-dev with --db-filename no longer auto-creates directory path of 0777 dirs if not present
  • workflow and its subcommands no longer support --memo-file
  • workflow execute does not dump history by default when JSON is enabled
  • workflow execute when using --event-details (née --fields long) shows full JSON attributes instead of wrapped partial table
  • workflow execute no longer succeeds if workflow exists, but --allow-existing is present
  • workflow reset-batch removed in favor of workflow reset --query with reset options (some previous reset types may not be supported)
  • workflow show does not allow -f as an alias for --follow
  • workflow start no longer succeeds if workflow exists, but --allow-existing is present
  • workflow trace removed while being repaired (inadvertently broken in last release)

What's Changed

Full Changelog: temporalio/cli@v0.11.0...v0.12.0

@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Apr 29, 2024
Formula/t/temporal.rb Outdated Show resolved Hide resolved
Formula/t/temporal.rb Outdated Show resolved Hide resolved
@github-actions github-actions bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Apr 29, 2024
@chenrui333
Copy link
Member

also squash the commits into one, thanks! :)

@josh-berry
Copy link
Contributor Author

also squash the commits into one, thanks! :)

Will do once I confirm the ldflags fix works.

Bump to `temporal` 0.12.0, which now supports bash, fish and zsh for
auto-completion, and requires a small change for how the version number
is set in the final `temporal` binary.

Co-authored-by: Rui Chen <[email protected]>
@josh-berry josh-berry force-pushed the bump-temporal-0.12.0 branch from 6ea6ed9 to 7df0812 Compare April 29, 2024 17:06
@github-actions github-actions bot removed the autosquash Automatically squash pull request commits according to Homebrew style. label Apr 29, 2024
@josh-berry josh-berry requested a review from chenrui333 April 29, 2024 17:10
@chenrui333
Copy link
Member

Thanks @josh-berry!

Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Apr 29, 2024
@BrewTestBot BrewTestBot enabled auto-merge April 29, 2024 17:42
@josh-berry
Copy link
Contributor Author

Thanks @josh-berry!

Thank you @chenrui333 for the quick review and suggestions!

@BrewTestBot BrewTestBot added this pull request to the merge queue Apr 29, 2024
Merged via the queue into Homebrew:master with commit a5d9df4 Apr 29, 2024
14 checks passed
@josh-berry josh-berry deleted the bump-temporal-0.12.0 branch April 29, 2024 18:02
@github-actions github-actions bot added the outdated PR was locked due to age label May 30, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants