Skip to content

Enhance run function with exit code output and update dependencies#10

Open
mirage-ctest wants to merge 8 commits into
parasoft:masterfrom
mirage-ctest:master
Open

Enhance run function with exit code output and update dependencies#10
mirage-ctest wants to merge 8 commits into
parasoft:masterfrom
mirage-ctest:master

Conversation

@mirage-ctest
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/main.ts
const hasViolations = (outcome.exitCode & 2) === 2;

core.setOutput("exitCode", outcome.exitCode.toString());
core.setOutput("hasViolations", hasViolations.toString());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe use explicit strings "true", "false"? Now we're relying on javascript boolean to string conversion.

Suggested change
core.setOutput("hasViolations", hasViolations.toString());
core.setOutput("hasViolations", hasViolations ? "true" : "false");

Comment thread action.yml
exitCode:
description: 'Exit code from the C/C++test analysis run.'
hasViolations:
description: 'Whether static analysis violations were found.'
Copy link
Copy Markdown

@pkrukp pkrukp May 20, 2026

Choose a reason for hiding this comment

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

Could we explicitly what are the possible values? (i.e. "true", "false")
So that user won't consider things like "0", "1".

Suggested change
description: 'Whether static analysis violations were found.'
description: '"true" if static analysis violations were found, "false" otherwise.'

Comment thread package.json.md
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I very much like that this explanation was added.

I'm a little bit hesitant about the file name. But I'm not sure what'd be a better alternative.

Comment thread package.json.md
- npm cannot satisfy both constraints simultaneously
- Using overrides avoids this resolution conflict

### Result
Copy link
Copy Markdown

@pkrukp pkrukp May 20, 2026

Choose a reason for hiding this comment

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

I'm not sure about the purpose of this "Result" section?

Additionally, the statistics here are valid only at the moment of writing. Maybe this is something that could be part of commit message?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants