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
Woff2 test #13559
Woff2 test #13559
Conversation
Can you maybe test if it fails when updating the woff files but not woff2 as a test? if then the build fails it should work 👍 |
When you commit woff, but not woff2 the time difference between the two commits should be more than 24 hours and the test should fail. |
I'm not entirely sure why the test didn't fail: |
fyi in case it helps what I'm getting:
|
I don't know if it is supposed to fail right now? |
Started debugging this on the travis-debug branch, for some reason the date for matomo.woff is the same as the date for matomo.woff2, but only on travis. |
Tried getting the remote branch log ( |
It's not needed to have this in 3.6.1 just fyi |
I already gave up on debugging it :) |
It is supposed to fail now as they weren't committed at the same time and my plan was then to recommit them afterwards to fix it. |
Maybe travis-ci/travis-ci#7254 (comment) helps? |
@tsteur That makes sense. Travis probably does a |
👍 shall we close this PR then? |
Was hoping getting the log from the origin remote would get around the lack of history, but it didn't... |
Unfortunatly |
Thought of a way to do the test this way, could use the github API to get the last modified time (using whatever travis environment variable gets the commit hash). Probably wouldn't work on PRs, but doesn't really have to. @Findus23 would you have time for this? Found an example request here: https://stackoverflow.com/questions/50194241/get-when-the-file-was-last-updated-from-a-github-repository |
@diosmosis Is this the only task left to do? if so I can do this. Can you send the link to the github guide to follow? |
@mattab should follow https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line and give the token no permissions. Then need to add it as a secure environment variable to travis-ci: https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables |
@mattab @diosmosis what's the status here? @mattab I suppose you need to do something here? |
@tsteur two options:
I don't know if either are high value enough to spend time on. |
@diosmosis now that we use chrome for tests, maybe chrome loads the woff2 anyway and this test is not needed anymore? |
@tsteur this test is to make sure the woff2 file is up to date, since it has to be generated manually after every change to the icon font file. So we need to run woff2_compress in travis and compare w/ the file or some other way to make sure we know it is up to date. I guess it's not super important if we don't have this test, but I suspect someone will forget w/o the check. |
Or do you mean because chrome will try to use woff2 first? If so, I guess we don't need this then... |
That's what I meant. We're mentioning it also first in the font so likely this should be the case. |
Ok, I'll close this then. No issue for me if someone wants to re-open and finish this, but it doesn't seem necessary anymore. |
related to #12695 and fixes #13210
While @diosmosis' idea of running
woff2_compress
on travis is probably the best solution, I think checking if both files have been modified at the same time should also work and is much simpler.The test seems to work locally, but someone should take a look (and afterwards all files need to be updated to fix the test)