|
1 | 1 | steps:
|
2 | 2 | - group: "Coverage"
|
3 | 3 | steps:
|
4 |
| - - label: ":linux: coverage" |
5 |
| - key: "coverage" |
6 |
| - # Comment out the following `if:` statement for testing. |
7 |
| - # Please remember to uncomment it before merging the PR. |
8 |
| - if: pipeline.slug == "julia-master-scheduled" |
| 4 | + - label: ":linux: coverage (x86_64)" |
| 5 | + key: "coverage-linux" |
| 6 | + if: (pipeline.slug == "julia-buildkite-scheduled") || (pipeline.slug == "julia-master-scheduled") |
9 | 7 | plugins:
|
10 | 8 | - JuliaCI/external-buildkite#v1:
|
11 | 9 | version: "./.buildkite-external-version"
|
@@ -61,3 +59,123 @@ steps:
|
61 | 59 | env:
|
62 | 60 | # Receive cryptic token from parent job
|
63 | 61 | BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET: ${BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET?}
|
| 62 | + |
| 63 | + - label: ":macos: coverage (aarch64)" |
| 64 | + key: "coverage-macos-aarch64" |
| 65 | + if: (pipeline.slug == "julia-buildkite-scheduled") || (pipeline.slug == "julia-master-scheduled") |
| 66 | + plugins: |
| 67 | + - JuliaCI/external-buildkite#v1: |
| 68 | + version: "./.buildkite-external-version" |
| 69 | + repo_url: "https://github.com/JuliaCI/julia-buildkite" |
| 70 | + - JuliaCI/julia#v1: |
| 71 | + # Drop default "registries" directory, so it is not persisted from execution to execution |
| 72 | + persist_depot_dirs: packages,artifacts,compiled |
| 73 | + version: '1' |
| 74 | + - JuliaCI/cryptic#v2: |
| 75 | + variables: |
| 76 | + - CODECOV_TOKEN="U2FsdGVkX19l0fhdBabbuiEdysyEabkJLRHfxm7CNRkuGbnwPV365sxxC7Czs/CVcws0N1oB4pVwALRRMe36oA==" |
| 77 | + - COVERALLS_TOKEN="U2FsdGVkX19zopI0hMNzzi2UUOvNVFD8Y0iisFnO/ryVxU7Tit8ZEaeN+gxodRx4CosUUh192F1+q3dTMWRIvw==" |
| 78 | + timeout_in_minutes: 720 |
| 79 | + commands: | |
| 80 | + echo "--- Build Julia from source" |
| 81 | + make -j$${JULIA_NUM_THREADS} |
| 82 | +
|
| 83 | + echo "--- Print Julia version info" |
| 84 | + ./julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' |
| 85 | + ./julia -e '@info "" Sys.CPU_THREADS' |
| 86 | + # this is necessary to make sure that the LibGit2 tests passes |
| 87 | + git config --global init.defaultBranch master |
| 88 | +
|
| 89 | + echo "--- Run Julia tests in parallel with code coverage enabled" |
| 90 | + export JULIA_NUM_THREADS=1 |
| 91 | + export JULIA_WORKER_TIMEOUT=1200 # 1200 seconds = 20 minutes |
| 92 | + ./julia -e 'import Distributed; @info "" Distributed.worker_timeout()' |
| 93 | + ./julia .buildkite/pipelines/scheduled/coverage/run_tests_parallel.jl |
| 94 | +
|
| 95 | + echo "--- Move the lcov files into the `./lcov_files` directory" |
| 96 | + ls *.info |
| 97 | + mkdir -p lcov_files |
| 98 | + mv *.info lcov_files |
| 99 | + ls lcov_files |
| 100 | +
|
| 101 | + echo "--- Upload lcov files" |
| 102 | + tar -zcf lcov_files.tar.gz lcov_files/ |
| 103 | + buildkite-agent artifact upload lcov_files.tar.gz |
| 104 | +
|
| 105 | + echo "--- Process and upload coverage information" |
| 106 | + ./julia .buildkite/pipelines/scheduled/coverage/upload_coverage.jl |
| 107 | + agents: |
| 108 | + queue: "julia" |
| 109 | + os: "macos" |
| 110 | + arch: "aarch64" |
| 111 | + env: |
| 112 | + JULIA_SHELL: "/bin/bash" |
| 113 | + # Receive cryptic token from parent job |
| 114 | + BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET: ${BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET?} |
| 115 | + |
| 116 | + - label: ":windows: coverage (x86_64)" |
| 117 | + key: "coverage-windows-x86_64" |
| 118 | + if: (pipeline.slug == "julia-buildkite-scheduled") || (pipeline.slug == "julia-master-scheduled") |
| 119 | + plugins: |
| 120 | + - JuliaCI/external-buildkite#v1: |
| 121 | + version: "./.buildkite-external-version" |
| 122 | + repo_url: "https://github.com/JuliaCI/julia-buildkite" |
| 123 | + - JuliaCI/julia#v1: |
| 124 | + # Drop default "registries" directory, so it is not persisted from execution to execution |
| 125 | + persist_depot_dirs: packages,artifacts,compiled |
| 126 | + version: '1' |
| 127 | + - JuliaCI/cryptic#v2: |
| 128 | + variables: |
| 129 | + - CODECOV_TOKEN="U2FsdGVkX19l0fhdBabbuiEdysyEabkJLRHfxm7CNRkuGbnwPV365sxxC7Czs/CVcws0N1oB4pVwALRRMe36oA==" |
| 130 | + - COVERALLS_TOKEN="U2FsdGVkX19zopI0hMNzzi2UUOvNVFD8Y0iisFnO/ryVxU7Tit8ZEaeN+gxodRx4CosUUh192F1+q3dTMWRIvw==" |
| 131 | + - docker#v3.13.0: |
| 132 | + image: "juliapackaging/package-windows-x86_64:v7.10" |
| 133 | + always-pull: true |
| 134 | + command: ["bash", "-c", " |
| 135 | + echo '--- Build Julia from source' && |
| 136 | + make -j$${JULIA_NUM_THREADS} VERBOSE=1 && |
| 137 | + echo '--- Print Julia version info' && |
| 138 | + ./usr/bin/julia.exe -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' && |
| 139 | + ./usr/bin/julia.exe -e '@info \"\" Sys.CPU_THREADS' && |
| 140 | + git config --global init.defaultBranch master && |
| 141 | + echo '--- Run Julia tests in parallel with code coverage enabled' && |
| 142 | + export JULIA_NUM_THREADS=1 && |
| 143 | + export JULIA_WORKER_TIMEOUT=1200 && |
| 144 | + ./usr/bin/julia.exe -e 'import Distributed; @info \"\" Distributed.worker_timeout()' && |
| 145 | + ./usr/bin/julia.exe .buildkite/pipelines/scheduled/coverage/run_tests_parallel.jl && |
| 146 | + echo '--- Move the lcov files into the ./lcov_files directory' && |
| 147 | + ls *.info && |
| 148 | + mkdir -p lcov_files && |
| 149 | + mv *.info lcov_files && |
| 150 | + ls lcov_files && |
| 151 | + echo '--- Upload lcov files' && |
| 152 | + tar -zcf lcov_files.tar.gz lcov_files/ && |
| 153 | + buildkite-agent artifact upload lcov_files.tar.gz && |
| 154 | + echo '--- Process and upload coverage information' && |
| 155 | + ./usr/bin/julia.exe .buildkite/pipelines/scheduled/coverage/upload_coverage.jl |
| 156 | + "] |
| 157 | + propagate-environment: true |
| 158 | + volumes: |
| 159 | + # Mount buildkite-agent as well |
| 160 | + - "C:\\buildkite-agent\\bin:C:\\buildkite-agent\\bin" |
| 161 | + environment: |
| 162 | + - "JULIA_CPU_THREADS" |
| 163 | + - "BUILDKITE_AGENT_ACCESS_TOKEN" |
| 164 | + - "BUILDKITE_BRANCH" |
| 165 | + - "BUILDKITE_REPO" |
| 166 | + - "BUILDKITE_MESSAGE" |
| 167 | + - "BUILDKITE_BUILD_AUTHOR" |
| 168 | + - "BUILDKITE_BUILD_CREATOR" |
| 169 | + - "BUILDKITE_BUILD_AUTHOR_EMAIL" |
| 170 | + - "BUILDKITE_BUILD_CREATOR_EMAIL" |
| 171 | + - "CODECOV_TOKEN" |
| 172 | + - "COVERALLS_TOKEN" |
| 173 | + timeout_in_minutes: 720 |
| 174 | + agents: |
| 175 | + queue: "julia" |
| 176 | + os: "windows" |
| 177 | + arch: "x86_64" |
| 178 | + env: |
| 179 | + JULIA_SHELL: "/bin/bash" |
| 180 | + # Receive cryptic token from parent job |
| 181 | + BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET: ${BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET?} |
0 commit comments