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 a travis suite to run the staging store tests #602
Conversation
skip ci |
b9ef49f
to
1d6b461
Compare
ade55cc
to
359f9b1
Compare
Test jenkins |
359f9b1
to
d808372
Compare
In order to do this, the store tests need to handle an empty password. As travis only sets the encrypted environment variable for the team branches, the personal PRs will run against the fake store. LP: #1596072
d808372
to
50f24ba
Compare
This is good to go. As good as it gets at least. I launched the travis tests many many times, and in the end found that it will fail if the two executions sync and run a registration within 5 seconds. There's nothing we can do about it right now. We could sign up a different user for each test, but there is no way to accept the store agreement with a script. |
retest this please |
1 similar comment
retest this please |
self.run_snapcraft(['register', snap_name]) | ||
# sleep a few seconds to avoid hitting the store restriction on | ||
# following registrations. | ||
time.sleep(10) |
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.
For the record, Store staging has 5 s rate-limit and production 60 s, a comment on the test would not hurt.
@celso-providelo I didn't use the specific rate, and didn't comment much about it because you told me you were not comfortable making that info public :p |
@ElOpio slow-clapping for me, huh ?! As we discussed before, when this delay starts impacting the full-suite run we will have to find a better way (no rate-limit for specific users/groups). |
In order to do this, the store tests need to handle an empty password. As travis only sets the encrypted environment variable for the team branches, the personal PRs will run against the fake store. LP: #1596072
LP: #1596072