Skip to content

Feature: Make non-zero exit code available when compiler compile fails#7

Merged
joeltimothyoh merged 21 commits intostartersclan:masterfrom
leojonathanoh:fix-exit-with-non-zero-exit-code-when-compile-fails
Sep 21, 2020
Merged

Feature: Make non-zero exit code available when compiler compile fails#7
joeltimothyoh merged 21 commits intostartersclan:masterfrom
leojonathanoh:fix-exit-with-non-zero-exit-code-when-compile-fails

Conversation

@leojonathanoh
Copy link
Copy Markdown
Member

Fixes #6

@leojonathanoh leojonathanoh self-assigned this Apr 27, 2020
@leojonathanoh
Copy link
Copy Markdown
Member Author

leojonathanoh commented Apr 27, 2020

For windows, seems like compile.exe is not producing a non-zero exit code: See job and job

For *nix, Need to find out what went wrong here: job

@leojonathanoh
Copy link
Copy Markdown
Member Author

leojonathanoh commented May 4, 2020

There's some failed checks.

As discussed in #2 (comment), if we decide to no longer support wrappers compile.exe and compile.sh which do not provide proper exit codes, then in this PR it will be much easier to fix existing failed checks.

@joeltimothyoh
Copy link
Copy Markdown
Member

There's some failed checks.

As discussed in #2 (comment), if we decide to no longer support wrappers compile.exe and compile.sh which do not provide proper exit codes, then in this PR it will be much easier to fix existing failed checks.

I'd actually be open adding support for exit codes for when compiler wrapper scripts are invoked, and more so than supporting #2. Should we decide to continue support for invoking compiler wrappers, I'll see how I can contribute to make this feature robust if possible.

@joeltimothyoh joeltimothyoh force-pushed the fix-exit-with-non-zero-exit-code-when-compile-fails branch from 2143301 to e6fb4e0 Compare August 3, 2020 12:59
@joeltimothyoh joeltimothyoh force-pushed the fix-exit-with-non-zero-exit-code-when-compile-fails branch from e6fb4e0 to e1fe437 Compare August 3, 2020 13:49
@joeltimothyoh joeltimothyoh force-pushed the fix-exit-with-non-zero-exit-code-when-compile-fails branch from 1c50592 to 3a06f36 Compare August 3, 2020 15:29
@joeltimothyoh joeltimothyoh self-requested a review August 3, 2020 17:25
Copy link
Copy Markdown
Member

@joeltimothyoh joeltimothyoh left a comment

Choose a reason for hiding this comment

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

lgtm. Please review @leojonathanoh

@joeltimothyoh
Copy link
Copy Markdown
Member

Pinging @leojonathanoh

Comment thread src/Compile-SourceScript/Public/Compile-SourceScript.ps1 Outdated
Comment thread src/Compile-SourceScript/Public/Compile-SourceScript.ps1
Comment thread test/scripts/integration/Run-IntegrationTests.ps1
Comment thread test/scripts/integration/Run-IntegrationTests.ps1
Comment thread src/Compile-SourceScript/Public/Compile-SourceScript.ps1
@leojonathanoh leojonathanoh force-pushed the fix-exit-with-non-zero-exit-code-when-compile-fails branch from 8fcff17 to b77e9cf Compare August 10, 2020 23:24
… errors in: compilation via compiler binary and compilation via compiler wrapper
@leojonathanoh leojonathanoh force-pushed the fix-exit-with-non-zero-exit-code-when-compile-fails branch from 35d5c97 to 5f4dceb Compare August 11, 2020 00:16
@leojonathanoh leojonathanoh force-pushed the fix-exit-with-non-zero-exit-code-when-compile-fails branch from 086fd6e to d9751aa Compare August 11, 2020 01:16
Comment thread src/Compile-SourceScript/Public/Compile-SourceScript.ps1 Outdated
Comment thread src/Compile-SourceScript/Public/Compile-SourceScript.ps1 Outdated
Copy link
Copy Markdown
Member

@joeltimothyoh joeltimothyoh left a comment

Choose a reason for hiding this comment

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

lgtm

@joeltimothyoh
Copy link
Copy Markdown
Member

Merging.

@joeltimothyoh
Copy link
Copy Markdown
Member

Should we do a merge commit or squash merge? @leojonathanoh

@leojonathanoh
Copy link
Copy Markdown
Member Author

either will do

@joeltimothyoh
Copy link
Copy Markdown
Member

In terms of OSS workflow and git history? @leojonathanoh

@joeltimothyoh
Copy link
Copy Markdown
Member

Pinging @leojonathanoh

@leojonathanoh
Copy link
Copy Markdown
Member Author

i prefer merge commits since it’s more traceable

@joeltimothyoh
Copy link
Copy Markdown
Member

Ok but we’ve already begun using squash commits in some other projects. Also release notes would be less readable or understandable. @leojonathanoh

@joeltimothyoh joeltimothyoh changed the title Make non-zero exit code available when compiler compile fails Feature: Make non-zero exit code available when compiler compile fails Sep 21, 2020
@joeltimothyoh
Copy link
Copy Markdown
Member

Merging via a merge commit as discussed with @leojonathanoh.

@joeltimothyoh joeltimothyoh merged commit fe8a900 into startersclan:master Sep 21, 2020
@joeltimothyoh joeltimothyoh added this to the v2.1.0 milestone Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Module does not provide an exit code when compiler compile fails

2 participants