Skip to content

[Sync] Update project files from source repository (6729fb6) - #365

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260928-023805-6729fb6
Sep 28, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260928-023805-6729fb6

Conversation

@mrz1836

@mrz1836 mrz1836 commented Sep 28, 2026

Copy link
Copy Markdown
Member

What Changed

  • Added a new t3.json configuration file defining 11 script commands for common development tasks (formatting, linting, testing, building, dependency management, and versioning)
  • Modified .github/workflows/fortress-benchmarks.yml to redirect Go's build/link temporary directory from the tmpfs /tmp to the root disk on Linux runners
  • Added a new workflow step "📁 Redirect Go build temp to root disk" that creates ${RUNNER_TEMP}/gotmp and sets GOTMPDIR and TMPDIR environment variables to point to it
  • Included inline documentation explaining that ubuntu-26.04 runners have a small RAM-backed tmpfs that overflows when linking large cgo/sqlite binaries during benchmark test compilation

Why It Was Necessary

  • The t3.json file standardizes development workflow commands with a consistent schema-based configuration for tooling integration
  • The benchmark workflow was experiencing "No space left on device" / "disk quota exceeded" errors when the Go linker attempted to build large test binaries (cmd/functions/*, app/testfactory) on runners with limited tmpfs space
  • Moving the Go build temporary directory to the root disk (which has tens of GB free) resolves spurious "[build failed]" results in benchmark runs without changing the build cache location

Testing Performed

  • The t3.json schema is validated against https://t3.codes/schema/t3.json and includes standard magex commands used throughout the project
  • The workflow change targets only Linux runners (if: runner.os == 'Linux') to avoid affecting other OS environments
  • The modification includes disk space reporting (df -h / /tmp) for diagnostics to verify the temporary directory is properly redirected

Impact / Risk

  • Low Risk: The t3.json file is a new additive configuration that doesn't modify existing build or deployment processes
  • Benchmark Reliability: The workflow change prevents disk space failures during benchmark runs, ensuring all packages are tested rather than failing mid-run
  • Performance: No negative impact expected—the root disk already hosts the Go build cache, and the temporary directory redirection is instantaneous

Copilot AI lite review requested due to automatic review settings September 28, 2026 02:38
@mrz1836 mrz1836 self-assigned this Sep 28, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Sep 28, 2026
@github-actions github-actions Bot added update General updates size/M Medium change (51-200 lines) labels Sep 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The version-bump command has branch-reference and Windows shell compatibility issues.

Review effort: Lite
Findings: None

What changed in this PR

Adds standardized development commands and redirects Linux Go build temporary files to runner disk space.

Changes:

  • Added 11 development and release commands in t3.json.
  • Updated benchmark workflow with Linux-only GOTMPDIR/TMPDIR redirection and diagnostics.
File Summary
t3.json Adds common development workflow scripts.
.github/​workflows/​fortress-benchmarks.yml Prevents benchmark failures caused by limited /tmp space.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mrz1836
mrz1836 merged commit a6ea463 into master Sep 28, 2026
25 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20260928-023805-6729fb6 branch September 28, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/M Medium change (51-200 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants