-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Grdddj/replacing old firmwares in e2e tests #4079
Conversation
f794224
to
473fef0
Compare
Commit bd9d24c:
Currently failing tests with new |
Commit 6a1eb08:
Consideration:
|
Commit b47be09:
|
This is something I wanted to raise myself. I have a preference to indeed have it against
In a nutshell I suggest to indeed try to test against FW master and see where it gets us. If it would turn out problematic, we can always revert. I would like this be ACKed by @mroz22 @matejcik and @matejkriz though. What do you guys think? |
I'm actually somewhat against. I don't mind too much because this is not my CI :) but pulling from master means that Suite CI results can change randomly in the middle of the day, between runs of the same pipeline. Counter-proposal: run Suite e2e against tagged version of firmware, bump tag automatically in a nightly job. |
Sorry for not being clear, but that is what we are basically suggesting. FW's master is added into trezor-user-env docker image using a scheduled nightly job, so it contains master up to 1 day old, it is does not fetch master directly. There is one tiny exception and that is when master is changed in trezor-user-env, that means some development in trezor-user-env occured (aka PR is merged) which triggers the image to be rebuilt. But that can be avoided easily. |
...or we could bundle the newest master weekly. Like over the weekend - as a compromise. We could run it e.g. on Sunday and also restart the Suite CI. If it would fail we could inform on Slack. This way we would know on Monday that something is wrong right away. |
Oh ok. in that case +1 from me. |
Is the |
In both cases (running with Commit 18ca6ce:
|
Observation of the CI:
|
https://docs.gitlab.com/ee/ci/yaml/#retry But I don't like doing this very much |
Yeah Gitlab has |
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.
looks good. I think we can merge this and build upon it further on
Yeah, let me try that
Should everything be squashed into one commit? Message could be something like |
18ca6ce
to
e438651
Compare
Possible improvement:
Use case:
|
Commit 958744f:
Use-case:
|
Fixup commit 4b69533:
|
Fixup commit 4828328:
|
80a4cb2
to
cb513cf
Compare
The only failing tests now (even after rebasing on It is at least consistent in its error, after reloading the page the message (In |
Commit 96453a2:
Still, the test in CI is failing (as the only one). After discussion with @tsusanka I am creating an issue for the QA team to investigate if it really fails |
So the 2.3.1 passes on develop but fails here? That's curious 🤔 |
Few ideas:
|
Commit 9ceac66:
|
So @grdddj I think we are ready here right? Pleas squash and force-push, one commit as suggested above is fine. We'll make final review then and merge |
packages/integration-tests/projects/suite-web/tests/recovery/t2-dry-run-persistence.test.ts
Show resolved
Hide resolved
9ceac66
to
911b6d6
Compare
I hope so. The squash was done and force-pushed. We can still discuss the commit message, I made it quite long |
911b6d6
to
f40a8c9
Compare
@grdddj could you please have a look why the It is definitely not due to your PR, it was added in #4053. There were some troubles with CI so we could not check whether it passes :/. Sorry, I should have made sure. I know it is a bit out of scope but do you think you could have a look at it please? |
Sure, I am looking at it. Tried to run it locally with the result below (the error message is the same as in CI). I will connect with @wendys-cats so we can troubleshoot it quicker, I am not even sure what is being tested here |
After changing the expected text from That text was changed in d2130d0 2 weeks ago (and that test is one month old) There seems to be some mismatch/mystery, because the text trezor-suite/packages/suite/src/support/messages.ts Lines 2448 to 2451 in fade0f7
@tsusanka Should I create a PR for this fix (just changing the expected text)? We have discussed it with @wendys-cats |
Ah! That is due to the fact that we modify the texts in a Crowdin. So we ideally shouldn't depend on any text at all 😞. For now could you please modify the test so it checks |
PR created. That Crowdin means we can change the text anywhere in Suite in real time even without committing the changes to the repo? When those texts were only in the repo, we could maybe import the json object into the tests and take the text dynamically from there, without hardcoding them |
Not live - the texts are changed via the Crowdin interface and from time to time (usually before release) sync here, see #3937 for example. Crowdin is also used for localization into other languages, see our Notion tutorial. |
Now that #4171 is merged could you rebase on top of develop and force-push? The CI should pass then so I just would like to double-check and also see if some other surprises are there :). |
…d, stabilizing tests
f40a8c9
to
306834a
Compare
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.
I went through the changes and I have only one last question :).
Putting latest version of TT emulator (T1 may be done as well) -
2-master
wherever possible into e2e testsNotes/issues/ideas:
clickEmu
Cypress task, even though it is not being used currently (resolved in firmware issue) - in that test, we were sending the "all" mnemonic 13 times instead of 12 times, so it meant thepressYes
was not working after thatcontinue-button
instead ofskip-button
- as we are always using the latest versionpressYesMultipleTimes(n)
)TrezorFailure - DataError: Passphrase is not enabled
. Tried to play with arguments tosetupEmu
andapplySettings
, but could not make it work. Currently, these tests have 2.3.1 version withTODO
above them to point out this issue