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

facebookincubator / TTPForge / 19439912089
50%
main: 67%

Build:
Build:
LAST BUILD BRANCH: export-D89671295
DEFAULT BRANCH: main
Ran 17 Nov 2025 06:16PM UTC
Jobs 1
Files 72
Run time 60min
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

17 Nov 2025 06:12PM UTC coverage: 53.105%. First build
19439912089

Pull #574

github

meta-codesync[bot]
Add ttpforge validate command (#574)

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

Implemented a new `validate` command for TTPForge that performs comprehensive static analysis and validation of TTP YAML files. This command helps ensure TTPs are correctly structured before execution.

The validator performs multiple types of checks:
- Structural validation (required fields, data types, YAML syntax)
- Preamble field validation (api_version, uuid, name)
- Step action validation (ensures required fields for each action type)
- Template variable detection and handling
- Integration with blocks package for runtime validation

The command supports single-file validation, with colored output for errors (red), warnings (yellow), and informational messages (blue). Template-based TTPs are handled gracefully with appropriate warnings when full validation requires runtime arguments.

Reviewed By: d0n601

Differential Revision: D85961391
Pull Request #574: Add ttpforge validate command

22 of 818 new or added lines in 27 files covered. (2.69%)

2155 of 4058 relevant lines covered (53.1%)

14.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
0.0
pkg/validation/steps/cd.go
6
0.0
pkg/validation/steps/file.go
6
0.0
pkg/validation/steps/inline.go
6
0.0
pkg/validation/steps/print_str.go
6
0.0
pkg/validation/steps/remove_path.go
6
0.0
pkg/validation/steps/ttp.go
8
80.0
pkg/args/spec.go
15
0.0
pkg/validation/steps/copy_path.go
15
0.0
pkg/validation/steps/create_file.go
15
0.0
pkg/validation/steps/edit_file.go
15
0.0
pkg/validation/steps/fetch_uri.go
15
0.0
pkg/validation/steps/kill_process.go
26
0.0
pkg/validation/required_fields.go
28
0.0
pkg/validation/steps/cleanup.go
31
0.0
pkg/validation/requirements.go
33
0.0
pkg/validation/steps/http_request.go
39
0.0
pkg/validation/structure.go
42
0.0
pkg/validation/steps/expect.go
49
0.0
pkg/validation/args.go
51
0.0
pkg/validation/templates.go
56
0.0
pkg/validation/preamble.go
63
0.0
pkg/validation/steps/common.go
75
0.0
pkg/validation/validator.go
77
0.0
pkg/validation/integration.go
107
0.0
pkg/validation/steps/validator.go
Jobs
ID Job ID Ran Files Coverage
1 19439912089.1 17 Nov 2025 06:16PM UTC 72
53.1
GitHub Action Run
Source Files on build 19439912089
  • Tree
  • List 72
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #574
  • 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