|
9 | 9 | workflow_dispatch: |
10 | 10 | inputs: |
11 | 11 | release_tag: |
12 | | - description: Published plugin release to install without rebuilding the backend |
| 12 | + description: Published plugin release to install without rebuilding the backend (empty, the latest) |
13 | 13 | type: string |
14 | | - default: v0.2.0 |
| 14 | + default: '' |
| 15 | + # A new CLion is met by CI before a user meets it: the latest published plugin on the stable |
| 16 | + # releases named below, every week. |
| 17 | + schedule: |
| 18 | + - cron: '17 4 * * 1' |
15 | 19 |
|
16 | 20 | permissions: |
17 | 21 | contents: read |
@@ -57,10 +61,14 @@ jobs: |
57 | 61 | if: inputs.plugin_artifact == '' |
58 | 62 | env: |
59 | 63 | GH_TOKEN: ${{ github.token }} |
60 | | - RELEASE_TAG: ${{ inputs.release_tag || 'v0.2.0' }} |
| 64 | + RELEASE_TAG: ${{ inputs.release_tag }} |
61 | 65 | run: | |
62 | 66 | set -euo pipefail |
63 | | - [[ "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] |
| 67 | + # Unnamed (the weekly run): the newest release that carries the CLion plugin. |
| 68 | + if [ -z "$RELEASE_TAG" ]; then |
| 69 | + RELEASE_TAG="$(gh api "repos/$GITHUB_REPOSITORY/releases?per_page=100" --jq '[.[] | select((.draft | not) and (.tag_name | test("^(clion-)?v[0-9]+\\.[0-9]+\\.[0-9]+$")))][0].tag_name')" |
| 70 | + fi |
| 71 | + [[ "$RELEASE_TAG" =~ ^(clion-)?v[0-9]+\.[0-9]+\.[0-9]+$ ]] |
64 | 72 | mkdir -p stable-plugin |
65 | 73 | gh release download "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \ |
66 | 74 | --pattern 'mcpp-clion-*.zip' --dir stable-plugin |
@@ -125,12 +133,108 @@ jobs: |
125 | 133 | path: | |
126 | 134 | ${{ runner.temp }}/clion-stable-result/result.json |
127 | 135 | ${{ runner.temp }}/clion-stable-result/checks.json |
128 | | - ${{ runner.temp }}/clion-stable-result/ide-errors.ndjson |
| 136 | + ${{ runner.temp }}/clion-stable-result/ide-errors*.ndjson |
129 | 137 | ${{ runner.temp }}/clion-stable-result/settings/result.json |
130 | 138 | ${{ runner.temp }}/clion-stable-result/settings/observations.json |
131 | 139 | ${{ runner.temp }}/clion-stable-result/graphs/result.json |
132 | 140 | ${{ runner.temp }}/clion-stable-result/graphs/checks.json |
133 | 141 | ${{ runner.temp }}/clion-stable-result/graphs-no-jcef/result.json |
134 | 142 | ${{ runner.temp }}/clion-stable-result/graphs-no-jcef/checks.json |
135 | 143 | ${{ runner.temp }}/clion-stable-result/graphs-no-jcef/no-jcef-window.txt |
| 144 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/result.json |
| 145 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/checks.json |
| 146 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/no-jcef-window.txt |
| 147 | + if-no-files-found: warn |
| 148 | + |
| 149 | + # The report of #13 came from macOS on Apple silicon, where the JCEF plugin is a build of its own: |
| 150 | + # the startup chain and the graphs (JCEF on, switched off, its plugin disabled) on the newest stable |
| 151 | + # CLion there. |
| 152 | + # One IDE per runner: on macOS a second IDE started on the same runner could stop at its start, before |
| 153 | + # any plugin loads (its log ends at "CPU cores"), and its driver never connected. |
| 154 | + runtime-macos: |
| 155 | + name: packaged plugin on CLion ${{ matrix.version }} (macOS aarch64, ${{ matrix.scenario }}) |
| 156 | + runs-on: macos-15 |
| 157 | + timeout-minutes: 45 |
| 158 | + strategy: |
| 159 | + fail-fast: false |
| 160 | + matrix: |
| 161 | + version: ['2026.2.4.1'] |
| 162 | + scenario: [graphRendersNavigatesAndRecoversInJcef, graphExplainsAbsentJcefPlugin, graphExplainsUnavailableJcef] |
| 163 | + defaults: |
| 164 | + run: |
| 165 | + shell: bash |
| 166 | + steps: |
| 167 | + - uses: actions/checkout@v5 |
| 168 | + - uses: ./.github/actions/setup-mcpp |
| 169 | + with: |
| 170 | + llvm: 'true' |
| 171 | + - uses: actions/setup-java@v5 |
| 172 | + with: |
| 173 | + distribution: temurin |
| 174 | + java-version: '25' |
| 175 | + - uses: gradle/actions/setup-gradle@v5 |
| 176 | + with: |
| 177 | + gradle-version: '9.7.1' |
| 178 | + - name: The candidate ZIP built once by CI |
| 179 | + if: inputs.plugin_artifact != '' |
| 180 | + uses: actions/download-artifact@v5 |
| 181 | + with: |
| 182 | + name: ${{ inputs.plugin_artifact }} |
| 183 | + path: stable-plugin |
| 184 | + - name: The published ZIP for an isolated release check |
| 185 | + if: inputs.plugin_artifact == '' |
| 186 | + env: |
| 187 | + GH_TOKEN: ${{ github.token }} |
| 188 | + RELEASE_TAG: ${{ inputs.release_tag }} |
| 189 | + run: | |
| 190 | + set -euo pipefail |
| 191 | + if [ -z "$RELEASE_TAG" ]; then |
| 192 | + RELEASE_TAG="$(gh api "repos/$GITHUB_REPOSITORY/releases?per_page=100" --jq '[.[] | select((.draft | not) and (.tag_name | test("^(clion-)?v[0-9]+\\.[0-9]+\\.[0-9]+$")))][0].tag_name')" |
| 193 | + fi |
| 194 | + [[ "$RELEASE_TAG" =~ ^(clion-)?v[0-9]+\.[0-9]+\.[0-9]+$ ]] |
| 195 | + mkdir -p stable-plugin |
| 196 | + gh release download "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \ |
| 197 | + --pattern 'mcpp-clion-*.zip' --dir stable-plugin |
| 198 | + - name: The pinned language-service plugin |
| 199 | + env: |
| 200 | + GH_TOKEN: ${{ github.token }} |
| 201 | + run: | |
| 202 | + set -euo pipefail |
| 203 | + version="$(sed -n 's/^mcpplsPluginVersion *= *//p' mide-plugins/clion/gradle.properties)" |
| 204 | + gh release download "v$version" --repo Sunrisepeak/mcpp-language-server \ |
| 205 | + --pattern "mcppls-clion-$version.zip" --dir stable-plugin |
| 206 | + - name: Start the real IDE, complete the startup chain and open the graphs |
| 207 | + env: |
| 208 | + IDE_VERSION: ${{ matrix.version }} |
| 209 | + run: | |
| 210 | + set -euo pipefail |
| 211 | + plugin="$(find stable-plugin -maxdepth 1 -name 'mcpp-clion-*.zip' -print)" |
| 212 | + language="$(find stable-plugin -maxdepth 1 -name 'mcppls-clion-*.zip' -print)" |
| 213 | + test -n "$plugin" && test -n "$language" |
| 214 | + gradle --no-daemon --max-workers=4 \ |
| 215 | + -p mide-plugins/clion/integration-tests test --tests "GraphInteractionTest.${{ matrix.scenario }}" \ |
| 216 | + -PpluginZip="$GITHUB_WORKSPACE/$plugin" \ |
| 217 | + -PmcpplsZip="$GITHUB_WORKSPACE/$language" \ |
| 218 | + -PideVersion="$IDE_VERSION" \ |
| 219 | + -Poutput="$RUNNER_TEMP/clion-stable-result" |
| 220 | + - uses: actions/upload-artifact@v5 |
| 221 | + if: always() |
| 222 | + with: |
| 223 | + name: clion-stable-macos-${{ matrix.version }}-${{ matrix.scenario }} |
| 224 | + # The JUnit results name an assertion's message; the IDE's own log, of a runner's IDE on a |
| 225 | + # generated project, names why an IDE did not start. |
| 226 | + path: | |
| 227 | + ${{ runner.temp }}/clion-stable-result/ide-errors*.ndjson |
| 228 | + mide-plugins/clion/integration-tests/build/test-results/test/*.xml |
| 229 | + out/ide-tests/tests/*/*/log/idea.log |
| 230 | + out/ide-tests/tests/*/*/log/monitoring-thread-dumps-ide/*.txt |
| 231 | + ${{ runner.temp }}/clion-stable-result/*/ide-start-retried |
| 232 | + ${{ runner.temp }}/clion-stable-result/graphs/result.json |
| 233 | + ${{ runner.temp }}/clion-stable-result/graphs/checks.json |
| 234 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef/result.json |
| 235 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef/checks.json |
| 236 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef/no-jcef-window.txt |
| 237 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/result.json |
| 238 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/checks.json |
| 239 | + ${{ runner.temp }}/clion-stable-result/graphs-no-jcef-plugin/no-jcef-window.txt |
136 | 240 | if-no-files-found: warn |
0 commit comments