-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch stanc.exe to use Cmdliner for cli #1478
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f2afb69
Switch stanc.exe to use Cmdliner for cli
WardBrian 34ec26f
Update README, developer information
WardBrian 73b101a
Update Jenkins config
WardBrian 1ecf293
Improve test coverage of cli flags
WardBrian eebc496
Fix crash when --debug-data-file is unparsable
WardBrian e9d394f
Robustify --debug-data-file, test
WardBrian 10439aa
Also trap on unwritable output
WardBrian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,8 @@ pipeline { | |
description: "Pass STANCFLAGS to make/local, default none") | ||
booleanParam(name:"run_slow_perf_tests", defaultValue: false, description:"Run additional 'slow' performance tests") | ||
string(defaultValue: '', name: 'build_multiarch_docker_tag', description: "Docker tag for the multiarch image") | ||
booleanParam(name:"build_multiarch", defaultValue: false, description:"Build multiarch images even when not on 'master'") | ||
|
||
} | ||
options { | ||
parallelsAlwaysFailFast() | ||
|
@@ -113,7 +115,7 @@ pipeline { | |
GIT_AUTHOR_EMAIL = '[email protected]' | ||
GIT_COMMITTER_NAME = 'Stan Jenkins' | ||
GIT_COMMITTER_EMAIL = '[email protected]' | ||
MULTIARCH_DOCKER_TAG = 'multiarch-ocaml-4.14-v2' | ||
MULTIARCH_DOCKER_TAG = 'multiarch-ocaml-4.14-v2-and-cmdliner' | ||
} | ||
stages { | ||
stage('Verify changes') { | ||
|
@@ -749,7 +751,7 @@ pipeline { | |
beforeAgent true | ||
allOf { | ||
expression { !skipRebuildingBinaries } | ||
anyOf { buildingTag(); branch 'master' } | ||
anyOf { buildingTag(); branch 'master'; expression { params.build_multiarch } } | ||
} | ||
} | ||
agent { | ||
|
@@ -783,7 +785,7 @@ pipeline { | |
beforeAgent true | ||
allOf { | ||
expression { !skipRebuildingBinaries } | ||
anyOf { buildingTag(); branch 'master' } | ||
anyOf { buildingTag(); branch 'master'; expression { params.build_multiarch } } | ||
} | ||
} | ||
agent { | ||
|
@@ -814,7 +816,7 @@ pipeline { | |
beforeAgent true | ||
allOf { | ||
expression { !skipRebuildingBinaries } | ||
anyOf { buildingTag(); branch 'master' } | ||
anyOf { buildingTag(); branch 'master'; expression { params.build_multiarch } } | ||
} | ||
} | ||
agent { | ||
|
@@ -845,7 +847,7 @@ pipeline { | |
beforeAgent true | ||
allOf { | ||
expression { !skipRebuildingBinaries } | ||
anyOf { buildingTag(); branch 'master' } | ||
anyOf { buildingTag(); branch 'master'; expression { params.build_multiarch } } | ||
} | ||
} | ||
agent { | ||
|
@@ -876,7 +878,7 @@ pipeline { | |
beforeAgent true | ||
allOf { | ||
expression { !skipRebuildingBinaries } | ||
anyOf { buildingTag(); branch 'master' } | ||
anyOf { buildingTag(); branch 'master'; expression { params.build_multiarch } } | ||
} | ||
} | ||
agent { | ||
|
@@ -907,7 +909,7 @@ pipeline { | |
beforeAgent true | ||
allOf { | ||
expression { !skipRebuildingBinaries } | ||
anyOf { buildingTag(); branch 'master' } | ||
anyOf { buildingTag(); branch 'master'; expression { params.build_multiarch } } | ||
} | ||
} | ||
agent { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ | |
(= 0.9.0)) | ||
(yojson | ||
(= 2.1.0)) | ||
(cmdliner | ||
(= 1.3.0)) | ||
(ocamlformat | ||
(and | ||
:with-test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know anything about Jenkins, but what's the reason for the tag change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to re-build the multiarch images to add cmdliner. Because they don't install the developer-only dependencies like
ocamlformat
, I guess they didn't have it already.This was a headache, and it's definitely non-obvious how the multiarch build works, see #1480