-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: produce screenshots data always #623
fix: produce screenshots data always #623
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if the comment is added, that's a critical comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not LGTM unfortunately. No screenshots for me:
andrewvc@LAPTOP-BSF625CT ~/projects/synthetics (produce-screeshots)
❯ cat inline.ts | elastic-synthetics --rich-events --inline --screenshots=on | jq .type | uniq
"synthetics/metadata"
"journey/start"
"step/metrics"
"step/end"
"journey/network_info"
"journey/end"
andrewvc@LAPTOP-BSF625CT ~/projects/synthetics (produce-screeshots)
❯
where the journey is:
step('Go to https://www.elastic.co/', async () => {
await page.goto('https://www.elastic.co/');
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending that comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Seeing screenshots.
cat inline.ts | elastic-synthetics --rich-events --inline --screenshots=on | jq .type | uniq
"synthetics/metadata"
"journey/start"
"step/metrics"
"step/end"
"screenshot/block"
"step/screenshot_ref"
"journey/network_info"
"journey/end"
dominiqueclarke@DominiquesMBP2 synthetics % cat inline.ts | dist/cli.js --rich-events --inline --screenshots=on | jq .type | uniq
"synthetics/metadata"
"journey/start"
"step/metrics"
"step/end"
"screenshot/block"
"step/screenshot_ref"
"journey/network_info"
"journey/end"
sharp@0.31.1
, we started to get errors when extracting data from the main screenshots. Original issue here - Got error "extract_area: bad extract area" when usingrotate()
when using 0.31.0 lovell/sharp#3352^0.31.0
, as the patch versionv0.31.0
would get automatically installed whenever users install or update the synthetics agent. This is the way NPM installation works.lock files
, which was using thesharp@v0.31.0
which did not have the problem.v0.1.0-beta.36
is unable to produce screenshots as the agent was not writing them correctly.Testing
inline.ts
with the below journeycat inline.ts | node dist/cli.js --inline --rich-events | jq .type | uniq
to check if you are getting the new screenshots data.npm i -g .
and check if you can see the data in Kibana by running an inline Heartbeat monitor.reporters/json.ts
and keep the same sharp versionv0.31.1
, rebuild the agentnpm run build
.