From 161d4ef91809f6588129a136138036e6db65764a Mon Sep 17 00:00:00 2001 From: aliowka Date: Wed, 17 Jun 2026 01:28:17 +0300 Subject: [PATCH] feat: introduce delta testing mechanism with benchmark reporting and workflow updates --- .github/workflows/deltatest.yml | 12 ++++++------ .github/workflows/tests-ubuntu.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deltatest.yml b/.github/workflows/deltatest.yml index 60a1f752f..ad3c38dcc 100644 --- a/.github/workflows/deltatest.yml +++ b/.github/workflows/deltatest.yml @@ -78,15 +78,15 @@ jobs: run: pip install deltatest-cli # Write config.toml so Delta connects to the remote mapping DB. - # Without repo_id, Delta falls back to building a local mapping from scratch. - # NOTE: heredocs inside YAML `run:` blocks indent the content with spaces, - # producing invalid TOML. Use explicit echo statements instead. + # IMPORTANT: Delta reads from ~/.delta/config.toml (Path.home()/'.delta'), + # NOT from the repo-local .delta/ directory. Writing to the wrong path + # causes Delta to fall back to local-init mode (4131 unmapped tests). - name: Configure Delta Cloud env: DELTA_API_KEY: ${{ secrets.DELTA_API_KEY }} DELTA_REPO_ID: ${{ secrets.DELTA_REPO_ID }} run: | - mkdir -p .delta + mkdir -p ~/.delta { echo '[cloud]' echo "api_key = \"${DELTA_API_KEY}\"" @@ -94,9 +94,9 @@ jobs: echo "repo_id = \"${DELTA_REPO_ID}\"" echo 'branch = "master"' echo 'test_dir = "tests"' - } > .delta/config.toml + } > ~/.delta/config.toml # Verify structure (values masked) - sed 's/= ".*"/= "***"/' .delta/config.toml + sed 's/= ".*"/= "***"/' ~/.delta/config.toml # ── Run only tests affected by this diff ───────────────────────────── - name: Run Delta (affected tests only) diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml index 55d93d06c..03095a7fa 100644 --- a/.github/workflows/tests-ubuntu.yml +++ b/.github/workflows/tests-ubuntu.yml @@ -72,15 +72,15 @@ jobs: run: pip install deltatest-cli # Write config.toml so Delta connects to the remote mapping DB. - # Without repo_id, Delta falls back to building a local mapping from scratch. - # NOTE: heredocs inside YAML `run:` blocks indent the content with spaces, - # producing invalid TOML. Use explicit echo statements instead. + # IMPORTANT: Delta reads from ~/.delta/config.toml (Path.home()/'.delta'), + # NOT from the repo-local .delta/ directory. Writing to the wrong path + # causes Delta to fall back to local-init mode (4131 unmapped tests). - name: Configure Delta Cloud env: DELTA_API_KEY: ${{ secrets.DELTA_API_KEY }} DELTA_REPO_ID: ${{ secrets.DELTA_REPO_ID }} run: | - mkdir -p .delta + mkdir -p ~/.delta { echo '[cloud]' echo "api_key = \"${DELTA_API_KEY}\"" @@ -88,9 +88,9 @@ jobs: echo "repo_id = \"${DELTA_REPO_ID}\"" echo 'branch = "master"' echo 'test_dir = "tests"' - } > .delta/config.toml + } > ~/.delta/config.toml # Verify structure (values masked) - sed 's/= ".*"/= "***"/' .delta/config.toml + sed 's/= ".*"/= "***"/' ~/.delta/config.toml - name: Run Delta (affected tests only) run: |