From b62e16026f65f2df66517319a28d97452c6e5536 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Thu, 20 Nov 2025 14:47:38 +0000 Subject: [PATCH 1/3] fix: resolve GitHub Actions CI failures across platforms --- .github/workflows/python-bindings.yml | 76 ++++++++++++++++--- .../benchmarks/benchmark_autocomplete.py | 1 - .../python/benchmarks/benchmark_matcher.py | 1 - .../python/tests/test_autocomplete.py | 1 - .../python/tests/test_matcher.py | 1 - .../python/tests/test_thesaurus.py | 1 - 6 files changed, 64 insertions(+), 17 deletions(-) diff --git a/.github/workflows/python-bindings.yml b/.github/workflows/python-bindings.yml index 663b178bd..68ed41d0f 100644 --- a/.github/workflows/python-bindings.yml +++ b/.github/workflows/python-bindings.yml @@ -87,32 +87,58 @@ jobs: - name: Setup virtual environment working-directory: crates/terraphim_automata_py + shell: bash run: | + unset CONDA_PREFIX uv venv - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi - name: Install maturin working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi uv pip install maturin - name: Build Python package working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate - maturin develop + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi + maturin develop --target native - name: Install test dependencies working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi uv pip install pytest pytest-cov - name: Run tests working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi pytest python/tests/ -v --cov=terraphim_automata --cov-report=xml --cov-report=term - name: Upload coverage to Codecov @@ -151,26 +177,47 @@ jobs: - name: Setup virtual environment working-directory: crates/terraphim_automata_py + shell: bash run: | + unset CONDA_PREFIX uv venv - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi - name: Install maturin working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi uv pip install maturin - name: Build Python package (release mode) working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate - maturin develop --release + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi + maturin develop --release --target native - name: Install benchmark dependencies working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi uv pip install pytest pytest-benchmark - name: Install Rust target for benchmarks @@ -179,8 +226,13 @@ jobs: - name: Run benchmarks working-directory: crates/terraphim_automata_py + shell: bash run: | - source .venv/bin/activate + if [[ "$RUNNER_OS" == "Windows" ]]; then + source .venv/Scripts/activate + else + source .venv/bin/activate + fi pytest python/benchmarks/ -v --benchmark-only \ --benchmark-json=benchmark-results.json \ --benchmark-columns=min,max,mean,stddev,median,ops diff --git a/crates/terraphim_automata_py/python/benchmarks/benchmark_autocomplete.py b/crates/terraphim_automata_py/python/benchmarks/benchmark_autocomplete.py index c102eeac6..d9d5f0c34 100644 --- a/crates/terraphim_automata_py/python/benchmarks/benchmark_autocomplete.py +++ b/crates/terraphim_automata_py/python/benchmarks/benchmark_autocomplete.py @@ -3,7 +3,6 @@ import json import pytest - from terraphim_automata import build_index diff --git a/crates/terraphim_automata_py/python/benchmarks/benchmark_matcher.py b/crates/terraphim_automata_py/python/benchmarks/benchmark_matcher.py index 85f12bb71..81a8c0d6b 100644 --- a/crates/terraphim_automata_py/python/benchmarks/benchmark_matcher.py +++ b/crates/terraphim_automata_py/python/benchmarks/benchmark_matcher.py @@ -3,7 +3,6 @@ import json import pytest - from terraphim_automata import extract_paragraphs, find_all_matches, replace_with_links diff --git a/crates/terraphim_automata_py/python/tests/test_autocomplete.py b/crates/terraphim_automata_py/python/tests/test_autocomplete.py index 06e2cf503..06f48e29e 100644 --- a/crates/terraphim_automata_py/python/tests/test_autocomplete.py +++ b/crates/terraphim_automata_py/python/tests/test_autocomplete.py @@ -1,7 +1,6 @@ """Tests for autocomplete functionality""" import pytest - from terraphim_automata import build_index # Sample thesaurus for testing diff --git a/crates/terraphim_automata_py/python/tests/test_matcher.py b/crates/terraphim_automata_py/python/tests/test_matcher.py index 4861deea9..e6d9423c3 100644 --- a/crates/terraphim_automata_py/python/tests/test_matcher.py +++ b/crates/terraphim_automata_py/python/tests/test_matcher.py @@ -1,7 +1,6 @@ """Tests for text matching and replacement functionality""" import pytest - from terraphim_automata import extract_paragraphs, find_all_matches, replace_with_links # Sample thesaurus for testing diff --git a/crates/terraphim_automata_py/python/tests/test_thesaurus.py b/crates/terraphim_automata_py/python/tests/test_thesaurus.py index 037da4f88..3d6c41d46 100644 --- a/crates/terraphim_automata_py/python/tests/test_thesaurus.py +++ b/crates/terraphim_automata_py/python/tests/test_thesaurus.py @@ -1,7 +1,6 @@ """Tests for thesaurus loading functionality""" import pytest - from terraphim_automata import build_index, load_thesaurus From 219d65ed9aeb5498a62f3ec3856a054e30e85f1a Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Thu, 20 Nov 2025 14:57:41 +0000 Subject: [PATCH 2/3] fix: optimize GitHub Actions runner usage - Replace non-existent 'bigbox' label with correct Linux runner labels - Update workflows to use [self-hosted, linux, x64] for Linux jobs - Configure macOS workflows to use [self-hosted, macOS, X64] runner - Migrate workflows from ubuntu-latest to self-hosted runners where appropriate - Improve CI/CD efficiency by utilizing available self-hosted infrastructure Runners updated: - ci-native.yml, ci-optimized.yml, claude-code-review.yml - earthly-runner.yml, frontend-build.yml, tauri-build.yml - test-matrix.yml, vm-execution-tests.yml, python-bindings.yml - deploy-docs.yml, package-release.yml, docker-multiarch.yml - publish-tauri.yml, release-comprehensive.yml This ensures all workflows use the correct available runners: - Linux: terraphim-docker-runner (self-hosted, linux, x64) - macOS: Klarian-147 (self-hosted, macOS, X64) --- .github/workflows/ci-native.yml | 20 +++++++++---------- .github/workflows/ci-optimized.yml | 12 +++++------ .github/workflows/claude-code-review.yml | 2 +- .github/workflows/deploy-docs.yml | 8 ++++---- .github/workflows/docker-multiarch.yml | 4 ++-- .github/workflows/earthly-runner.yml | 14 ++++++------- .github/workflows/frontend-build.yml | 2 +- .github/workflows/package-release.yml | 2 +- .github/workflows/publish-tauri.yml | 2 +- .github/workflows/python-bindings.yml | 8 ++++---- .github/workflows/release-comprehensive.yml | 4 ++-- .github/workflows/tauri-build.yml | 4 ++-- .github/workflows/test-matrix.yml | 14 ++++++------- .github/workflows/test-on-pr-desktop.yml | 2 +- .github/workflows/vm-execution-tests.yml | 18 ++++++++--------- .../terraphim_mcp_server/test_mcp_protocol.py | 1 - demo_query_rs.py | 2 +- mcp_e2e_test.py | 5 ----- test_complete_mcp.py | 1 - test_echo_json.py | 1 - test_methods.py | 1 - test_rust_engineer_e2e.py | 2 -- 22 files changed, 59 insertions(+), 70 deletions(-) diff --git a/.github/workflows/ci-native.yml b/.github/workflows/ci-native.yml index 23c81a933..6e6a54ee0 100644 --- a/.github/workflows/ci-native.yml +++ b/.github/workflows/ci-native.yml @@ -19,7 +19,7 @@ concurrency: jobs: setup: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] outputs: cache-key: ${{ steps.cache.outputs.key }} ubuntu-versions: ${{ steps.ubuntu.outputs.versions }} @@ -55,7 +55,7 @@ jobs: fi lint-and-format: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup] timeout-minutes: 15 # Reduced timeout with faster runner @@ -103,7 +103,7 @@ jobs: build-rust: needs: [setup, build-frontend] - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] strategy: fail-fast: false matrix: @@ -257,7 +257,7 @@ jobs: cache-key: ${{ needs.setup.outputs.cache-key }} test-suite: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup, build-rust] steps: @@ -311,7 +311,7 @@ jobs: run: ./scripts/ci-check-tests.sh test-desktop: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup, build-frontend] if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'desktop') @@ -369,7 +369,7 @@ jobs: secrets: inherit # pragma: allowlist secret package-repository: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup, build-rust] if: github.event_name != 'pull_request' strategy: @@ -404,7 +404,7 @@ jobs: retention-days: 90 security-scan: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: build-docker if: github.event_name != 'pull_request' @@ -423,7 +423,7 @@ jobs: sarif_file: 'trivy-results.sarif' release: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [build-rust, build-docker, build-tauri, test-suite, security-scan] if: startsWith(github.ref, 'refs/tags/') @@ -497,7 +497,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} cleanup: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [build-rust, build-docker, build-tauri, test-suite] if: always() && github.event_name == 'pull_request' @@ -513,7 +513,7 @@ jobs: continue-on-error: true summary: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup, build-frontend, build-rust, build-docker, build-tauri, test-suite] if: always() diff --git a/.github/workflows/ci-optimized.yml b/.github/workflows/ci-optimized.yml index f18960e4a..31ea869ff 100644 --- a/.github/workflows/ci-optimized.yml +++ b/.github/workflows/ci-optimized.yml @@ -19,7 +19,7 @@ concurrency: jobs: setup: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] outputs: cache-key: ${{ steps.cache.outputs.key }} ubuntu-versions: ${{ steps.ubuntu.outputs.versions }} @@ -70,7 +70,7 @@ jobs: fi build-base-image: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: setup if: needs.setup.outputs.should-build == 'true' outputs: @@ -114,7 +114,7 @@ jobs: retention-days: 1 lint-and-format: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup, build-base-image] if: needs.setup.outputs.should-build == 'true' @@ -157,7 +157,7 @@ jobs: cache-key: ${{ needs.setup.outputs.cache-key }} build-rust: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup, build-base-image, build-frontend, lint-and-format] if: needs.setup.outputs.should-build == 'true' strategy: @@ -235,7 +235,7 @@ jobs: retention-days: 30 test: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [setup, build-base-image, build-rust] if: needs.setup.outputs.should-build == 'true' @@ -264,7 +264,7 @@ jobs: summary: needs: [lint-and-format, build-frontend, build-rust, test] if: always() - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] steps: - name: Check all jobs succeeded diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index cf246e709..7b11d7f64 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -18,7 +18,7 @@ jobs: # github.event.pull_request.user.login == 'new-developer' || # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] permissions: contents: read pull-requests: read diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 3fe235799..6554d45d9 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -35,7 +35,7 @@ env: jobs: build: name: Build Documentation - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -65,7 +65,7 @@ jobs: name: Deploy Preview needs: build if: github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'preview') - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] permissions: contents: read deployments: write @@ -126,7 +126,7 @@ jobs: name: Deploy Production needs: build if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'production') - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] permissions: contents: read deployments: write @@ -178,7 +178,7 @@ jobs: purge-cache: name: Purge CDN Cache needs: deploy-production - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] permissions: id-token: write steps: diff --git a/.github/workflows/docker-multiarch.yml b/.github/workflows/docker-multiarch.yml index 98b278664..72dd0327d 100644 --- a/.github/workflows/docker-multiarch.yml +++ b/.github/workflows/docker-multiarch.yml @@ -39,7 +39,7 @@ env: jobs: build-and-push: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] strategy: matrix: ubuntu-version: ${{ fromJSON(inputs.ubuntu-versions) }} @@ -138,7 +138,7 @@ jobs: build-summary: needs: build-and-push - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] if: always() steps: diff --git a/.github/workflows/earthly-runner.yml b/.github/workflows/earthly-runner.yml index aa8c3e9d3..be5af57ea 100644 --- a/.github/workflows/earthly-runner.yml +++ b/.github/workflows/earthly-runner.yml @@ -20,7 +20,7 @@ concurrency: jobs: setup: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] outputs: should-build: ${{ steps.changes.outputs.should-build }} @@ -49,7 +49,7 @@ jobs: lint-and-format: needs: setup if: needs.setup.outputs.should-build == 'true' - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] steps: - name: Checkout code @@ -66,7 +66,7 @@ jobs: build-frontend: needs: setup if: needs.setup.outputs.should-build == 'true' - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] steps: - name: Checkout code @@ -88,7 +88,7 @@ jobs: build-native: needs: [setup, lint-and-format, build-frontend] if: needs.setup.outputs.should-build == 'true' - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] steps: - name: Checkout code @@ -112,7 +112,7 @@ jobs: test: needs: [setup, build-native] if: needs.setup.outputs.should-build == 'true' - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] steps: - name: Checkout code @@ -128,7 +128,7 @@ jobs: build-cross: needs: [setup, build-native] if: needs.setup.outputs.should-build == 'true' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] strategy: fail-fast: false matrix: @@ -159,7 +159,7 @@ jobs: earthly-success: needs: [lint-and-format, build-frontend, build-native, test] if: always() - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] steps: - name: Check all jobs succeeded if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml index 7c72a6d89..cb2918723 100644 --- a/.github/workflows/frontend-build.yml +++ b/.github/workflows/frontend-build.yml @@ -19,7 +19,7 @@ on: jobs: build: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 20 # Reduced timeout with faster runner outputs: dist-path: ${{ steps.build.outputs.dist-path }} diff --git a/.github/workflows/package-release.yml b/.github/workflows/package-release.yml index bd0aebf1b..0a32e4ad0 100644 --- a/.github/workflows/package-release.yml +++ b/.github/workflows/package-release.yml @@ -11,7 +11,7 @@ permissions: jobs: release: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/publish-tauri.yml b/.github/workflows/publish-tauri.yml index 75f966431..f9102c838 100644 --- a/.github/workflows/publish-tauri.yml +++ b/.github/workflows/publish-tauri.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: include: - - platform: macos-latest + - platform: [self-hosted, macOS, X64] webkit-package: "" - platform: ubuntu-22.04 webkit-package: "libwebkit2gtk-4.0-dev" diff --git a/.github/workflows/python-bindings.yml b/.github/workflows/python-bindings.yml index 68ed41d0f..4c2bafbdf 100644 --- a/.github/workflows/python-bindings.yml +++ b/.github/workflows/python-bindings.yml @@ -25,7 +25,7 @@ env: jobs: lint: name: Lint Python Code - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v4 @@ -153,7 +153,7 @@ jobs: benchmark: name: Benchmark Performance - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v4 @@ -277,7 +277,7 @@ jobs: build-sdist: name: Build source distribution - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] if: github.event_name == 'release' steps: - uses: actions/checkout@v4 @@ -297,7 +297,7 @@ jobs: publish: name: Publish to PyPI - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] if: github.event_name == 'release' needs: [lint, test, build-wheels, build-sdist] environment: diff --git a/.github/workflows/release-comprehensive.yml b/.github/workflows/release-comprehensive.yml index bc659ac00..a4b9563a3 100644 --- a/.github/workflows/release-comprehensive.yml +++ b/.github/workflows/release-comprehensive.yml @@ -32,10 +32,10 @@ jobs: target: armv7-unknown-linux-musleabihf use_cross: true # macOS builds - - os: macos-latest + - os: [self-hosted, macOS, X64] target: x86_64-apple-darwin use_cross: false - - os: macos-latest + - os: [self-hosted, macOS, X64] target: aarch64-apple-darwin use_cross: false # Windows builds diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml index 02ecf2843..515ea2a04 100644 --- a/.github/workflows/tauri-build.yml +++ b/.github/workflows/tauri-build.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-20.04, windows-latest] + platform: [[self-hosted, macOS, X64], ubuntu-20.04, windows-latest] runs-on: ${{ matrix.platform }} outputs: @@ -123,7 +123,7 @@ jobs: retention-days: 7 summary: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: build-tauri if: always() diff --git a/.github/workflows/test-matrix.yml b/.github/workflows/test-matrix.yml index f3fd8c85e..bd3b11e90 100644 --- a/.github/workflows/test-matrix.yml +++ b/.github/workflows/test-matrix.yml @@ -7,7 +7,7 @@ on: jobs: setup: - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] outputs: rust-targets: ${{ steps.targets.outputs.targets }} ubuntu-versions: ${{ steps.ubuntu.outputs.versions }} @@ -25,7 +25,7 @@ jobs: test-matrix-basic: needs: setup - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] strategy: fail-fast: false matrix: @@ -41,7 +41,7 @@ jobs: test-matrix-with-container: needs: setup - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] strategy: fail-fast: false matrix: @@ -61,7 +61,7 @@ jobs: test-matrix-complex: needs: setup - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] strategy: fail-fast: false matrix: @@ -83,7 +83,7 @@ jobs: test-artifacts: needs: test-matrix-basic - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] strategy: matrix: ubuntu-version: ["22.04"] @@ -103,7 +103,7 @@ jobs: validate-artifacts: needs: test-artifacts - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] steps: - name: Download test artifacts @@ -122,7 +122,7 @@ jobs: summary: needs: [test-matrix-basic, test-matrix-with-container, test-matrix-complex, validate-artifacts] - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] if: always() steps: diff --git a/.github/workflows/test-on-pr-desktop.yml b/.github/workflows/test-on-pr-desktop.yml index 1172f2886..f3d5ac75c 100644 --- a/.github/workflows/test-on-pr-desktop.yml +++ b/.github/workflows/test-on-pr-desktop.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: include: - - platform: macos-latest + - platform: [self-hosted, macOS, X64] webkit-package: "" javascriptcore-package: "" - platform: ubuntu-22.04 diff --git a/.github/workflows/vm-execution-tests.yml b/.github/workflows/vm-execution-tests.yml index 622ee0993..eb0006291 100644 --- a/.github/workflows/vm-execution-tests.yml +++ b/.github/workflows/vm-execution-tests.yml @@ -29,7 +29,7 @@ env: jobs: unit-tests: name: Unit Tests - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 10 steps: @@ -91,7 +91,7 @@ jobs: integration-tests: name: Integration Tests - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 15 services: @@ -199,7 +199,7 @@ jobs: websocket-tests: name: WebSocket Tests - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 10 needs: integration-tests @@ -274,7 +274,7 @@ jobs: e2e-tests: name: End-to-End Tests - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 20 needs: [unit-tests, integration-tests] @@ -365,7 +365,7 @@ jobs: security-tests: name: Security Tests - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 15 steps: @@ -455,7 +455,7 @@ jobs: performance-tests: name: Performance Tests - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 10 steps: @@ -547,7 +547,7 @@ jobs: test-script: name: Test Runner Script - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 15 steps: @@ -591,7 +591,7 @@ jobs: coverage: name: Test Coverage - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] timeout-minutes: 30 if: github.event_name == 'push' && github.ref == 'refs/heads/main' @@ -700,7 +700,7 @@ jobs: summary: name: Test Summary - runs-on: [self-hosted, linux, bigbox] + runs-on: [self-hosted, linux, x64] needs: [unit-tests, integration-tests, websocket-tests, e2e-tests, security-tests, performance-tests] if: always() diff --git a/crates/terraphim_mcp_server/test_mcp_protocol.py b/crates/terraphim_mcp_server/test_mcp_protocol.py index 04bc63935..873112e58 100644 --- a/crates/terraphim_mcp_server/test_mcp_protocol.py +++ b/crates/terraphim_mcp_server/test_mcp_protocol.py @@ -6,7 +6,6 @@ import json import subprocess import time -import sys def send_mcp_message(message): """Send a message to the MCP server and return the response""" diff --git a/demo_query_rs.py b/demo_query_rs.py index 3b58078c1..ef615605e 100644 --- a/demo_query_rs.py +++ b/demo_query_rs.py @@ -59,7 +59,7 @@ def test_query_rs_endpoints(): results[f"{name} - {query}"] = "Timeout" except requests.exceptions.RequestException as e: print(f"❌ Network error: {e}") - results[f"{name} - {query}"] = f"Network error" + results[f"{name} - {query}"] = "Network error" except json.JSONDecodeError: print("❌ Invalid JSON response") results[f"{name} - {query}"] = "Invalid JSON" diff --git a/mcp_e2e_test.py b/mcp_e2e_test.py index aa44afa4d..c676a2cb9 100644 --- a/mcp_e2e_test.py +++ b/mcp_e2e_test.py @@ -1,12 +1,7 @@ import argparse import asyncio import logging -import os -import subprocess import sys -import time -import json -from typing import Optional import mcp from mcp import StdioServerParameters from mcp.client.stdio import stdio_client diff --git a/test_complete_mcp.py b/test_complete_mcp.py index 5dbcdd1cb..951f7de95 100644 --- a/test_complete_mcp.py +++ b/test_complete_mcp.py @@ -3,7 +3,6 @@ import asyncio import json import subprocess -import sys async def test_complete_mcp(): """Test complete MCP protocol communication""" diff --git a/test_echo_json.py b/test_echo_json.py index 893ba8b13..a0ee763f4 100644 --- a/test_echo_json.py +++ b/test_echo_json.py @@ -3,7 +3,6 @@ import asyncio import json import subprocess -import sys async def test_raw_jsonrpc(): """Test raw JSON-RPC communication with MCP server""" diff --git a/test_methods.py b/test_methods.py index 382e10f0e..53285cec6 100644 --- a/test_methods.py +++ b/test_methods.py @@ -3,7 +3,6 @@ import asyncio import json import subprocess -import sys async def test_server_methods(): """Test what methods the server supports""" diff --git a/test_rust_engineer_e2e.py b/test_rust_engineer_e2e.py index a4c1a2bbd..dcec5a794 100755 --- a/test_rust_engineer_e2e.py +++ b/test_rust_engineer_e2e.py @@ -8,11 +8,9 @@ """ import requests -import json import time import subprocess import sys -import os def print_success(message): print(f"✅ {message}") From a109773ac4c771d4c6c12815a4e24379b8ceb8af Mon Sep 17 00:00:00 2001 From: Dr Alexander Mikhalev Date: Thu, 20 Nov 2025 15:26:24 +0000 Subject: [PATCH 3/3] Fix maturin target usage in python bindings workflow --- .github/workflows/python-bindings.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-bindings.yml b/.github/workflows/python-bindings.yml index 4c2bafbdf..2e95611f5 100644 --- a/.github/workflows/python-bindings.yml +++ b/.github/workflows/python-bindings.yml @@ -117,7 +117,7 @@ jobs: else source .venv/bin/activate fi - maturin develop --target native + maturin develop - name: Install test dependencies working-directory: crates/terraphim_automata_py @@ -207,7 +207,7 @@ jobs: else source .venv/bin/activate fi - maturin develop --release --target native + maturin develop --release - name: Install benchmark dependencies working-directory: crates/terraphim_automata_py