Open abdonrd opened 7 years ago
Good call. Want to send a PR?
@ebidel btw, what's the retention policy for these reports ? how long are they going to be available ?
There's no guarantees on uptime, retention, or reports being available, long-term. I suggest running your own setup if that's something important to you :)
Is there any progress on this?
@ebidel I'm interested in making a PR for this, but I'd love some insights :slightly_smiling_face:
So we can generate the html file by passing output: html
:
curl -X POST \
-H "Content-Type: application/json" \
-H "X-API-KEY: [secret]" \
--data '{"output": "html", "url": "https://developers.google.com/web/tools/lighthouse/"}' \
https://builder-dot-lighthouse-ci.appspot.com/ci
One thing we could do is add a flag in the request to /ci
that would only send back the generated fileName
(timestamp-based) so we can add the URL to the comment.
This can be done in runLH
:
https://github.com/GoogleChromeLabs/lighthousebot/blob/7f87bcaeb221009354d90ab706379ed21eed0d39/builder/server.js#L41
Hey @robinmetral @balazsorban44 @abdonrd ✋
lighthouse-keeper uploads not only full html reports but also keeps track of how metrics change between PR. You should check it out!
@krzkaczor thanks, I'll take a look! :smiley:
It would be great if the bot comment had a link to the report.
From:
To: