Skip to content

fix: exitcode fix - #328

Merged
BartoszBlizniak merged 1 commit into
masterfrom
fix/frozen-exit-codes-v1.20.1
Jul 30, 2026
Merged

fix: exitcode fix#328
BartoszBlizniak merged 1 commit into
masterfrom
fix/frozen-exit-codes-v1.20.1

Conversation

@BartoszBlizniak

Copy link
Copy Markdown
Member

Description

This was added and later accidentally removed in merging commits. Re-adding.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Other (please describe)

Additional Notes

@BartoszBlizniak
BartoszBlizniak marked this pull request as ready for review July 30, 2026 11:02
@BartoszBlizniak
BartoszBlizniak requested a review from a team as a code ownerJuly 30, 2026 11:02
CopilotAI review requested due to automatic review settings July 30, 2026 11:02

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores correct exit-code propagation for the PyInstaller-frozen Cloudsmith CLI entry point, and tightens the packaging smoketest to prevent regressions. It also bumps the patch version and documents the fix in the changelog.

Changes:

  • Ensure the PyInstaller entry point exits with the Click/AliasGroup return code via sys.exit(main()).
  • Update the offline smoketest to assert cloudsmith whoami against an unreachable API exits nonzero (and capture the actual return code).
  • Bump version to 1.20.1 and add a changelog entry describing the regression and fix.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packaging/smoketest.shCaptures and asserts whoami’s nonzero exit code in offline/unreachable-API mode.
packaging/pyinstaller/entry.pyWraps CLI main() in sys.exit(...) to propagate the returned exit status in frozen builds.
cloudsmith_cli/data/VERSIONPatch version bump to 1.20.1.
CHANGELOG.mdDocuments the exit-code propagation fix for standalone binaries in 1.20.1.
.bumpversion.cfgUpdates current_version to 1.20.1 for release tooling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BartoszBlizniak
BartoszBlizniak merged commit 6831542 into masterJul 30, 2026
27 checks passed
@BartoszBlizniak
BartoszBlizniak deleted the fix/frozen-exit-codes-v1.20.1 branch July 30, 2026 11:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@BartoszBlizniak@cloudsmith-iduffy