-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Add protocols related metrics #816
Conversation
@gmetais , thanks for this PR. We can try testing it using nginx and a custom SSL certificate. |
@gmetais, please run |
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.
Let's discuss how to test these new metrics.
I thought I would manage to open an SSL port on nginx with a self-signed certificate, but I can't make it work. Any idea why? |
test/nginx-docker-compose.yaml
Outdated
@@ -6,7 +6,10 @@ services: | |||
image: macbre/nginx-brotli:1.19.3 |
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.
image: macbre/nginx-brotli:1.19.3 | |
image: macbre/nginx-brotli:1.19.4 |
This solves problems with SSL (1.19.3 image had an issue with nginx build) - see macbre/docker-nginx-http3#15
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.
@gmetais - now we have
localhost but https version
✗ should be generated
» No error should be thrown: got Error: net::ERR_CERT_AUTHORITY_INVALID at https://127.0.0.1:8889 // /home/runner/work/phantomas/phantomas/node_modules/vows/lib/assert/macros.js:31
We need to pass a different option to puppeteer -> https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#puppeteerlaunchoptions (ignoreHTTPSErrors
)
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.
FIxed in #821
Tests now pass 🎉 |
Huge! Thanks for the fixes! |
Hi @macbre,
Congratulations for the release of 2.0.0! 🎉
While working on integrating it into YLT, I thought of this bunch of new metrics. Do you think they could be useful?
I just don't know how to add integration tests for them. Testing on a locally hosted page does not make much sense. Testing on a remote domain could change at any time... Do you have an idea?