• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facebookincubator / TTPForge / 36603140004
53%
main: 67%

Build:
Build:
LAST BUILD BRANCH: export-D120420789
DEFAULT BRANCH: main
Ran 29 Sep 2026 05:12PM UTC
Jobs 1
Files 88
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Sep 2026 05:09PM UTC coverage: 52.546%. First build
36603140004

Pull #643

github

meta-codesync[bot]
Forward named environment variables to remote steps (#643)

Summary:
Pull Request resolved: https://github.com/facebookincubator/TTPForge/pull/643

## Context
- Remote commands do not inherit the runner's environment. Callers need to forward selected values, such as run identifiers, across SSH without editing each TTP.
- Forwarding is requested through a CLI flag so an older binary rejects unsupported usage before executing the TTP.
- GitHub CI exposed an existing Go version mismatch: `new("baz")` in `pkg/args/choices_test.go` requires Go 1.26, while the module selected Go 1.25.5.
## This Diff
- Add repeatable `--forward-env NAME` for remote `inline:` and `file:` commands.
- Trim and deduplicate names in argument order. Require nonempty names to match `[A-Za-z_][A-Za-z0-9_]*`; reject invalid names before remote command dispatch, even if unset. Skip unset variables and preserve set-but-empty values.
- Pass forwarded values literally, including `$forge.` references. Continue expanding TTP-level and step-level `env`, with forwarded < TTP < step precedence.
- Document the CLI interface, version requirement, validation, and precedence in the remote execution guide and schema reference.
- Cover forwarding and precedence with 14 authenticated loopback SSH cases, 12 invalid-name helper cases, and 6 executor rejection cases across POSIX, PowerShell, and cmd configurations.
- Set the module minimum to Go 1.26.0 and select Go 1.26.5. Have GitHub pre-commit derive its Go version from `go.mod`.

Reviewed By: d0n601

Differential Revision: D120420789
Pull Request #643: Forward named environment variables to remote steps (#643)

26 of 27 new or added lines in 3 files covered. (96.3%)

3271 of 6225 relevant lines covered (52.55%)

15.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
61.25
pkg/blocks/executor.go
Jobs
ID Job ID Ran Files Coverage
1 36603140004.1 29 Sep 2026 05:12PM UTC 88
52.55
GitHub Action Run
Source Files on build 36603140004
  • Tree
  • List 88
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #643
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc