-
Notifications
You must be signed in to change notification settings - Fork 154
Speed up CodeBuild CI #1426
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
Speed up CodeBuild CI #1426
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,6 @@ function openssh_build() { | |
|
|
||
| function checkout_openssh_branch() { | ||
| pushd "${OPENSSH_WORKSPACE_FOLDER}" | ||
| make clean | ||
| git clean -f -d | ||
| git checkout --track origin/"$1" | ||
| popd | ||
|
|
@@ -80,24 +79,25 @@ function openssh_run_tests() { | |
| mkdir -p "${AWS_LC_BUILD_FOLDER}" "${AWS_LC_INSTALL_FOLDER}" "${OPENSSH_INSTALL_FOLDER}" | ||
|
|
||
| # Get latest OpenSSH version. | ||
| git clone https://github.com/openssh/openssh-portable.git | ||
| git clone https://github.com/openssh/openssh-portable.git "${OPENSSH_WORKSPACE_FOLDER}" | ||
| ls | ||
|
|
||
| # Buld AWS-LC as a shared library | ||
| # Build AWS-LC as a shared library | ||
| aws_lc_build "$SRC_ROOT" "$AWS_LC_BUILD_FOLDER" "$AWS_LC_INSTALL_FOLDER" -DBUILD_TESTING=OFF -DBUILD_TOOL=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1 | ||
| install_aws_lc | ||
|
|
||
| CODEBUILD_SKIPPED_TESTS="agent-subprocess forwarding multiplex channel-timeout forward-control agent-restrict connection-timeout" | ||
| if [ "$OPENSSH_BRANCH" != "master" ]; then | ||
| checkout_openssh_branch "$OPENSSH_BRANCH" | ||
| fi | ||
|
Comment on lines
+89
to
+91
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you do this checkout unconditionally? if OpenSSH ever changes the name of their default branch, this might break.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Git was complaining about a 'master' branch already existing, I couldn't find a nice option to checkout if it doesn't already exist so i went with this.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, maybe you could do something like |
||
|
|
||
| # Using default branch. Build openssh and run tests. | ||
| openssh_build | ||
| openssh_run_tests "${CODEBUILD_SKIPPED_TESTS}" | ||
|
|
||
| # Using branch V_8_9 | ||
| checkout_openssh_branch V_8_9 | ||
| openssh_build | ||
| # In v8.9, the "percent" test requires the 'openssl' cli command | ||
| openssh_run_tests "percent ${CODEBUILD_SKIPPED_TESTS}" | ||
| CODEBUILD_SKIPPED_TESTS="agent-subprocess forwarding multiplex channel-timeout forward-control agent-restrict connection-timeout" | ||
| if [ "$OPENSSH_BRANCH" == "V_8_9" ]; then | ||
| # In v8.9, the "percent" test requires the 'openssl' cli command | ||
| openssh_run_tests "percent ${CODEBUILD_SKIPPED_TESTS}" | ||
| else | ||
| openssh_run_tests "${CODEBUILD_SKIPPED_TESTS}" | ||
| fi | ||
|
|
||
| popd | ||
|
|
||
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.
Do we need
BUILD_GENERAL1_LARGEhere considering we useBUILD_GENERAL1_SMALLfor x86?