Skip to content

feat: add --output-format flag to emit GitHub Actions workflow annotations #332

Closed

Description

@A-d-i-t-y

Reason/Context

Problem

Currently, microcks test only outputs plain text results.
When running in GitHub Actions CI, there is no way to get
inline PR annotations showing which operations passed or failed.

Proposed Solution

Add an --output-format flag to the test command with two values:

  • --output-format=plain (default, current behavior)
  • --output-format=github-actions — emits GitHub Actions workflow
    commands so failures appear as inline PR annotations:

```
::error title=Test Failed::Operation GET /beers FAILED
::notice title=Test Passed::Operation POST /beers PASSED
```

Why This Matters

This directly improves the CI/CD experience and aligns with
the Microcks goal of bringing test results closer to the developer.

Description

Currently, microcks test only outputs plain text results. When running
in GitHub Actions CI, there is no way to get inline PR annotations showing
which operations passed or failed. Developers must open the Microcks web UI
to diagnose failures — this breaks the fast feedback loop in CI pipelines.

This change will help by bringing test results directly into the PR review
experience, so developers see failures as inline annotations without leaving
GitHub. The motivation aligns with the LFX mentorship goal of improving the
CI/CD developer experience for Microcks users.

Implementation ideas

Add an --output-format flag to the test command with two values:

  • --output-format=plain (default, current behavior unchanged)
  • --output-format=github-actions — emits GitHub Actions workflow commands:

::error title=Test Failed::Operation GET /beers FAILED
::notice title=Test Passed::Operation POST /beers PASSED

Changes needed:

  • cmd/test.go: add --output-format flag definition
  • pkg/: add result printer logic for github-actions format
  • documentation/cmd/test.md: document the new flag with example

Activity

  1. added a commit that references this issue on May 8, 2026
    879fa2a
  2. A-d-i-t-y commented on May 9, 2026

    @A-d-i-t-y
    Author

    Hi @Harsh4902 @lbroudoux @yada

    I'm Aditya, applying for the LFX Mentorship – IDE Integration and Local Dev Loop Enhancement project for Microcks.

    This PR adds --output-format=github-actions flag to the test command, which directly aligns with the mentorship goal of improving the CI/CD developer experience. When running in GitHub Actions, test failures are currently buried in plain text logs — this change surfaces per-operation pass/fail results as inline PR annotations using GitHub's native ::error and ::notice workflow commands, with no breaking changes to existing behavior.

    Would love to get your feedback on the approach. Happy to make any changes you suggest!

  3. added 2 commits that reference this issue on May 9, 2026
    be0f819
    872cdd6
  4. Caesarsage commented on Aug 16, 2026

    @Caesarsage
    Collaborator

    Shipped in #488 — the flag landed as --output (github-actions, alongside text/json/yaml) and emits workflow commands for inline annotations.

    I believe this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions