-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Pull requests by community members: build artifacts should upload to our artifacts server #9141
Comments
I believe it's due to the encryption of github tokens that only work when the PR is done by someone who is member of the Piwik ORG. @diosmosis would there be a way to have artifacts uploaded for all PRs including external contributors? |
Not for external contributors w/o making the artifacts password public (ie, unencrypted). |
It would be helpful to have a solution for this. Maybe we can make the password public and instead add some security on the uploads server to make sure only expected things are uploaded (images etc)? |
Should already be in place. Issue is w/ people potentially uploading lots of images or DDoS-ing. If there is some way to verify the request comes from travis-ci, then we don't need the password. |
Not sure if that's possible as possibly pretty much anything can be changed/faked if someone wants to |
Just thought of something: try removing the environment variables from .travis.yml and setting them here: https://travis-ci.org/piwik/piwik/settings . Maybe these will be used by PRs. |
That's cool, haven't seen it before. I presume it's exactly for such cases maybe. |
Actually in that case should make sure it's only the artifacts password that's used there. The autoupdate token shouldn't be forwarded to other repos. |
Adding to 2.15.1 as it would be awesome to get UI tests artifacts for third party contributed Pull requests 👍 |
I will try it now |
Actually, I just read this:
So it won't work as pull requests could read the secret token otherwise. It should work though if we made the token visible. In this case it would as well work to define it in .travis.yml in plain text. But then anyone could ddos again and we cannot verify request is made from travis |
Got screenshots to upload for a PR (build: https://travis-ci.org/piwik/piwik/jobs/99020321, screens: http://builds-artifacts.piwik.org/piwik/piwik/master/17369/). |
Works for plugins as well: (build: https://travis-ci.org/piwik/plugin-TasksTimetable/builds/99023364, screens: http://builds-artifacts.piwik.org/piwik/plugin-TasksTimetable/master/72/). See ui-tests-viewer for relevant changes. Closing this issue. |
👍 Awesome |
It doesn't seem to work for System tests. I've created a new issue: #9685 |
I think when there is a PR like #9137 (not from
piwik/piwik
) the artifacts upload fails because of invalid authentication key see https://travis-ci.org/piwik/piwik/jobs/88599319#L1349 or maybe it is because of something else?For reviews it would be good if we could see the uploaded artifacts. Do we actually need a key for
piwik/piwik
? I think we used to not have a key and we added it afterwards possibly to not allow to upload anything. Maybe there's a way we could allow uploading articfacts?The text was updated successfully, but these errors were encountered: