Skip to content

Conversation

thephez
Copy link
Collaborator

@thephez thephez commented Sep 8, 2025

Issue being fixed or feature implemented

This PR fixes several tests that were failing due to recent changes and two CI/CD issues in the WASM SDK build workflow. The workflow was reporting success even when tests failed, and redundant cache save steps were causing warning messages during builds. It also switching wasm-opt back to latest (v124).

What was done?

  • Removed redundant cache save steps: Eliminated unnecessary actions/cache/save@v4 steps for protoc and wasm-opt that were causing "Path Validation Error" warnings (introduced in feat(sdk): epic: rs-sdk-ffi and ios support #2756)
  • Fixed test failure reporting: Added set -o pipefail to preserve exit codes when piping test output through tee, ensuring GitHub Actions properly fails when tests fail
  • Fixed child key derivation tests: Corrected test implementations for proper key derivation validation
  • Fixed contested resources test: Updated get_contested_resources test to handle expected responses correctly
  • Moved back to wasm-opt v124 to revert the change to v121 in feat(sdk): epic: rs-sdk-ffi and ios support #2756 that resulted in a large slowdown in build time

How Has This Been Tested?

Locally / CI

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains
    any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

  • Refactor

    • Simplified get_contested_resources API: removed two parameters — update integrations to the new 8-argument signature.
  • Tests

    • Added functional tests for child key derivation and xprv→xpub conversion; tightened error-message assertions.
    • CI test runs now fail reliably to surface issues (improved test invocation).
  • Chores

    • Removed obsolete CI cache-save steps for build tooling and adjusted caching flow.

Broken by a recent commit
Started failing once an implementation was available since the test expected it to be unimplemented.
Previously tests always indicated successful even if a test failed.
The redundant actions/cache/save@v4 steps for protoc and wasm-opt were causing "Path Validation Error" warnings when cache hits occurred. The actions/cache@v4 action automatically handles both restore and save operations, making the separate save steps unnecessary. Issue was introduced in #2756
@thephez thephez added this to the v2.1 milestone Sep 8, 2025
Copy link
Contributor

coderabbitai bot commented Sep 8, 2025

Walkthrough

Removed two cache-save steps from the wasm-sdk CI workflow, added pipefail to WASM SDK test runs, updated wasm-sdk tests to implement child-key derivation and xprv→xpub behavior checks, and changed the get_contested_resources test call to the new 8-argument signature.

Changes

Cohort / File(s) Summary
CI workflow
.github/workflows/wasm-sdk-build.yml
Removed post-download cache-save steps for protoc and wasm-opt; made Binaryen/wasm-opt install/cache version-driven (env vars for BINARYEN_VERSION, BINARYEN_ARCH, BINARYEN_SHA256, cache key/path, download URL, checksum verification); prepended set -o pipefail to WASM SDK test invocations.
WASM SDK tests — key generation
packages/wasm-sdk/test/key-generation.test.mjs
Replaced placeholder tests with functional tests: derive_child_public_key now derives child xpubs and asserts behavior across indices; xprv_to_xpub conversion test added; invalid-key paths now assert explicit error messages.
WASM SDK tests — voting contested resources
packages/wasm-sdk/test/voting-contested-resources.test.mjs
Updated test call to get_contested_resources to use the new 8-argument signature (removed result_type and allow_include_locked_and_abstaining_vote_tally, adjusted positional args).

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor GH as GitHub Actions
  participant CI as workflow job
  participant Cache as Cache
  participant DL as Binaryen Release
  participant Runner as Job Runner

  Note over GH,CI: Version-driven Binaryen/wasm-opt install & cache
  GH->>CI: start wasm-sdk build
  CI->>Cache: restore cache `binaryen/${BINARYEN_VERSION}/${{runner.os}}/${BINARYEN_ARCH}`
  alt cache miss
    CI->>DL: download binaryen-${BINARYEN_VERSION}-${BINARYEN_ARCH}-linux.tar.gz
    DL-->>CI: tarball
    CI->>CI: verify checksum (BINARYEN_SHA256)
    CI->>Runner: extract & rename to `${BINARYEN_VERSION}`
  end
  CI->>Runner: export PATH `${HOME}/.cache/binaryen/${BINARYEN_VERSION}/bin`
  CI->>Runner: run build & tests (with `set -o pipefail`)
Loading
sequenceDiagram
  autonumber
  actor TestRunner as Test Runner
  participant WasmSDK as Wasm SDK
  participant Node as Platform Node

  Note over TestRunner,WasmSDK: Updated get_contested_resources call (8 args)
  TestRunner->>WasmSDK: get_contested_resources(docType, contractId, indexName, startAt, limit, offset, orderAsc)
  WasmSDK->>Node: query contested resources
  Node-->>WasmSDK: results
  WasmSDK-->>TestRunner: contested resources list
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • QuantumExplorer
  • pauldelucia

Pre-merge checks (3 passed)

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly and accurately summarizes the primary purpose of the PR: fixing wasm-sdk CI/test failures and related build issues; it maps to the workflow changes (removing problematic cache-save steps and adding set -o pipefail), test updates (child key derivation and get_contested_resources), and the wasm-opt revert described in the PR. It is concise, relevant to the main changes, and clear enough for a teammate scanning history to understand the primary change.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Poem

A rabbit hops on keys tonight,
Tests awaken, code takes flight.
Fewer args, derived xpub song,
Binaryen hums the build along. 🐇

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e5f4e27 and 93e83fa.

📒 Files selected for processing (1)
  • .github/workflows/wasm-sdk-build.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: QuantumExplorer
PR: dashpay/platform#2673
File: packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/identity_update/mod.rs:1164-1197
Timestamp: 2025-06-18T03:44:14.385Z
Learning: QuantumExplorer determined that a CodeRabbit suggestion about fixing signable_bytes calculation in identity update tests with contract-bound keys was incorrect - the code flow is working as intended without the suggested changes.
Learnt from: QuantumExplorer
PR: dashpay/platform#2711
File: packages/wasm-sdk/index.html:4360-4416
Timestamp: 2025-07-28T20:04:48.458Z
Learning: In packages/wasm-sdk, the wallet helper `derive_key_from_seed_with_path` (Rust function in src/wallet/key_derivation.rs) is synchronous; its JS wrapper returns a value immediately, so `await` is unnecessary.
📚 Learning: 2025-09-07T22:18:50.883Z
Learnt from: CR
PR: dashpay/platform#0
File: CLAUDE.md:0-0
Timestamp: 2025-09-07T22:18:50.883Z
Learning: Applies to packages/wasm-sdk/** : Keep WASM SDK docs in sync (run generate_docs.py) when updating the WASM SDK

Applied to files:

  • .github/workflows/wasm-sdk-build.yml
📚 Learning: 2025-07-31T18:15:51.813Z
Learnt from: thephez
PR: dashpay/platform#2715
File: packages/wasm-sdk/test/ui-automation/run-ui-tests.sh:6-286
Timestamp: 2025-07-31T18:15:51.813Z
Learning: In packages/wasm-sdk/test/ui-automation/run-ui-tests.sh, the script doesn't require cleanup handling because it relies on Playwright's built-in webServer configuration to manage the HTTP server lifecycle automatically. The script only runs foreground processes through npm/Playwright commands.

Applied to files:

  • .github/workflows/wasm-sdk-build.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build JS packages / Build JS
  • GitHub Check: build-wasm-sdk
🔇 Additional comments (1)
.github/workflows/wasm-sdk-build.yml (1)

209-209: Good fix: preserve failing exit code when piping through tee

Using set -o pipefail ensures CI fails when tests fail, while still capturing logs. LGTM.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch wasm-sdk-test-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Reverts the downgrade to version 121 that was introduced in #2756.
The newer version 124 should have better optimization algorithms and
support more flags, reducing compatibility testing overhead and
improving build performance.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@thephez thephez changed the title fix(wasm-sdk): resolve CI test failures and build cache issues fix(wasm-sdk): resolve CI test failures and build issues Sep 8, 2025
@thephez thephez marked this pull request as ready for review September 8, 2025 16:48
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (5)
packages/wasm-sdk/test/key-generation.test.mjs (4)

364-379: Strengthen assertions and add hardened-derivation negative case.

Good functional coverage. Two small enhancements will harden the test:

  • Assert the serialized format prefix (xpub) to catch version/serialization regressions.
  • Add a test that hardened derivation from an xpub is rejected.

Apply this small inline assertion:

     if (!childXpub) throw new Error('No child xpub returned');
     if (typeof childXpub !== 'string') throw new Error('Child xpub should be string');
+    if (!childXpub.startsWith('xpub')) throw new Error(`Expected xpub prefix, got ${childXpub.slice(0,4)}`);
     if (childXpub === parentXpub) throw new Error('Child xpub should differ from parent');

Add this new negative test (outside this hunk, e.g., right after this test):

await test('derive_child_public_key - hardened index should error from xpub', () => {
  const master = wasmSdk.derive_key_from_seed_with_extended_path(TEST_MNEMONIC, null, "m/44'/5'/0'", "mainnet");
  try {
    wasmSdk.derive_child_public_key(master.xpub, 0, true);
    throw new Error('Should have thrown for hardened child from xpub');
  } catch (error) {
    const msg = String(error?.message || error);
    if (!/harden(ed)?|public.*cannot.*derive/i.test(msg)) throw error;
  }
});

Note: Using the synchronous wrapper aligns with prior guidance; no await needed here.


381-394: Also assert xpub prefix for the round-trip.

Validates serialization/version bytes, not just equality.

   if (!derivedXpub) throw new Error('No xpub returned');
   if (typeof derivedXpub !== 'string') throw new Error('Derived xpub should be string');
+  if (!derivedXpub.startsWith('xpub')) throw new Error(`Expected xpub prefix, got ${derivedXpub.slice(0,4)}`);
   if (derivedXpub !== expectedXpub) throw new Error('Derived xpub should match expected xpub');

395-404: Avoid brittle coupling to exact error strings.

Error messages can vary across versions/bindings. Prefer a tolerant regex or an error code if exposed.

-  } catch (error) {
-      if (!error.message.includes('Invalid extended public key')) {
-          throw error;
-      }
-  }
+  } catch (error) {
+    const msg = String(error?.message || error);
+    if (!/invalid.*extended.*public/i.test(msg)) {
+      throw error;
+    }
+  }

406-415: Same here: relax the error assertion for xprv_to_xpub.

Prevents false negatives on minor wording shifts.

-  } catch (error) {
-      if (!error.message.includes('Invalid extended private key')) {
-          throw error;
-      }
-  }
+  } catch (error) {
+    const msg = String(error?.message || error);
+    if (!/invalid.*extended.*private/i.test(msg)) {
+      throw error;
+    }
+  }
.github/workflows/wasm-sdk-build.yml (1)

106-121: Binaryen v124 bump looks consistent; consider parameterizing version/arch and adding checksum verification.

  • Consistent path/key/PATH updates to version_124 look correct.
  • Optional: reduce future churn by centralizing version/arch; add SHA256 verification for supply-chain hygiene.

Example minimal tweaks:

 jobs:
   build-wasm-sdk:
     runs-on: ubuntu-latest
+    env:
+      BINARYEN_VERSION: version_124
+      BINARYEN_ARCH: x86_64 # or use ${{ runner.arch == 'ARM64' && 'arm64' || 'x86_64' }}
@@
-        with:
-          path: ${{ env.HOME }}/.cache/binaryen/version_124
-          key: binaryen/version_124/${{ runner.os }}/x86_64
+        with:
+          path: ${{ env.HOME }}/.cache/binaryen/${{ env.BINARYEN_VERSION }}
+          key: binaryen/${{ env.BINARYEN_VERSION }}/${{ runner.os }}/${{ env.BINARYEN_ARCH }}
@@
-          curl -fsSL -o /tmp/binaryen.tar.gz \
-            "https://github.com/WebAssembly/binaryen/releases/download/version_124/binaryen-version_124-x86_64-linux.tar.gz"
+          curl -fsSL -o /tmp/binaryen.tar.gz \
+            "https://github.com/WebAssembly/binaryen/releases/download/${BINARYEN_VERSION}/binaryen-${BINARYEN_VERSION}-${BINARYEN_ARCH}-linux.tar.gz"
+          # Optional: verify checksum (replace EXPECTED_SHA256 with release value)
+          echo "EXPECTED_SHA256  /tmp/binaryen.tar.gz" | sha256sum -c -
@@
-          mv "${HOME}/.cache/binaryen/binaryen-version_124" "${HOME}/.cache/binaryen/version_124"
+          mv "${HOME}/.cache/binaryen/binaryen-${BINARYEN_VERSION}" "${HOME}/.cache/binaryen/${BINARYEN_VERSION}"
@@
-          echo "${HOME}/.cache/binaryen/version_124/bin" >> $GITHUB_PATH
+          echo "${HOME}/.cache/binaryen/${BINARYEN_VERSION}/bin" >> $GITHUB_PATH
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b521d53 and a1caf8e.

📒 Files selected for processing (3)
  • .github/workflows/wasm-sdk-build.yml (2 hunks)
  • packages/wasm-sdk/test/key-generation.test.mjs (1 hunks)
  • packages/wasm-sdk/test/voting-contested-resources.test.mjs (0 hunks)
💤 Files with no reviewable changes (1)
  • packages/wasm-sdk/test/voting-contested-resources.test.mjs
🧰 Additional context used
📓 Path-based instructions (2)
packages/wasm-sdk/**

📄 CodeRabbit inference engine (CLAUDE.md)

Keep WASM SDK docs in sync (run generate_docs.py) when updating the WASM SDK

Files:

  • packages/wasm-sdk/test/key-generation.test.mjs
packages/**

📄 CodeRabbit inference engine (AGENTS.md)

Place all source packages under packages/* (JS/TS packages and Rust crates)

Files:

  • packages/wasm-sdk/test/key-generation.test.mjs
🧠 Learnings (4)
📚 Learning: 2025-07-28T20:00:24.323Z
Learnt from: QuantumExplorer
PR: dashpay/platform#2711
File: packages/wasm-sdk/docs.html:2359-2383
Timestamp: 2025-07-28T20:00:24.323Z
Learning: In packages/wasm-sdk/docs.html, QuantumExplorer confirmed that placeholder private keys in documentation examples are acceptable as they are not real keys, though field name accuracy for the SDK API should still be maintained.

Applied to files:

  • packages/wasm-sdk/test/key-generation.test.mjs
📚 Learning: 2025-07-28T20:04:48.458Z
Learnt from: QuantumExplorer
PR: dashpay/platform#2711
File: packages/wasm-sdk/index.html:4360-4416
Timestamp: 2025-07-28T20:04:48.458Z
Learning: In packages/wasm-sdk, the wallet helper `derive_key_from_seed_with_path` (Rust function in src/wallet/key_derivation.rs) is synchronous; its JS wrapper returns a value immediately, so `await` is unnecessary.

Applied to files:

  • packages/wasm-sdk/test/key-generation.test.mjs
📚 Learning: 2025-09-07T22:18:50.851Z
Learnt from: CR
PR: dashpay/platform#0
File: CLAUDE.md:0-0
Timestamp: 2025-09-07T22:18:50.851Z
Learning: Applies to packages/wasm-sdk/** : Keep WASM SDK docs in sync (run generate_docs.py) when updating the WASM SDK

Applied to files:

  • .github/workflows/wasm-sdk-build.yml
📚 Learning: 2025-07-31T18:15:51.813Z
Learnt from: thephez
PR: dashpay/platform#2715
File: packages/wasm-sdk/test/ui-automation/run-ui-tests.sh:6-286
Timestamp: 2025-07-31T18:15:51.813Z
Learning: In packages/wasm-sdk/test/ui-automation/run-ui-tests.sh, the script doesn't require cleanup handling because it relies on Playwright's built-in webServer configuration to manage the HTTP server lifecycle automatically. The script only runs foreground processes through npm/Playwright commands.

Applied to files:

  • .github/workflows/wasm-sdk-build.yml
🧬 Code graph analysis (1)
packages/wasm-sdk/test/key-generation.test.mjs (2)
packages/wasm-sdk/test/dashpay-contact-keys.test.mjs (2)
  • test (48-57)
  • wasmSdk (22-22)
packages/wasm-sdk/test/state-transitions.test.mjs (1)
  • TEST_MNEMONIC (59-59)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build JS packages / Build JS
🔇 Additional comments (2)
packages/wasm-sdk/test/key-generation.test.mjs (1)

361-363: Nice, focused section for child key derivation.

Clear separation improves readability and future maintenance.

.github/workflows/wasm-sdk-build.yml (1)

209-209: Good: pipefail ensures CI fails on failing tests even with tee.

This directly addresses the false-green behavior.

Replaces hardcoded Binaryen configuration with environment variables for
better maintainability. Adds SHA256 checksum verification for security.
Now version updates only require changing values at the job level.

- Add BINARYEN_VERSION, BINARYEN_ARCH, and BINARYEN_SHA256 env vars
- Update all references to use environment variables
- Add checksum verification before extraction

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
.github/workflows/wasm-sdk-build.yml (4)

42-45: Binaryen pin + checksum looks good; consider minor portability/traceability tweaks.

  • Add BINARYEN_OS to avoid hardcoding "-linux" in URLs if this job ever runs on macOS/Windows.
  • Add a brief comment noting the origin of BINARYEN_SHA256 (how it was generated).

Using BINARYEN_OS:

 env:
   BINARYEN_VERSION: version_124
   BINARYEN_ARCH: x86_64
   BINARYEN_SHA256: 0290c3779fedf592b8da0ded3032ff55c41a2b7bfa2d6bf7b7bac6f0e6e28963
+  BINARYEN_OS: linux  # asset suffix; keeps URL portable if we matrix OS later

And URL change shown below in Lines 119-123 comment.

Note: Per team learnings, if any SDK-facing flags/APIs changed as part of these updates, sync WASM SDK docs (generate_docs.py). I can help verify.


110-112: Cache key/path align with versioning; optional cache-bust by checksum.

Append the SHA to the cache key to avoid serving a corrupted cache if the upstream asset is ever re-published under the same tag.

-          key: binaryen/${{ env.BINARYEN_VERSION }}/${{ runner.os }}/${{ env.BINARYEN_ARCH }}
+          key: binaryen/${{ env.BINARYEN_VERSION }}/${{ runner.os }}/${{ env.BINARYEN_ARCH }}/${{ env.BINARYEN_SHA256 }}

119-123: Harden download/extract: retries + optional cleanup; make URL OS-parameterized.

  • Add curl retries to reduce flaky network failures.
  • Parameterize OS suffix.
  • Remove tarball after extraction.
-          curl -fsSL -o /tmp/binaryen.tar.gz \
-            "https://github.com/WebAssembly/binaryen/releases/download/${BINARYEN_VERSION}/binaryen-${BINARYEN_VERSION}-${BINARYEN_ARCH}-linux.tar.gz"
+          curl -fsSL --retry 3 --retry-delay 2 -o /tmp/binaryen.tar.gz \
+            "https://github.com/WebAssembly/binaryen/releases/download/${BINARYEN_VERSION}/binaryen-${BINARYEN_VERSION}-${BINARYEN_ARCH}-${BINARYEN_OS}.tar.gz"
           # Verify checksum for security
           echo "${BINARYEN_SHA256}  /tmp/binaryen.tar.gz" | sha256sum -c -
           tar -xzf /tmp/binaryen.tar.gz -C "${HOME}/.cache/binaryen"
           mv "${HOME}/.cache/binaryen/binaryen-${BINARYEN_VERSION}" "${HOME}/.cache/binaryen/${BINARYEN_VERSION}"
+          rm -f /tmp/binaryen.tar.gz

215-215: pipefail ensures CI fails on test failures; consider stricter shell options.

Use -euo pipefail so unset vars also fail fast.

-          set -o pipefail && node test/run-all-tests.mjs | tee test-output.log
+          set -euo pipefail
+          node test/run-all-tests.mjs | tee test-output.log

Optionally cache npm deps to speed repeats:

- uses: actions/setup-node@v4
  with:
    node-version: '20'
+   cache: 'npm'
+   cache-dependency-path: packages/wasm-sdk/test/package-lock.json
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a1caf8e and e5f4e27.

📒 Files selected for processing (1)
  • .github/workflows/wasm-sdk-build.yml (3 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-09-07T22:18:50.851Z
Learnt from: CR
PR: dashpay/platform#0
File: CLAUDE.md:0-0
Timestamp: 2025-09-07T22:18:50.851Z
Learning: Applies to packages/wasm-sdk/** : Keep WASM SDK docs in sync (run generate_docs.py) when updating the WASM SDK

Applied to files:

  • .github/workflows/wasm-sdk-build.yml
📚 Learning: 2025-07-31T18:15:51.813Z
Learnt from: thephez
PR: dashpay/platform#2715
File: packages/wasm-sdk/test/ui-automation/run-ui-tests.sh:6-286
Timestamp: 2025-07-31T18:15:51.813Z
Learning: In packages/wasm-sdk/test/ui-automation/run-ui-tests.sh, the script doesn't require cleanup handling because it relies on Playwright's built-in webServer configuration to manage the HTTP server lifecycle automatically. The script only runs foreground processes through npm/Playwright commands.

Applied to files:

  • .github/workflows/wasm-sdk-build.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build JS packages / Build JS
  • GitHub Check: build-wasm-sdk
🔇 Additional comments (1)
.github/workflows/wasm-sdk-build.yml (1)

127-127: PATH export is correct and scoped for subsequent steps.

No issues.

@thephez
Copy link
Collaborator Author

thephez commented Sep 9, 2025

@QuantumExplorer would you prefer I revert the workflow changes and just leave the test fixes in this or is it ok as-is?

@thephez
Copy link
Collaborator Author

thephez commented Sep 11, 2025

Reverted the CI commits that weren't strictly necessary to minimize changes in the PR.

@QuantumExplorer
Copy link
Member

@shumkov could you review this one.

Copy link
Collaborator

@shumkov shumkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shumkov shumkov merged commit 63c1064 into v2.1-dev Sep 13, 2025
18 checks passed
@shumkov shumkov deleted the wasm-sdk-test-fixes branch September 13, 2025 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants