Skip to content

refactor(cli): remove the legacy exit shim and enforce it in CI - #491

Merged
Harsh4902 merged 4 commits into
microcks:masterfrom
Caesarsage:pr3/remove-legacy-shim
Aug 12, 2026
Merged

refactor(cli): remove the legacy exit shim and enforce it in CI#491
Harsh4902 merged 4 commits into
microcks:masterfrom
Caesarsage:pr3/remove-legacy-shim

Conversation

@Caesarsage

Copy link
Copy Markdown
Contributor

Part of the Microcks CLI v2 work (#255). Stacked on PR #490.

  • Deletes the now-unused CheckError/CheckConfigNil/Fatal + ErrorGeneric shim from pkg/errors; converts the standalone watcher/ binary to handle errors inline.
  • Adds go test ./... to build-verify.yml (the pipeline previously only built) and a guard step that fails if os.Exit/log.Fatal/panic reappears outside cmd/exit.go.
  • Documents the rule in CONTRIBUTING.md.

Scope

Pure cleanup: nothing referenced the shim after PR #490.

The only process exits left in the tree are the two main entrypoints and cmd.Handle.

@Caesarsage

Copy link
Copy Markdown
Contributor Author

HOLD til #490 and #489 are review and merged

Comment thread pkg/connectors/microcks_client.go Outdated
Comment thread pkg/errors/error.go
Signed-off-by: caesarsage <destinyerhabor6@gmail.com>
Signed-off-by: caesarsage <destinyerhabor6@gmail.com>
Signed-off-by: caesarsage <destinyerhabor6@gmail.com>
Signed-off-by: caesarsage <destinyerhabor6@gmail.com>
@Caesarsage

Caesarsage commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Hello @Vaishnav88sk and @Harsh4902

I have attended to all the issues here and from the other PR (merged) here instead of raising a separate PR. And i also added a CI guard to check for missing policies, like missing copyright header, ignored-error and stray-exit

@Vaishnav88sk Vaishnav88sk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Harsh4902 Please review the workflows/ files.

Comment thread .github/workflows/policy-guards.yml
@Vaishnav88sk

Copy link
Copy Markdown

LGTM 👍🏻

@Caesarsage

Copy link
Copy Markdown
Contributor Author

@Harishrs2006 kindly take a look and approve

@Caesarsage

Copy link
Copy Markdown
Contributor Author

@Harsh4902

@Harsh4902 Harsh4902 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

GTG. Thanks @Caesarsage

@Harsh4902
Harsh4902 dismissed Vaishnav88sk’s stale review August 12, 2026 09:41

Dismissing this as @Vaishvan88sk's has already commented LGTM

@Harsh4902
Harsh4902 merged commit 310601f into microcks:master Aug 12, 2026
6 checks passed
@Harsh4902 Harsh4902 added component/cli lfx-mentorship PR/Issue which is part of LFX mentorship labels Aug 12, 2026
@Harsh4902 Harsh4902 added this to the Next milestone Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/cli lfx-mentorship PR/Issue which is part of LFX mentorship

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants