ampproject / ampproject/amppackager

Make a CLI tool for diagnosing payload errors

Open
#290 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
141
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Tool would take AMPHTML on stdin, run parse-n-print (`Process` with no transformers) twice in series, and then return nonzero status if `PnP(doc) != PnP(PnP(doc))`. Optionally, output some sort of human-readable diff.

Contributor guide

Open the contributing guide

Research direction

Start by locating the parse-n-print implementation and the Process entry point, including how AMPHTML input is read and status codes are returned. Verify the tool runs the no-transformer process twice in series, compares the first and second results, returns nonzero on a mismatch, and determine the scope of any human-readable diff.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.