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

facebookincubator / TTPForge / 24349827242
56%
main: 67%

Build:
Build:
LAST BUILD BRANCH: export-D106692973
DEFAULT BRANCH: main
Ran 13 Apr 2026 02:47PM UTC
Jobs 1
Files 79
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

13 Apr 2026 02:46PM UTC coverage: 55.634%. First build
24349827242

Pull #613

github

facebook-github-bot
Wire up TTP-level env to inject into all steps

Summary:
The TTP struct had an `env` field (`Environment map[string]string`) that was
parsed from YAML but never actually used during execution — it was dead code.

This change wires it up so that TTP-level environment variables are injected
into every step's execution environment. The merge order is:

- Local execution: os.Environ() → TTP env → step env (last wins)
- Remote execution: TTP env → step env (no os.Environ inheritance)
- Expect steps: TTP env set first, then step env overrides

This also fixes an existing env ordering bug where step-level env vars were
prepended before os.Environ(), causing inherited vars to silently override
user-specified ones (Go's exec.Cmd.Env uses last-wins semantics).

Example usage:
```yaml
env:
  API_ENDPOINT: "https://internal.corp/api"
  TEAM: "purple"
steps:
  - name: step1
    inline: curl $API_ENDPOINT/health
  - name: step2
    inline: curl $API_ENDPOINT/execute
```

Reviewed By: d0n601

Differential Revision: D100214957
Pull Request #613: Wire up TTP-level env to inject into all steps

8 of 20 new or added lines in 3 files covered. (40.0%)

3150 of 5662 relevant lines covered (55.63%)

14.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
52.67
pkg/blocks/executor.go
5
61.29
pkg/blocks/expectstep.go
2
49.51
pkg/blocks/ttps.go
Jobs
ID Job ID Ran Files Coverage
1 24349827242.1 13 Apr 2026 02:47PM UTC 79
55.63
GitHub Action Run
Source Files on build 24349827242
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #613
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc