diff --git a/.gitattributes b/.gitattributes index 783afabc..63e3bef6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,3 +8,5 @@ thirdparty/ffmpeg/source-lock.json text eol=lf thirdparty/ffmpeg/runtime-lock.json text eol=lf thirdparty/signalsmith/LICENSE.txt text eol=lf thirdparty/signalsmith/signalsmith-linear/LICENSE.txt text eol=lf +tests/fixtures/ace-rocm-startup/**/*.json text eol=lf +tools/ai-compiler-runtime-requirements-windows.txt text eol=lf diff --git a/.github/workflows/ai-runtime-release.yml b/.github/workflows/ai-runtime-release.yml index f30b67d5..65e8a839 100644 --- a/.github/workflows/ai-runtime-release.yml +++ b/.github/workflows/ai-runtime-release.yml @@ -87,7 +87,7 @@ jobs: build-macos-runtime-arm64: needs: validate-ai-runtime-release - runs-on: macos-14 + runs-on: macos-15 env: VERSION: ${{ needs.validate-ai-runtime-release.outputs.version }} AI_RUNTIME_STANDALONE_RELEASE_TAG: ${{ vars.OPENSTUDIO_AI_RUNTIME_STANDALONE_RELEASE_TAG != '' && vars.OPENSTUDIO_AI_RUNTIME_STANDALONE_RELEASE_TAG || '20260325' }} diff --git a/.github/workflows/certification-access.yml b/.github/workflows/certification-access.yml new file mode 100644 index 00000000..783c77c0 --- /dev/null +++ b/.github/workflows/certification-access.yml @@ -0,0 +1,54 @@ +name: Certification access inspection (no publication) +on: + push: + branches: ['codex/certification-0.1.09-**'] + paths: + - '.github/workflows/certification-access.yml' + - 'tools/check-certification-access.py' + workflow_dispatch: +permissions: + contents: read +jobs: + apple: + runs-on: ubuntu-24.04 + timeout-minutes: 5 + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + with: + persist-credentials: false + - uses: dopplerhq/cli-action@014df23b1329b615816a38eb5f473bb9000700b1 + - name: Inspect allowlisted credential presence without exposing values + env: + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + MACOS_CERTIFICATE_BASE64: ${{ secrets.MACOS_CERTIFICATE_BASE64 }} + MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }} + MACOS_CODESIGN_IDENTITY: ${{ secrets.MACOS_CODESIGN_IDENTITY }} + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + APPLE_APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }} + run: python3 tools/check-certification-access.py apple --report output/apple-access.json + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: apple-certification-access + path: output/apple-access.json + store: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + environment: microsoft-store + concurrency: + group: openstudio-microsoft-store-submission + cancel-in-progress: false + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + with: + persist-credentials: false + - name: Read Store identity and submission state without mutations + env: + MS_STORE_TENANT_ID: ${{ secrets.MS_STORE_TENANT_ID }} + MS_STORE_CLIENT_ID: ${{ secrets.MS_STORE_CLIENT_ID }} + MS_STORE_CLIENT_SECRET: ${{ secrets.MS_STORE_CLIENT_SECRET }} + run: python3 tools/check-certification-access.py store --report output/store-access.json + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: store-certification-access + path: output/store-access.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3fc14fa5..785707a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,16 +18,123 @@ permissions: contents: read jobs: + qualify-snap: + permissions: + contents: read + actions: read + name: Qualify Snap before Store release + if: vars.OPENSTUDIO_SNAP_ENABLED == 'true' + needs: [build-linux, validate-release-notes] + uses: ./.github/workflows/snap-qualification.yml + with: + version: ${{ needs.validate-release-notes.outputs.app_version }} + artifact: linux-release + + preflight-snap: + name: Check Snap Store readiness without publication + needs: [qualify-snap, validate-release-notes] + if: vars.OPENSTUDIO_SNAP_ENABLED == 'true' && startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-22.04 + timeout-minutes: 10 + environment: snap-store + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: snap-candidate + path: candidate + - run: sudo snap install snapcraft --classic --channel=8.x/stable + - name: Authenticate and read status of the qualified Snap + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + APP_VERSION: ${{ needs.validate-release-notes.outputs.app_version }} + APPROVAL_URL: ${{ vars.OPENSTUDIO_SNAP_CLASSIC_APPROVAL_URL }} + run: python3 tools/submit_snap_release.py --directory candidate --version "$APP_VERSION" --tag "$GITHUB_REF_NAME" --approval-url "$APPROVAL_URL" --report output/snap-preflight.json --preflight + - name: Check access to the registered listing and its reviewed assets + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LISTING_CREDENTIALS }} + APP_VERSION: ${{ needs.validate-release-notes.outputs.app_version }} + run: /snap/snapcraft/current/bin/python3 tools/sync_snap_listing.py --directory candidate --version "$APP_VERSION" --tag "$GITHUB_REF_NAME" --report output/snap-listing-preflight.json + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + if: always() + with: + name: snap-store-readiness-${{ github.run_attempt }} + path: | + output/snap-preflight.json + output/snap-listing-preflight.json + if-no-files-found: warn + + submit-snap: + name: Submit Ubuntu App Center Snap release + needs: [publish, preflight-snap, validate-release-notes] + if: vars.OPENSTUDIO_SNAP_ENABLED == 'true' && startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-22.04 + timeout-minutes: 30 + environment: snap-store + concurrency: + group: openstudio-snap-store-submission + cancel-in-progress: false + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: snap-candidate + path: candidate + - run: sudo snap install snapcraft --classic --channel=8.x/stable + - name: Submit the exact qualified package + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + APP_VERSION: ${{ needs.validate-release-notes.outputs.app_version }} + APPROVAL_URL: ${{ vars.OPENSTUDIO_SNAP_CLASSIC_APPROVAL_URL }} + run: /snap/snapcraft/current/bin/python3 tools/submit_snap_release.py --directory candidate --version "$APP_VERSION" --tag "$GITHUB_REF_NAME" --approval-url "$APPROVAL_URL" --report output/snap-submission.json --submit + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + if: always() + with: + name: snap-store-submission-${{ github.run_attempt }} + path: output/snap-submission.json + if-no-files-found: warn + + sync-snap-listing: + name: Apply and verify the released Snap listing + needs: [submit-snap, validate-release-notes] + if: vars.OPENSTUDIO_SNAP_ENABLED == 'true' && startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-22.04 + timeout-minutes: 10 + environment: snap-store + concurrency: + group: openstudio-snap-store-submission + cancel-in-progress: false + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: snap-candidate + path: candidate + - run: sudo snap install snapcraft --classic --channel=8.x/stable + - name: Match stable revision, synchronize metadata and read it back + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LISTING_CREDENTIALS }} + APP_VERSION: ${{ needs.validate-release-notes.outputs.app_version }} + CRAFT_STORE_RETRIES: '0' + run: /snap/snapcraft/current/bin/python3 tools/sync_snap_listing.py --directory candidate --version "$APP_VERSION" --tag "$GITHUB_REF_NAME" --report output/snap-listing.json --apply + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + if: always() + with: + name: snap-store-listing-${{ github.run_attempt }} + path: output/snap-listing.json + if-no-files-found: warn + validate-release-notes: runs-on: ubuntu-24.04 outputs: notes_file: ${{ steps.notes.outputs.notes_file }} + app_version: ${{ steps.normalized.outputs.version }} env: VERSION: ${{ github.event.inputs.version || github.ref_name }} NOTES_FILE: ${{ github.event.inputs.release_notes_file }} steps: - name: Require exact release tag when Store is enabled - if: vars.OPENSTUDIO_STORE_ENABLED == 'true' + if: vars.OPENSTUDIO_STORE_ENABLED == 'true' || vars.OPENSTUDIO_SNAP_ENABLED == 'true' shell: bash run: | if [ "$GITHUB_REF" != "refs/tags/v${VERSION#v}" ]; then @@ -35,10 +142,19 @@ jobs: exit 1 fi - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 + - name: Normalize support package version + id: normalized + run: echo "version=${VERSION#v}" >> "$GITHUB_OUTPUT" - name: Validate exact-version release notes before building id: notes run: python3 tools/validate-release-notes.py --version "$VERSION" --notes-file "$NOTES_FILE" --github-output "$GITHUB_OUTPUT" + support-packages: + needs: validate-release-notes + uses: ./.github/workflows/support-qualification.yml + with: + version: ${{ needs.validate-release-notes.outputs.app_version }} + build-windows: needs: validate-release-notes runs-on: windows-latest @@ -139,6 +255,10 @@ jobs: if: env.DOPPLER_CONFIGURED == 'true' uses: dopplerhq/cli-action@014df23b1329b615816a38eb5f473bb9000700b1 # v3 + - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: '3.13' + - name: Configure CMake shell: pwsh env: @@ -193,6 +313,29 @@ jobs: shell: pwsh run: cmake --build $env:BUILD_DIR --config Release --target OpenStudio + - name: Archive matching native and frontend symbols (windows) + run: python tools/build-symbols.py archive --app "$env:BUILD_DIR/OpenStudio_artefacts/Release/OpenStudio.exe" --build-dir $env:BUILD_DIR --output output/symbols + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + with: + name: windows-debug-symbols + path: output/symbols/ + retention-days: 90 + if-no-files-found: error + + - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: '3.13' + + - name: Build and qualify standalone support (Windows) + shell: pwsh + run: | + python tools/build-support-tool.py --version $env:VERSION --stage "$env:BUILD_DIR/OpenStudio_artefacts/Release" + if ($LASTEXITCODE -ne 0) { throw 'Support build failed.' } + ./.venv-support/Scripts/python.exe -m unittest tools.test_openstudio_support -q + if ($LASTEXITCODE -ne 0) { throw 'Support regression failed.' } + python tools/test-packaged-support.py --bundle "$env:BUILD_DIR/OpenStudio_artefacts/Release" + if ($LASTEXITCODE -ne 0) { throw 'Support qualification failed.' } + - name: Verify signed updater (Windows Release) shell: pwsh run: | @@ -477,8 +620,8 @@ jobs: if-no-files-found: error build-macos: - needs: validate-release-notes - runs-on: macos-14 + needs: [validate-release-notes, support-packages] + runs-on: macos-15 env: VERSION: ${{ github.event.inputs.version || github.ref_name }} RELEASE_NOTES_FILE: ${{ needs.validate-release-notes.outputs.notes_file }} @@ -570,6 +713,10 @@ jobs: security list-keychains -d user -s "$KEYCHAIN_PATH" $EXISTING_KEYCHAINS echo "KEYCHAIN_PATH=$KEYCHAIN_PATH" >> "$GITHUB_ENV" + - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: '3.13' + - name: Configure CMake shell: bash env: @@ -615,6 +762,27 @@ jobs: shell: bash run: cmake --build "$BUILD_DIR" --config Release --target OpenStudio + - name: Archive matching native and frontend symbols (macos) + run: python tools/build-symbols.py archive --app "$BUILD_DIR/OpenStudio_artefacts/Release/OpenStudio.app" --build-dir "$BUILD_DIR" --output output/symbols + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + with: + name: macos-debug-symbols + path: output/symbols/ + retention-days: 90 + if-no-files-found: error + + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: support-macos-universal + path: output/support-universal + - name: Stage universal offline support + run: | + tar -xzf output/support-universal/support-macos-universal.tgz -C output/support-universal + APP="$BUILD_DIR/OpenStudio_artefacts/Release/OpenStudio.app" + ditto output/support-universal/OpenStudioSupport.app "$APP/Contents/Helpers/OpenStudioSupport.app" + ditto 'output/support-universal/OpenStudio Support.app' "$BUILD_DIR/OpenStudio_artefacts/Release/OpenStudio Support.app" + python3 tools/validate-support-tool.py --bundle "$APP" --version "$VERSION" + - name: Verify signed updater (macOS Release) shell: bash run: | @@ -734,7 +902,7 @@ jobs: if-no-files-found: error build-linux: - needs: validate-release-notes + needs: [validate-release-notes, support-packages] runs-on: ubuntu-22.04 permissions: contents: read @@ -792,6 +960,10 @@ jobs: if: env.DOPPLER_CONFIGURED == 'true' uses: dopplerhq/cli-action@014df23b1329b615816a38eb5f473bb9000700b1 # v3 + - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: '3.13' + - name: Configure CMake env: DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} @@ -835,6 +1007,25 @@ jobs: - name: Build OpenStudio run: cmake --build "$BUILD_DIR" --config Release --target OpenStudio + - name: Archive matching native and frontend symbols (Linux) + run: python tools/build-symbols.py archive --app "$BUILD_DIR/OpenStudio_artefacts/Release/OpenStudio" --build-dir "$BUILD_DIR" --output output/symbols + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + with: + name: linux-debug-symbols + path: output/symbols/ + retention-days: 90 + if-no-files-found: error + + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: support-linux-x64 + path: output/support-native + - name: Stage offline support + run: | + tar -xzf output/support-native/support-linux-x64.tgz -C output/support-native + cp -a output/support-native/OpenStudioSupport/. "$BUILD_DIR/OpenStudio_artefacts/Release/" + python3 tools/validate-support-tool.py --bundle "$BUILD_DIR/OpenStudio_artefacts/Release" --version "$VERSION" + - name: Verify signed updater (Linux Release) shell: bash run: | @@ -913,12 +1104,41 @@ jobs: name: linux-release path: | dist/linux/OpenStudio-*-x86_64.AppImage + dist/linux/OpenStudioSupport-*-x86_64.AppImage + dist/linux/OpenStudio-*-with-support.tar.gz dist/linux/OpenStudio-*-ubuntu-22.04-amd64.deb if-no-files-found: error + certify-store-package: + name: Certify the tag-built Microsoft Store package + if: vars.OPENSTUDIO_STORE_ENABLED == 'true' && startsWith(github.ref, 'refs/tags/v') + needs: build-windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: microsoft-store-package + path: dist/store + - name: Check the exact MSIX with the Windows App Certification Kit + shell: pwsh + run: | + $packages = @(Get-ChildItem -LiteralPath dist/store -Filter '*.msix' -File) + if ($packages.Count -ne 1) { throw 'Expected one release MSIX.' } + $expected = (Get-Content dist/store/package-report.json -Raw | ConvertFrom-Json).sha256 + if ((Get-FileHash $packages[0].FullName -Algorithm SHA256).Hash -ine $expected) { throw 'Release MSIX hash mismatch.' } + ./tools/run-windows-certification.ps1 -PackagePath $packages[0].FullName -OutputDirectory "$env:RUNNER_TEMP/tag-wack" + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + if: always() + with: + name: tag-windows-certification-${{ github.run_attempt }} + path: ${{ runner.temp }}/tag-wack/ + if-no-files-found: error + preflight-store: name: Check Store readiness before publication - needs: [build-windows, validate-release-notes] + needs: [build-windows, certify-store-package, validate-release-notes] if: vars.OPENSTUDIO_STORE_ENABLED == 'true' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-24.04 timeout-minutes: 10 @@ -967,7 +1187,10 @@ jobs: && needs.build-linux.result == 'success' && (needs.preflight-store.result == 'success' || (needs.preflight-store.result == 'skipped' - && vars.OPENSTUDIO_STORE_ENABLED != 'true')) }} + && vars.OPENSTUDIO_STORE_ENABLED != 'true')) + && (needs.preflight-snap.result == 'success' + || (needs.preflight-snap.result == 'skipped' + && vars.OPENSTUDIO_SNAP_ENABLED != 'true')) }} runs-on: ubuntu-latest needs: - validate-release-notes @@ -975,6 +1198,7 @@ jobs: - build-macos - build-linux - preflight-store + - preflight-snap permissions: contents: write env: @@ -1046,6 +1270,9 @@ jobs: "dist/windows/OpenStudio-Setup-x64.exe", "dist/windows/OpenStudio-FFmpeg-8.0.1-complete-corresponding-source.zip", "dist/macos/OpenStudio-macOS.dmg", + "dist/linux/OpenStudio-$env:VERSION-linux-x86_64.AppImage", + "dist/linux/OpenStudioSupport-$env:VERSION-linux-x86_64.AppImage", + "dist/linux/OpenStudio-$env:VERSION-linux-x86_64-with-support.tar.gz", "dist/ai-runtime/OpenStudio-AI-Runtime-windows-base-x64.zip", "dist/ai-runtime/OpenStudio-AI-Runtime-macos-arm64.zip", "dist/ai-runtime/OpenStudio-AI-Runtime-linux-cpu-x64.zip" @@ -1138,18 +1365,21 @@ jobs: -MetadataDir "dist/release-metadata" ` -OutputDir "dist/release-publish-assets" - - name: Add FFmpeg source archive to release checksums + - name: Add Linux Support downloads, DEB and FFmpeg source to release checksums shell: pwsh run: | - $sourcePath = "dist/windows/OpenStudio-FFmpeg-8.0.1-complete-corresponding-source.zip" $checksumsPath = "dist/release-publish-assets/OpenStudio-checksums.txt" - Get-ChildItem -Path "dist/linux/*.deb" | ForEach-Object { - $hash = (Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash.ToLowerInvariant() - "$hash $($_.Name)" | Add-Content -LiteralPath $checksumsPath -Encoding utf8 + $debs = @(Get-ChildItem -File -Path "dist/linux/OpenStudio-$env:VERSION-*-ubuntu-22.04-amd64.deb") + if ($debs.Count -ne 1) { throw 'Expected exactly one version-matched Ubuntu DEB.' } + $extraAssets = @(Get-Item -ErrorAction Stop -LiteralPath @( + "dist/linux/OpenStudioSupport-$env:VERSION-linux-x86_64.AppImage", + "dist/linux/OpenStudio-$env:VERSION-linux-x86_64-with-support.tar.gz", + "dist/windows/OpenStudio-FFmpeg-8.0.1-complete-corresponding-source.zip" + )) + $debs + foreach ($asset in $extraAssets) { + $hash = (Get-FileHash -LiteralPath $asset.FullName -Algorithm SHA256).Hash.ToLowerInvariant() + "$hash $($asset.Name)" | Add-Content -LiteralPath $checksumsPath -Encoding utf8 } - $sourceHash = (Get-FileHash -LiteralPath $sourcePath -Algorithm SHA256).Hash.ToLowerInvariant() - "$sourceHash OpenStudio-FFmpeg-8.0.1-complete-corresponding-source.zip" | - Add-Content -LiteralPath $checksumsPath -Encoding utf8 - name: Publish GitHub release uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2 @@ -1163,6 +1393,8 @@ jobs: dist/windows/OpenStudio-FFmpeg-8.0.1-complete-corresponding-source.zip dist/macos/OpenStudio-macOS.dmg dist/linux/OpenStudio-*-x86_64.AppImage + dist/linux/OpenStudioSupport-*-x86_64.AppImage + dist/linux/OpenStudio-*-with-support.tar.gz dist/linux/OpenStudio-*-ubuntu-22.04-amd64.deb dist/release-publish-assets/OpenStudio-checksums.txt dist/release-publish-assets/OpenStudio-release-latest.json diff --git a/.github/workflows/snap-qualification.yml b/.github/workflows/snap-qualification.yml new file mode 100644 index 00000000..594174a3 --- /dev/null +++ b/.github/workflows/snap-qualification.yml @@ -0,0 +1,120 @@ +name: Snap qualification (no publication) +on: + workflow_call: + inputs: + version: + required: true + type: string + artifact: + required: true + type: string + source-run: + description: Explicit diagnostic reuse of an earlier qualified DEB; empty for release builds + default: '' + type: string +permissions: + contents: read + actions: read +jobs: + installed-snap: + runs-on: ubuntu-22.04 + timeout-minutes: 40 + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + if: inputs.source-run == '' + with: + name: ${{ inputs.artifact }} + path: output/snap-input + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + if: inputs.source-run != '' + with: + name: ${{ inputs.artifact }} + path: output/snap-input + run-id: ${{ inputs.source-run }} + github-token: ${{ github.token }} + - name: Prepare the exact versioned DEB payload + env: + APP_VERSION: ${{ inputs.version }} + DIAGNOSTIC_SOURCE_RUN: ${{ inputs.source-run }} + run: | + python3 -m pip install PyYAML==6.0.3 pyelftools==0.32 + python3 tools/validate-release-notes.py --version "$APP_VERSION" + mapfile -t packages < <(find output/snap-input -name '*.deb' -type f) + test "${#packages[@]}" -eq 1 + python3 tools/prepare-snap-project.py --deb "${packages[0]}" --version "$APP_VERSION" --output output/snap-project --diagnostic-source-run "$DIAGNOSTIC_SOURCE_RUN" + - uses: canonical/action-build@3bdaa03e1ba6bf59a65f84a751d943d549a54e79 # v1.3.0 + id: build + with: + path: output/snap-project + snapcraft-channel: 8.x/stable + - name: Install unpublished Snap for qualification + id: install + env: + SNAP_FILE: ${{ steps.build.outputs.snap }} + run: | + mkdir -p output/snap-candidate + cp "$SNAP_FILE" output/snap-candidate/openstudio.snap + sudo snap install --dangerous --classic "$SNAP_FILE" + sudo apt-get update + sudo apt-get install -y xvfb xauth openbox + printf '#!/bin/sh\nexec snap run openstudio "$@"\n' > output/snap-launch + chmod +x output/snap-launch + - name: Reject damaged installed ELF metadata before opening the app + run: python3 tools/snap_elf.py --root /snap/openstudio/current --verify-only --output output/snap-elf.json + - name: Qualify installed main and detached windows + if: vars.OPENSTUDIO_SNAP_WINDOW_TESTS_PAUSED != 'true' + run: xvfb-run -a python3 tools/run-linux-qualification.py --app output/snap-launch --output output/snap-desktop --desktop + - name: Qualify installed recovery windows + if: vars.OPENSTUDIO_SNAP_WINDOW_TESTS_PAUSED != 'true' + run: xvfb-run -a python3 tools/run-linux-qualification.py --app output/snap-launch --output output/snap-safe --desktop --safe-mode + - name: Prove the installed browser uses the Snap dependency stack + if: vars.OPENSTUDIO_SNAP_WINDOW_TESTS_PAUSED != 'true' + run: xvfb-run -a python3 tools/check-snap-browser-stack.py --root /snap/openstudio/current --output output/snap-browser-stack + - name: Qualify installed exports independently of desktop readiness + if: ${{ !cancelled() && steps.install.outcome == 'success' }} + run: xvfb-run -a python3 tools/run-linux-qualification.py --app output/snap-launch --output output/snap-render --render + - name: Qualify explicitly opened frozen Support + if: ${{ !cancelled() && steps.install.outcome == 'success' }} + run: | + xvfb-run -a snap run openstudio.support --self-test "$GITHUB_WORKSPACE/output/snap-support.json" + xvfb-run -a python3 tools/test-packaged-support.py --bundle /snap/openstudio/current/usr/lib/openstudio + - name: Qualify Snap-managed update routing + if: ${{ !cancelled() && steps.install.outcome == 'success' }} + run: xvfb-run -a snap run openstudio --updater-self-test "$GITHUB_WORKSPACE/output/snap-updater" + - name: Keep paused or reused diagnostic packages unqualified + if: ${{ !cancelled() && steps.install.outcome == 'success' && (vars.OPENSTUDIO_SNAP_WINDOW_TESTS_PAUSED == 'true' || inputs.source-run != '') }} + run: | + echo '::error::This is an unqualified diagnostic package: window checks are paused or the DEB was explicitly reused from another run. Publication requires the complete release-run qualification.' + exit 1 + - name: Check installed Snap identity and inactivity contract + env: + APP_VERSION: ${{ inputs.version }} + run: python3 tools/qualify-snap-result.py --version "$APP_VERSION" --root /snap/openstudio/current --snap output/snap-candidate/openstudio.snap --project output/snap-project --desktop output/snap-desktop --safe output/snap-safe --render output/snap-render --support output/snap-support.json --updater output/snap-updater --output output/snap-candidate/qualification.json + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + if: always() + with: + name: snap-qualification-${{ github.run_attempt }} + path: | + output/snap-desktop + output/snap-safe + output/snap-browser-stack + output/snap-render + output/snap-support.json + output/snap-elf.json + output/snap-updater/result.json + output/snap-project/input-receipt.json + if-no-files-found: warn + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + if: ${{ failure() && steps.install.outcome == 'success' }} + with: + name: snap-diagnostic-candidate-unqualified + path: output/snap-candidate/openstudio.snap + if-no-files-found: error + compression-level: 0 + retention-days: 7 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: snap-candidate + path: output/snap-candidate/ + if-no-files-found: error diff --git a/.github/workflows/stem-runtime-qualification.yml b/.github/workflows/stem-runtime-qualification.yml new file mode 100644 index 00000000..9e05f90f --- /dev/null +++ b/.github/workflows/stem-runtime-qualification.yml @@ -0,0 +1,87 @@ +name: Real stem runtime qualification + +# Hosted runners do not prove NVIDIA execution. Run this gate on each actual +# hardware class before shipping runtime/installer changes; retain the reports. +on: + workflow_dispatch: + inputs: + runner_labels: + description: 'JSON runner labels for the hardware under test' + default: '["self-hosted","Windows","X64","cuda"]' + required: true + backend: + type: choice + options: [cuda, rocm, cpu, directml] + default: cuda + expected_backend: + type: choice + options: [cuda, rocm, cpu] + default: cuda + existing_runtime: + description: Existing runtime directory on that runner (copied, never modified) + required: true + fresh_base_runtime: + description: Fresh base directory for non-Windows; blank downloads public Windows base + default: '' + models_dir: + description: Stem checkpoint cache on that runner (downloaded if absent) + required: true + +permissions: + contents: read + +jobs: + qualify: + runs-on: ${{ fromJSON(inputs.runner_labels) }} + timeout-minutes: 180 + strategy: + fail-fast: false + max-parallel: 1 + matrix: + origin: [fresh, existing] + features: [stemSeparation, 'stemSeparation,audioGeneration'] + env: + QA_ORIGIN: ${{ matrix.origin }} + QA_FEATURES: ${{ matrix.features }} + QA_BACKEND: ${{ inputs.backend }} + QA_EXPECTED: ${{ inputs.expected_backend }} + QA_EXISTING: ${{ inputs.existing_runtime }} + QA_FRESH: ${{ inputs.fresh_base_runtime }} + QA_MODELS: ${{ inputs.models_dir }} + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 + - name: Stage the app's pinned Windows FFmpeg runtime + if: runner.os == 'Windows' + shell: pwsh + run: ./tools/setup-ffmpeg.ps1 + - name: Install through the real CLI, then separate on this hardware + shell: python {0} + run: | + import os, subprocess, sys + from pathlib import Path + root = Path(os.environ["RUNNER_TEMP"]) / ("stem-" + os.environ["GITHUB_RUN_ID"] + "-" + os.environ["GITHUB_RUN_ATTEMPT"] + "-" + os.environ["QA_ORIGIN"] + "-" + os.environ["QA_FEATURES"].replace(",", "-")) + args = [sys.executable, "tools/qualify_stem_installation.py", "--output-dir", str(root), + "--backend", os.environ["QA_BACKEND"], "--expected-auto-backend", os.environ["QA_EXPECTED"], + "--features", os.environ["QA_FEATURES"], "--models-dir", os.environ["QA_MODELS"], + "--skip-generation-checkpoints"] + base = os.environ["QA_EXISTING"] if os.environ["QA_ORIGIN"] == "existing" else os.environ["QA_FRESH"] + if base: + args += ["--base-runtime", base] + if sys.platform in {"win32", "linux"}: + args += ["--catalog", "https://openstudio.org.in/releases/ai-runtime/stable/latest.json"] + result = subprocess.run(args) + with open(os.environ["GITHUB_ENV"], "a") as out: + out.write("STEM_QA_OUTPUT=" + str(root) + "\n") + sys.exit(result.returncode) + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: always() + with: + name: stem-${{ matrix.origin }}-${{ matrix.features }} + path: | + ${{ env.STEM_QA_OUTPUT }}/report.json + ${{ env.STEM_QA_OUTPUT }}/*.log + ${{ env.STEM_QA_OUTPUT }}/separation/report.json + ${{ env.STEM_QA_OUTPUT }}/separation/*.log + ${{ env.STEM_QA_OUTPUT }}/streaming-separation/report.json + ${{ env.STEM_QA_OUTPUT }}/streaming-separation/*.log + if-no-files-found: error diff --git a/.github/workflows/support-qualification.yml b/.github/workflows/support-qualification.yml new file mode 100644 index 00000000..5fe323f3 --- /dev/null +++ b/.github/workflows/support-qualification.yml @@ -0,0 +1,118 @@ +name: Offline support qualification +on: + workflow_dispatch: + workflow_call: + inputs: + version: + type: string + default: '0.0.0' + push: + branches: ['codex/support-packaging-qa-**'] +permissions: + contents: read +jobs: + native: + strategy: + fail-fast: false + matrix: + include: + - {os: windows-latest, platform: windows, arch: x64} + - {os: ubuntu-22.04, platform: linux, arch: x64} + - {os: macos-15, platform: macos, arch: arm64} + - {os: macos-15-intel, platform: macos, arch: x86_64} + runs-on: ${{ matrix.os }} + timeout-minutes: 20 + env: + SUPPORT_VERSION: ${{ inputs.version || '0.0.0' }} + MACOSX_DEPLOYMENT_TARGET: '11.0' + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 + with: + node-version-file: frontend/.nvmrc + - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 + with: + python-version: '3.13' + - name: Linux desktop build dependencies + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install -y python3-tk xvfb xauth desktop-file-utils dpkg-dev rpm + - run: npm --prefix frontend ci + - name: Build native support + shell: bash + run: python tools/build-support-tool.py --version "$SUPPORT_VERSION" + - name: Windows installed support tests + if: runner.os == 'Windows' + shell: pwsh + run: | + ./.venv-support/Scripts/python.exe -m unittest tools.test_openstudio_support tests.test_support_identity -q + if ($LASTEXITCODE -ne 0) { throw 'Support tests failed' } + $env:OPENSTUDIO_SUPPORT_TEST_BUNDLE = "$PWD/output/support-package/OpenStudioSupport" + python tests/test_windows_installer.py --require-tools + if ($LASTEXITCODE -ne 0) { throw 'Installer regression failed' } + python tools/test-packaged-support.py --bundle $env:OPENSTUDIO_SUPPORT_TEST_BUNDLE + if ($LASTEXITCODE -ne 0) { throw 'Frozen support failed' } + ./tools/test-support-msix.ps1 -BundlePath $env:OPENSTUDIO_SUPPORT_TEST_BUNDLE -OutputDir output/support-msix-qa + - name: macOS support tests + if: runner.os == 'macOS' + timeout-minutes: 6 + run: | + .venv-support/bin/python -c "import faulthandler, unittest; faulthandler.dump_traceback_later(180, exit=True); unittest.main(module=None, argv=['unittest', 'tools.test_openstudio_support', 'tests.test_support_identity', '-v'])" + python tools/test-packaged-support.py --bundle output/support-package/OpenStudioSupport.app + codesign --verify --deep --strict output/support-package/OpenStudioSupport.app + - name: Linux support tests and native packaging + if: runner.os == 'Linux' + run: | + xvfb-run -a .venv-support/bin/python -m unittest tools.test_openstudio_support tests.test_support_identity -q + python -m unittest tests.test_linux_native_packaging tests.test_linux_abi tests.test_release_notes -q + xvfb-run -a python tools/test-packaged-support.py --bundle output/support-package/OpenStudioSupport + xvfb-run -a python tools/test-support-linux.py --bundle output/support-package/OpenStudioSupport --version "$SUPPORT_VERSION" + python tools/validate-linux-abi.py --root output/support-package/OpenStudioSupport --report output/support-distribution/abi.json --max-glibc 2.35 --require-os ubuntu:22.04 + - name: Archive native payload preserving executable modes and links + shell: bash + run: tar -czf support-${{ matrix.platform }}-${{ matrix.arch }}.tgz -C output/support-package . + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: support-${{ matrix.platform }}-${{ matrix.arch }} + path: | + support-*.tgz + output/support-distribution/*.AppImage + output/support-distribution/abi.json + if-no-files-found: error + universal-macos: + needs: native + if: ${{ !cancelled() }} + runs-on: macos-15 + timeout-minutes: 15 + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + pattern: support-macos-* + path: output/native + - name: Assemble both native runtimes and Finder launcher + run: | + mkdir -p output/arm64 output/x86_64 + tar -xzf output/native/support-macos-arm64/support-macos-arm64.tgz -C output/arm64 + tar -xzf output/native/support-macos-x86_64/support-macos-x86_64.tgz -C output/x86_64 + python3 tools/assemble-macos-support.py --arm64 output/arm64/OpenStudioSupport.app --x86-64 output/x86_64/OpenStudioSupport.app --version '${{ inputs.version || '0.0.0' }}' --output output/universal + python3 tools/sign-macos-support.py output/universal/OpenStudioSupport.app --identity - --no-timestamp + python3 tools/test-macos-support-package.py --bundle output/universal --version '${{ inputs.version || '0.0.0' }}' + tar -czf support-macos-universal.tgz -C output/universal . + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: support-macos-universal + path: support-macos-universal.tgz + universal-macos-intel: + needs: universal-macos + runs-on: macos-15-intel + timeout-minutes: 15 + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: support-macos-universal + path: output/universal + - name: Qualify universal launcher and mounted DMG on Intel + run: | + tar -xzf output/universal/support-macos-universal.tgz -C output/universal + python3 tools/test-macos-support-package.py --bundle output/universal --version '${{ inputs.version || '0.0.0' }}' diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 51449f0c..a28f6635 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -6,12 +6,52 @@ on: - main pull_request: workflow_dispatch: + inputs: + version: + description: Unpublished candidate version to qualify + default: "0.1.09" + type: string + snap_source_run: + description: Diagnostic Snap only using candidate-linux-x64 from this explicit prior Verify run; no publication + default: '' + type: string permissions: contents: read jobs: + diagnostic-snap: + name: Diagnostic Snap (unqualified; no publication) + if: inputs.snap_source_run != '' + permissions: + contents: read + actions: read + uses: ./.github/workflows/snap-qualification.yml + with: + version: ${{ inputs.version || '0.1.09' }} + artifact: candidate-linux-x64 + source-run: ${{ inputs.snap_source_run }} + + qualify-snap: + if: inputs.snap_source_run == '' + permissions: + contents: read + actions: read + name: Installed Snap (unpublished) + needs: verify-linux + uses: ./.github/workflows/snap-qualification.yml + with: + version: ${{ inputs.version || '0.1.09' }} + artifact: candidate-linux-x64 + + support-packages: + if: inputs.snap_source_run == '' + uses: ./.github/workflows/support-qualification.yml + with: + version: ${{ inputs.version || '0.1.09' }} + verify-python-tools: + if: inputs.snap_source_run == '' name: Python tooling runs-on: ubuntu-24.04 steps: @@ -22,7 +62,7 @@ jobs: python-version: '3.12' - name: Install Python tooling test dependencies - run: python -m pip install numpy==2.4.2 soundfile==0.13.1 cryptography==46.0.3 PyYAML==6.0.3 + run: python -m pip install numpy==2.4.2 soundfile==0.13.1 cryptography==46.0.3 PyYAML==6.0.3 pyelftools==0.32 - name: Check first-party product names run: python3 tools/check-product-naming.py @@ -34,6 +74,8 @@ jobs: run: >- python3 -m unittest tests.test_release_notes + tests.test_release_build_policy + tests.test_support_identity tests.test_build_process_lifecycle tests.test_juce_lv2_identifier_patch tests.test_juce_mac_browser_navigation_patch @@ -47,7 +89,12 @@ jobs: tests.test_store_diagnosis tests.test_store_recovery tests.test_store_release_workflow + tests.test_snap_release tests.test_ai_runtime_dependency_pins + tests.test_ai_memory_manager + tests.test_ai_telemetry + tests.test_stem_worker + tests.test_stem_installation_qualification tests.test_release_ai_runtime tests.test_ai_runtime_release tests.test_prepare_ai_runtime_pip @@ -60,22 +107,64 @@ jobs: tests.test_desktop_qualification tests.test_free_suite_ui_regression + verify-stem-installation: + if: inputs.snap_source_run == '' + name: Fresh installer to real CPU stem separation + runs-on: windows-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 + - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: '3.12' + - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + with: + path: | + .cache/stem-qualification + .cache/stem-models + ~\AppData\Local\pip\Cache + key: windows-stem-flow-${{ hashFiles('tools/ai-runtime-install-plan*.json', 'tools/qualify_stem_installation.py') }} + - name: Stage the app's pinned FFmpeg runtime for the source worker + shell: pwsh + run: ./tools/setup-ffmpeg.ps1 + - name: Install from the public base and separate non-silent audio + run: >- + python tools/qualify_stem_installation.py + --output-dir output/stem-installation-ci + --catalog https://openstudio.org.in/releases/ai-runtime/stable/latest.json + --backend cpu --expected-auto-backend cpu + --models-dir .cache/stem-models + --timeout 1800 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: always() + with: + name: stem-installation-cpu + path: | + output/stem-installation-ci/report.json + output/stem-installation-ci/*.log + output/stem-installation-ci/separation/report.json + output/stem-installation-ci/separation/*.log + output/stem-installation-ci/streaming-separation/report.json + output/stem-installation-ci/streaming-separation/*.log + if-no-files-found: error + verify-ai-policy: + if: inputs.snap_source_run == '' name: AI execution policy (${{ matrix.os }}) runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - os: [ubuntu-24.04, windows-latest, macos-14] + os: [ubuntu-24.04, windows-latest, macos-15] steps: - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 with: python-version: '3.12' - name: Install lightweight audio test dependencies - run: python -m pip install numpy==2.4.2 soundfile==0.13.1 + run: python -m pip install numpy==2.4.2 soundfile==0.13.1 psutil==7.2.2 filelock==4.2.4 - name: Verify device budgets and model routing without GPU dependencies - run: python -m unittest tests.test_ai_execution_policy tests.test_ai_benchmark tests.test_diffusers_memory_policy tests.test_ace_diffusers_generation tests.test_ai_generation_preflight + run: python -m unittest tests.test_ai_execution_policy tests.test_ai_benchmark tests.test_diffusers_memory_policy tests.test_ace_diffusers_generation tests.test_ai_generation_preflight tests.test_ai_memory_manager tests.test_generation_automatic_memory tests.test_ai_compilation tests.test_ai_compiler_setup tests.test_ai_layerwise_storage tests.test_ai_rocm_startup tests.test_stem_acceleration tests.test_stem_worker tests.test_stem_installation_qualification tests.test_ai_runtime_dependency_pins - name: Cache macOS standalone Python and AI wheels if: runner.os == 'macOS' @@ -120,12 +209,30 @@ jobs: if-no-files-found: error verify-input-profiles: - name: Input profiles (${{ matrix.os }}) + if: inputs.snap_source_run == '' + name: Input profiles (${{ matrix.os }}, ${{ matrix.shard }}) runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - os: [windows-latest, macos-15, ubuntu-24.04] + # Fresh browser contexts load hundreds of Vite modules. Spread Windows + # cases across hosts to reduce loopback socket pressure after an + # ERR_NO_BUFFER_SPACE failure in the full suite. Keep every test and + # assertion; do not retry a failed navigation or extend UI deadlines. + include: + - { os: windows-latest, shard: '1/8', artifact: windows-1 } + - { os: windows-latest, shard: '2/8', artifact: windows-2 } + - { os: windows-latest, shard: '3/8', artifact: windows-3 } + - { os: windows-latest, shard: '4/8', artifact: windows-4 } + - { os: windows-latest, shard: '5/8', artifact: windows-5 } + - { os: windows-latest, shard: '6/8', artifact: windows-6 } + - { os: windows-latest, shard: '7/8', artifact: windows-7 } + - { os: windows-latest, shard: '8/8', artifact: windows-8 } + - { os: macos-15, shard: '1/1', artifact: macos } + - { os: ubuntu-24.04, shard: '1/4', artifact: linux-1 } + - { os: ubuntu-24.04, shard: '2/4', artifact: linux-2 } + - { os: ubuntu-24.04, shard: '3/4', artifact: linux-3 } + - { os: ubuntu-24.04, shard: '4/4', artifact: linux-4 } defaults: run: working-directory: frontend @@ -183,14 +290,14 @@ jobs: NODE - name: Run shortcut and input-profile browser tests - run: npm run test:e2e + run: npm run test:e2e -- --shard=${{ matrix.shard }} - name: Remove Playwright WebKit keyboard-navigation preference if: always() && runner.os == 'macOS' run: defaults delete org.webkit.Playwright AppleKeyboardUIMode 2>/dev/null || true - name: Check controls in the system WebKitGTK - if: runner.os == 'Linux' + if: runner.os == 'Linux' && matrix.shard == '1/4' run: | sudo apt-get update sudo apt-get install -y python3-gi gir1.2-webkit2-4.1 libxtst6 xvfb xauth @@ -201,16 +308,17 @@ jobs: if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: - name: control-ui-${{ matrix.os }} + name: control-ui-${{ matrix.artifact }} path: | output/playwright/test-results output/linux-control-ui if-no-files-found: ignore verify-windows: + if: inputs.snap_source_run == '' runs-on: windows-latest env: - VERSION: 0.0.0 + VERSION: ${{ inputs.version || '0.1.09' }} BUILD_DIR: build-verify-windows ASIO_SDK_DIR: thirdparty/asio ONNXRUNTIME_VERSION: 1.24.4 @@ -218,6 +326,10 @@ jobs: steps: - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 + - name: Validate candidate release notes + shell: pwsh + run: python tools/validate-release-notes.py --version "$env:VERSION" + - name: Install Inno Setup for installer regression tests shell: pwsh run: choco install innosetup -y --no-progress @@ -253,6 +365,10 @@ jobs: npm run build if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: '3.13' + - name: Install ASIO SDK shell: pwsh run: ./tools/setup-asio-sdk.ps1 -Destination $env:ASIO_SDK_DIR @@ -316,6 +432,18 @@ jobs: shell: pwsh run: cmake --build $env:BUILD_DIR --config Release --target OpenStudio + - name: Qualify standalone offline support + shell: pwsh + run: | + python tools/build-support-tool.py --version "$env:VERSION" --stage "$env:BUILD_DIR/OpenStudio_artefacts/Release" + if ($LASTEXITCODE -ne 0) { throw 'Support build failed.' } + ./.venv-support/Scripts/python.exe -m unittest tools.test_openstudio_support -q + if ($LASTEXITCODE -ne 0) { throw 'Support regression failed.' } + python tools/validate-support-tool.py --bundle output/support-package/OpenStudioSupport --version "$env:VERSION" + if ($LASTEXITCODE -ne 0) { throw 'Support inventory failed.' } + python tools/test-packaged-support.py --bundle output/support-package/OpenStudioSupport + if ($LASTEXITCODE -ne 0) { throw 'Packaged support qualification failed.' } + - name: Install Chromium for native-schema editor qualification shell: pwsh working-directory: frontend @@ -557,19 +685,95 @@ jobs: -TimeoutSeconds 360 ` -SkipBuild + - name: Qualify native AI setup through real CPU stem separation + shell: pwsh + timeout-minutes: 40 + run: | + # This executes the built native host, rather than invoking the + # Python installer directly. No UI or user runtime is involved. + $exePath = Join-Path $env:GITHUB_WORKSPACE "$env:BUILD_DIR/OpenStudio_artefacts/Release/OpenStudio.exe" + $inputPath = Join-Path $env:RUNNER_TEMP 'native-stem-input.wav' + python -c "import math,struct,wave; f=wave.open(r'$inputPath','wb'); f.setparams((2,2,44100,0,'NONE','not compressed')); f.writeframes(b''.join(struct.pack('