Skip to content
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

Release / 4.16 #2953

Merged
merged 99 commits into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
f26e0b2
add epoch progress ui with placeholders
paulclindo Dec 18, 2021
f40c170
integrate epochProgress data
paulclindo Dec 20, 2021
a72e0e8
add percentage
paulclindo Dec 20, 2021
362a565
remove log
paulclindo Dec 21, 2021
68bfdad
Merge branch 'develop' into add-epoch-history
vsubhuman Jan 7, 2022
0ac1bb1
add start epoch date
paulclindo Jan 8, 2022
8a984d2
Merge branch 'develop' into add-epoch-history
vsubhuman Mar 9, 2022
5aa0168
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into add-e…
Jun 28, 2022
e26e792
add epoch progress ui with placeholders
nistadev Jul 4, 2022
598e1e6
integrate epochProgress data
nistadev Jul 4, 2022
1648637
add percentage
paulclindo Dec 20, 2021
6730fde
remove log
paulclindo Dec 21, 2021
a8d1f15
add start epoch date
paulclindo Jan 8, 2022
67b2918
Merge branch 'add-epoch-history' of github.com:Emurgo/yoroi-frontend …
nistadev Jul 4, 2022
30d9b54
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into add-e…
nistadev Jul 6, 2022
49418ef
Fixed styles to match last revamp version
nistadev Jul 7, 2022
ea7de80
Fix typo
nistadev Jul 7, 2022
7a64116
Merge branch 'develop' into add-epoch-history
vsubhuman Jul 7, 2022
1ca7033
Calculate days left to finish epoch
nistadev Jul 7, 2022
f2c7ef1
Merge branch 'add-epoch-history' of github.com:Emurgo/yoroi-frontend …
nistadev Jul 7, 2022
2c943b1
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into add-e…
nistadev Jul 7, 2022
316391e
SerLib bump to 11.0.0-rc.6
vsubhuman Jul 13, 2022
fe8400b
Switched to use vasil cost models in the connector
vsubhuman Jul 14, 2022
b6dff25
Multiasset metadata query fix
vsubhuman Jul 14, 2022
977c148
Version bump: 4.14.502 (nightly)
vsubhuman Jul 14, 2022
bfb4252
support analytics
yushih Jul 18, 2022
5e9bc42
Merge branch 'develop' into yushi/analytics
vsubhuman Jul 18, 2022
c08c841
add more events
yushih Jul 21, 2022
415571e
add more events
yushih Jul 21, 2022
52e157a
Upgrade to latest serlib RC
vsubhuman Jul 21, 2022
1acca8c
Merge remote-tracking branch 'origin/release/4.15' into ruslan/serlib-11
vsubhuman Jul 21, 2022
8d38879
Version bump: 4.15.001 (nightly)
vsubhuman Jul 21, 2022
50927c4
differentiate testnet
yushih Jul 25, 2022
8ebc709
remove tmp code
yushih Jul 25, 2022
bc5f1d7
remove mutex on connector handler
ozgrakkurt Jul 25, 2022
9b3706e
remove Mutex usage
ozgrakkurt Jul 25, 2022
4aad06f
Upgrade to latest serlib candidate
vsubhuman Jul 25, 2022
cd24a9a
Merge branch 'develop' into remove-mutex-on-connector
ozgrakkurt Jul 27, 2022
b10a7d8
Merge branch 'develop' into yushi/analytics
neuodev Jul 27, 2022
2d6c534
Updated tests.yml
Nebyt Jul 27, 2022
b960494
Little fix
Nebyt Jul 27, 2022
aaee5b7
Updated tests_hw_emulators.yml
Nebyt Jul 27, 2022
5717db8
Moved emulator tests to the tests.yml. Removed tests_hw_emulators.yml
Nebyt Jul 27, 2022
b4092b7
Merge pull request #2941 from Emurgo/denis/workflows-update-hw
Nebyt Jul 27, 2022
7c0861a
Try to solve problem with firefox browser
Nebyt Jul 27, 2022
a7dea4f
Try 2 to solve problem with firefox browser
Nebyt Jul 27, 2022
6451887
Try 3 to solve problem with firefox browser
Nebyt Jul 27, 2022
58cfed6
Try 4 to solve problem with firefox browser
Nebyt Jul 27, 2022
e14a638
Try 5 to solve problem with firefox browser
Nebyt Jul 27, 2022
d55f9d6
Try 6 to solve problem with firefox browser
Nebyt Jul 28, 2022
3c5aec7
Try 7 to solve problem with firefox browser
Nebyt Jul 28, 2022
1bd931a
Merge branch 'release/4.15.100' into ruslan/serlib-11
vsubhuman Jul 28, 2022
53e845e
Serlib upgrade to 11.0.0 ; Version bump: 4.15.101 (nightly)
vsubhuman Jul 28, 2022
20b0aca
Added `fail-fast: false` to matrix to stop canceling other job from m…
Nebyt Jul 28, 2022
c018818
Merge pull request #2943 from Emurgo/production
vsubhuman Jul 28, 2022
605bedd
Merge branch 'develop' into denis/workflows-update
Nebyt Jul 28, 2022
3609352
prefix testnet/ to testnet wallet action names
yushih Jul 28, 2022
d699271
fix action name
yushih Jul 29, 2022
c636a79
Merge pull request #2940 from Emurgo/denis/workflows-update
vsubhuman Jul 29, 2022
51e41fc
Merge branch 'develop' into add-epoch-history
vsubhuman Jul 29, 2022
bba9394
Merge branch 'develop' into yushi/analytics
Nebyt Jul 29, 2022
bbe680a
fix fund message
pedromtcosta Aug 3, 2022
2d66c4e
Merge branch 'develop' into fix-fund-message
pedromtcosta Aug 3, 2022
9d2db4c
Updated the step of downloading trezor firmwares
Nebyt Aug 4, 2022
ba935ed
Merge pull request #2950 from Emurgo/denis/trezor-firmware-download-fix
vsubhuman Aug 4, 2022
0106ce1
Merge branch 'develop' into fix-fund-message
vsubhuman Aug 4, 2022
b360992
Merge pull request #2947 from Emurgo/fix-fund-message
vsubhuman Aug 4, 2022
65da2a4
Merge pull request #2951 from Emurgo/production
vsubhuman Aug 4, 2022
6669a6e
Merge branch 'develop' into remove-mutex-on-connector
vsubhuman Aug 4, 2022
4c58d49
Merge pull request #2931 from Emurgo/remove-mutex-on-connector
vsubhuman Aug 5, 2022
3f16691
Merge branch 'develop' into yushi/analytics
vsubhuman Aug 5, 2022
8445516
Merge branch 'develop' into add-epoch-history
vsubhuman Aug 8, 2022
3dbf52a
lint fixes
vsubhuman Aug 8, 2022
9da5868
lint fixes
vsubhuman Aug 8, 2022
e1f0597
Merge pull request #2916 from Emurgo/yushi/analytics
vsubhuman Aug 8, 2022
ea587a1
Merge branch 'develop' into add-epoch-history
vsubhuman Aug 8, 2022
5ff974b
Merge pull request #2585 from Emurgo/add-epoch-history
vsubhuman Aug 8, 2022
510c0a1
Merge remote-tracking branch 'origin/develop' into ruslan/serlib-11
vsubhuman Aug 8, 2022
ef1e934
package-lock update
vsubhuman Aug 8, 2022
8e53a12
cost-model select
vsubhuman Aug 8, 2022
d98934e
lint fixes
vsubhuman Aug 8, 2022
1e38564
test fixes
vsubhuman Aug 8, 2022
a18999d
Merge pull request #2914 from Emurgo/ruslan/serlib-11
vsubhuman Aug 8, 2022
187b3bc
Version bump: 4.16.0
vsubhuman Aug 8, 2022
d0c82bc
Fix fake amount when calculating min required ada
vsubhuman Aug 9, 2022
768bf2c
Fix fake amount when calculating min required ada
vsubhuman Aug 9, 2022
3b102b9
Not allowing tx-building when token amount is zero
vsubhuman Aug 10, 2022
e8fe31e
Merge pull request #2956 from Emurgo/ruslan/fix-min-ada-calculation
vsubhuman Aug 10, 2022
0429380
Merge branch 'release/4.16' into ruslan/fix-zero-token-amount
vsubhuman Aug 10, 2022
e056169
Fix for when sending all token
vsubhuman Aug 10, 2022
58f7735
Moved the logic into `_canCompute` function
vsubhuman Aug 10, 2022
7abef47
Moved the logic into `_canCompute` function
vsubhuman Aug 10, 2022
ba52901
Merge pull request #2957 from Emurgo/ruslan/fix-zero-token-amount
vsubhuman Aug 10, 2022
57fc0b5
Fixing balance check in delegation centre
vsubhuman Aug 11, 2022
1f8f6d7
Merge branch 'release/4.16' into ruslan/delegation-centre-balance-fix
vsubhuman Aug 11, 2022
52e73b6
Revert "remove mutex on connector handler"
vsubhuman Aug 11, 2022
b82bf3d
Merge remote-tracking branch 'origin/release/4.16' into revert-2931-r…
vsubhuman Aug 11, 2022
0fdd3c7
Merge pull request #2960 from Emurgo/ruslan/delegation-centre-balance…
vsubhuman Aug 11, 2022
845d04e
Merge pull request #2961 from Emurgo/revert-2931-remove-mutex-on-conn…
vsubhuman Aug 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 88 additions & 22 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,25 @@ jobs:
- name: tests
run: |
npm run test
E2E_tests_dApp_Chrome:
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check'))
runs-on: macos-11

E2E_tests_dApp:
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check') || contains(github.event.review.body, '/dapp-check'))
runs-on: macos-12
strategy:
matrix:
browser: ['chrome', 'firefox']
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Forcefully update the Chrome browser
if: matrix.browser=='chrome'
run: brew update && brew upgrade --cask google-chrome
- name: Forcefully install Firefox for Developers browser
if: matrix.browser=='firefox'
run: |
brew update
brew tap homebrew/cask-versions && brew install --cask firefox-developer-edition
echo "FIREFOX_DEV=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin" >> $GITHUB_ENV
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
Expand Down Expand Up @@ -97,33 +109,85 @@ jobs:
working-directory: ./packages/yoroi-extension
env:
MAILSAC_API_KEY: ${{ secrets.MAILSAC_API_KEY }}
run: npm run test:run:e2e:dApp:chrome
run: npm run test:run:e2e:dApp:${{ matrix.browser }}
- name: Archive tests screenshots and logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: testRunsData
path: ./packages/yoroi-extension/testRunsData

E2E_tests_dApp_FF:
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check') || contains(github.event.review.body, '/run_dapp_ff'))
runs-on: macos-11
Trezor_Model_T_emulator:
if: github.event.review && (github.event.review.state == 'approved' || contains(github.event.review.body, '/check') || contains(github.event.review.body, '/trezor-check'))
runs-on: ubuntu-22.04
strategy:
matrix:
browser: [ 'chrome', 'firefox' ]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Forcefully install Firefox for Developers browser
run: brew update && brew tap homebrew/cask-versions && brew install --cask firefox-developer-edition
- name: Set up env variable for FF
run: echo "FIREFOX_DEV=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin" >> $GITHUB_ENV
- name: Forcefully update the Chrome browser
if: matrix.browser=='chrome'
run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable

- name: Install Firefox Developer Edition
if: matrix.browser=='firefox'
run: |
wget -c "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" -O - | sudo tar -xj -C /opt
sudo rm -rf /opt/firefoxdev
sudo mv /opt/firefox /opt/firefoxdev
echo "FIREFOX_DEV=/opt/firefoxdev/firefox-bin" >> $GITHUB_ENV

- name: Clone the trezor-usr-env
run: |
cd ..
git clone https://github.com/trezor/trezor-user-env.git

- name: Install nix-shell
run: |
sudo apt update
sudo apt -y install nix-bin

- name: Download firmware
working-directory: ../trezor-user-env/src/binaries/firmware/bin/
run: sudo ./download.sh

- name: Download trezord-go
working-directory: ../trezor-user-env/src/binaries/trezord-go/bin/
run: sudo ./download.sh

- name: Copy the v2-master firmware to the root of the project
working-directory: ../trezor-user-env
run: cp -rf src/binaries/firmware/bin/trezor-emu-core-v2-master ./

- name: Copy the trezord-go-v2.0.31 to the root of the project
working-directory: ../trezor-user-env
run: cp -rf src/binaries/trezord-go/bin/trezord-go-v2.0.31 ./

- name: Create the logs folder in the root of the trezor-user-env
working-directory: ../trezor-user-env
run: mkdir logs

- name: Run the trezor user environment
working-directory: ../trezor-user-env
run: sudo docker run -p 9001:9001 -p 9002:9002 -p 21326:21326 -p 127.0.0.1:21325:21326 -p 21324:21324 -v logs:/trezor-user-env/logs/screens -v trezor-emu-core-v2-master:/trezor-user-env/src/binaries/firmware/bin/user_downloaded -v trezord-go-v2.0.31:/trezor-user-env/src/binaries/trezord-go/bin -d emurgornd/trezor-user-env:latest

- uses: actions/checkout@v3

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Cache extension node modules
# https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-yoroi-extension-node-modules
with:
Expand All @@ -136,9 +200,10 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Cache connector node modules
# https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-yoroi-connector-node-modules
with:
Expand All @@ -151,24 +216,25 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Clean cache
run: npm cache clean -f

- name: npm install
run: |
. install-all.sh
- name: Build the test version

- name: Build the test version using emulators
working-directory: ./packages/yoroi-extension
run: npm run test:build

- name: Create the report's folder
working-directory: ./packages/yoroi-extension
run: |
mkdir reports
touch ./reports/cucumberReports.json
- name: Run dapp connector tests

- name: Run tests
working-directory: ./packages/yoroi-extension
env:
MAILSAC_API_KEY: ${{ secrets.MAILSAC_API_KEY }}
run: npm run test:run:e2e:dApp:firefox
run: xvfb-run -a -e /dev/stdout -s "-screen 0 1920x1080x24" npm run test:run:e2e:trezor:${{ matrix.browser }}

- name: Archive tests screenshots and logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
Expand Down
Loading