Skip to content

fix: CI matchstick compatibility (ubuntu-22.04 + graph-cli 0.98.1)#2

Merged
MoonBoi9001 merged 1 commit intomainfrom
fix/ci-matchstick-platform
Mar 13, 2026
Merged

fix: CI matchstick compatibility (ubuntu-22.04 + graph-cli 0.98.1)#2
MoonBoi9001 merged 1 commit intomainfrom
fix/ci-matchstick-platform

Conversation

@MoonBoi9001
Copy link
Copy Markdown
Member

@MoonBoi9001 MoonBoi9001 commented Mar 13, 2026

Motivation

CI was failing in three cascading ways:

  1. graph-cli 0.93.3's getPlatform() didn't recognise Ubuntu 24's version string (Unsupported platform: Linux x64 24)
  2. After pinning to ubuntu-24.04 explicitly, same error — the issue is in graph-cli, not the runner label
  3. After pinning to ubuntu-22.04, matchstick binary downloaded but graph-cli 0.93.3 tried to untar a raw binary (TAR_BAD_ARCHIVE)
  4. After upgrading graph-cli to 0.98.1, the "handles multiple events" test failed because newMockEvent() defaults logIndex to 1 and the test was setting it to 1 (no-op), causing entity ID collision

Summary

  • Pin CI runner to ubuntu-22.04 for matchstick binary compatibility
  • Upgrade @graphprotocol/graph-cli from 0.93.3 to 0.98.1 (fixes binary extraction)
  • Fix test: use distinct transaction hashes instead of logIndex for unique entity IDs

Generated with Claude Code

@MoonBoi9001 MoonBoi9001 force-pushed the fix/ci-matchstick-platform branch 2 times, most recently from 58de87b to f1aed07 Compare March 13, 2026 22:39
- Pin runner to ubuntu-22.04 (graph-cli getPlatform() doesn't recognise Ubuntu 24)
- Upgrade graph-cli to 0.98.1 (0.93.3 tried to untar raw matchstick binary)
- Fix "handles multiple events" test: use distinct tx hashes instead of
  logIndex to produce different entity IDs (newMockEvent() defaults
  logIndex to 1, so setting it to 1 was a no-op)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MoonBoi9001 MoonBoi9001 force-pushed the fix/ci-matchstick-platform branch from f1aed07 to 62f44f5 Compare March 13, 2026 22:41
@MoonBoi9001 MoonBoi9001 changed the title fix: pin CI runner to ubuntu-24.04 for matchstick compatibility fix: CI matchstick compatibility (ubuntu-22.04 + graph-cli 0.98.1) Mar 13, 2026
@MoonBoi9001 MoonBoi9001 merged commit 22cfaf2 into main Mar 13, 2026
1 check passed
@MoonBoi9001 MoonBoi9001 deleted the fix/ci-matchstick-platform branch March 13, 2026 22:43
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.

1 participant