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

facebookincubator / TTPForge / 10422202615
64%
main: 67%

Build:
Build:
LAST BUILD BRANCH: export-D89671295
DEFAULT BRANCH: main
Ran 16 Aug 2024 03:15PM UTC
Jobs 1
Files 57
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

16 Aug 2024 03:13PM UTC coverage: 63.659%. First build
10422202615

Pull #509

github

facebook-github-bot
Use temp file to process powershell nested scripts as TTP steps (#509)

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

## Problem scope
Let's test with the following simple powershell script
```
% cat nested.ps
echo "start"
if ($true) {
  echo "nested"
}
echo "stop"
```

Here is results of running this script differently
```
% pwsh -File nested.ps
start
nested
stop
% pwsh nested.ps
start
nested
stop
% cat nested.ps | pwsh -File -
PS /data/users/nesusvet/fbsource/fbcode> echo "start"
start
PS /data/users/nesusvet/fbsource/fbcode> if ($true) {
>>   echo "nested"
>> }
>> echo "stop"
>> %
% cat nested.ps | pwsh -Command -
start
```

## Proposal
We might rely on a new temp file to hold the body of TTP step to pass it to PowerShell as only argument.  This produces the best results.

## Limitations
Runtime environment where standard golang library call to `os.CreateTemp` fails or the file created is not writable.

Resolves https://github.com/facebookincubator/TTPForge/issues/481

Differential Revision: D61387125
Pull Request #509: Use temp file to process powershell nested scripts as TTP steps

36 of 57 new or added lines in 2 files covered. (63.16%)

1792 of 2815 relevant lines covered (63.66%)

13.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10422202615.1 16 Aug 2024 03:15PM UTC 0
63.66
GitHub Action Run
Source Files on build 10422202615
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #509
  • 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