-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LIVE-10137] [CI] - [Github Actions] - Improve clarity of run actions (…
…#5642) * chore(ci): mobile e2e build & test script * chore(ci): improve clarity desktop lint action * chore: use of zx instead of bash * fix(mobile): e2e script cache option
- Loading branch information
1 parent
24ebd63
commit 570fe16
Showing
7 changed files
with
192 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/usr/bin/env zx | ||
import { basename } from 'path' | ||
import stylish from "../../../node_modules/eslint/lib/cli-engine/formatters/stylish.js" | ||
|
||
const usage = () => { | ||
console.log(`Usage: ${basename(__filename)} [-h] [-p <port>] [-t <server-token>]`); | ||
process.exit(1) | ||
} | ||
|
||
let port, token; | ||
|
||
for (const arg in argv) { | ||
switch (arg) { | ||
case 'h': | ||
usage(); | ||
break; | ||
case 'p': | ||
port = argv[arg]; | ||
break | ||
case 't': | ||
token = argv[arg]; | ||
break; | ||
case '_': | ||
break; | ||
default: | ||
usage(); | ||
break; | ||
} | ||
} | ||
|
||
if (typeof token !== "string") { | ||
usage(); | ||
} | ||
|
||
const lint = async () => { | ||
cd('../../') | ||
|
||
if (typeof port === 'string') { | ||
await $`pnpm lint \\ | ||
--filter="ledger-live-desktop" \\ | ||
--api="http://127.0.0.1:${port}" \\ | ||
--token=${token} \\ | ||
--team="foo" \\ | ||
-- --format="json" \\ | ||
-o="lint.json"`; | ||
} else { | ||
await $`pnpm lint \\ | ||
--filter="ledger-live-desktop" \\ | ||
--token=${token} \\ | ||
--team="foo" \\ | ||
-- --format="json" \\ | ||
-o="lint.json"`; | ||
} | ||
|
||
const lintJson = require('../lint.json') | ||
stylish(lintJson); | ||
} | ||
|
||
await lint() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
#!/usr/bin/env zx | ||
import { basename } from 'path'; | ||
|
||
let platform, test, build, bundle; | ||
let cache = true; | ||
|
||
const usage = (exitCode = 1) => { | ||
console.log(`Usage: ${basename(__filename)} -p --platform <ios|android> [-h --help] [-t --test] [-b --build] [--bundle] [--cache | --no-cache]`); | ||
process.exit(exitCode); | ||
} | ||
|
||
const build_ios = async () => { | ||
await $`pnpm mobile e2e:build -c ios.sim.release`; | ||
} | ||
|
||
const bundle_ios = async () => { | ||
await $`pnpm mobile bundle:ios --dev false --minify false`; | ||
} | ||
|
||
const bundle_ios_with_cache = async () => { | ||
await bundle_ios(); | ||
|
||
await $`pnpm mobile exec detox clean-framework-cache`; | ||
await $`pnpm mobile exec detox build-framework-cache`; | ||
within(async () => { | ||
cd('apps/ledger-live-mobile'); | ||
await $`cp main.jsbundle ios/build/Build/Products/Release-iphonesimulator/ledgerlivemobile.app/main.jsbundle`; | ||
await $`mv main.jsbundle ios/build/Build/Products/Release-iphonesimulator/main.jsbundle`; | ||
}); | ||
} | ||
|
||
const test_ios = async () => { | ||
await $`pnpm mobile e2e:test \ | ||
-c ios.sim.release \ | ||
--loglevel error \ | ||
--record-logs all \ | ||
--take-screenshots all \ | ||
--headless \ | ||
--retries 1 \ | ||
--cleanup \ | ||
--record-performance all`; | ||
} | ||
|
||
const build_android = async () => { | ||
await $`pnpm mobile e2e:build -c android.emu.release`; | ||
} | ||
|
||
const test_android = async () => { | ||
await $`pnpm mobile e2e:test \\ | ||
-c android.emu.release \\ | ||
--loglevel error \\ | ||
--record-logs all \\ | ||
--take-screenshots all \\ | ||
--forceExit \\ | ||
--headless \\ | ||
--retries 1 \\ | ||
--cleanup`; | ||
} | ||
|
||
const getTasksFrom = { | ||
ios: { | ||
build: build_ios, | ||
bundle: async () => cache ? await bundle_ios_with_cache() : await bundle_ios(), | ||
test: test_ios, | ||
}, | ||
android: { | ||
build: build_android, | ||
bundle: () => undefined, | ||
test: test_android | ||
} | ||
} | ||
|
||
for (const argName in argv) { | ||
switch (argName) { | ||
case 'help': | ||
case 'h': | ||
usage(0); | ||
break; | ||
case 'platform': | ||
case 'p': | ||
if (argv[argName] !== 'ios' && argv[argName] !== 'android') { | ||
usage(1); | ||
} else { | ||
platform = argv[argName]; | ||
} | ||
break; | ||
case 'test': | ||
case 't': | ||
test = true; | ||
break; | ||
case 'build': | ||
case 'b': | ||
build = true; | ||
break; | ||
case 'bundle': | ||
bundle = true; | ||
break; | ||
case 'cache': | ||
cache = argv[argName]; | ||
break; | ||
case '_': | ||
break; | ||
default: | ||
usage(42); | ||
break; | ||
} | ||
} | ||
|
||
within(async () => { | ||
if (!platform) { | ||
usage(2) | ||
} | ||
|
||
cd('../../'); | ||
if (build) { | ||
await getTasksFrom[platform].build(); | ||
} | ||
if (bundle) { | ||
await getTasksFrom[platform].bundle(); | ||
} | ||
if (test) { | ||
await getTasksFrom[platform].test(); | ||
} | ||
}); |
570fe16
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.
[Bot] Daily non-reg on develop with 'Nitrogen' ✅ 161 txs ❌ 41 txs 💰 4 miss funds ($1,879.19) ⏲ 47min 53s
6 critical spec errors
Spec persistence failed!
Spec Solana failed!
Spec Ethereum Ropsten failed!
Spec Arbitrum Goerli failed!
Spec Evmos EVM failed!
Spec Klaytn failed!
❌ 41 mutation errors
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 8 accounts
Portfolio ($1,879.19) – Details of the 68 currencies
tb1qe3v3lewlt26ssj7k5p39y7tksxkwwn7hyghrlp
qrs56xdujt2xqsuvfwqemzrymzae9kttmgmxz9qa20
AJVAAYo3m7wHYGB8QW2vRPKSNFcg1KsWtA
XvD8ibKX2zTqk1HDW2MbxzvqCaAw6eLog9
dgb1qpp0c9hjx7pmlpp4ltm8halw9tf3llvd60mcywm
DFuhE8tBZkRhWsJeHKeuB6ZCGLAjjVsmp8
REmQgRKdLL7HcKmDixktvfJG9mPJtRmcjg
ltc1qkk5yfet4w4hfs7z2alk0ukg79h9g32tx748eua
PPYb1sThpjaNUtxM8hLFNh2u8rBc13AcXy
DHcZwjruzavX3dM3bGGMjDjHNC8cUxJdSx
3Kg9ysKiM9VetoY3LErUYx6MuehX7UbSMg
EfNBVWrAKh56NmASmkNTmwrrvo7PwxAFhL
t1UJrw8J2Vb8yxBgoUsXBMzs8hbvw9ph9Mh
znZuRuT9pbHeYRLCbd7xVY8QnoxPZZHYGba
02026B93627Ed2F76551E7CeF0466468B12db8Fab806266107b69947D9c95CEd9E7c
0x246FFDB387F1F8c48072E1C13443540017bC71b7
osmo1rs97j43nfyvc689y5rjvnnhrq3tes6ghn8m44l
desmos1rs97j43nfyvc689y5rjvnnhrq3tes6gh0y9454
dydx1rs97j43nfyvc689y5rjvnnhrq3tes6ghj9xpr6
umee1rs97j43nfyvc689y5rjvnnhrq3tes6ghf2468l
quick1rs97j43nfyvc689y5rjvnnhrq3tes6ghscch6l
onomy1rs97j43nfyvc689y5rjvnnhrq3tes6ghpaunjg
sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v
stars1rs97j43nfyvc689y5rjvnnhrq3tes6gh0qlcgu
core1rs97j43nfyvc689y5rjvnnhrq3tes6ghgjs7yk
inj1vzjwweta3hegt99vfgrvmcq7rr5532yjsgxd4a
cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra
erd18n5sk95fq9dtgdsa9m9q5ddp66ch9cq5lpjflwn5j9z8x2e9h0qqrvk5qp
0.0.3664525
f2ed4c9253d3aca7d679bfa9f528d13e85c7f522b8857e094c850a157b750209
0573d7a9c745fa9fe224b080832aa93d740760b94f192c9c141c709945e9aaaf
r9etPtq3oboweMPju5gdYufmvwhH2euz8z
SP2J4VHFRAT94KY6NFT6129HBA382S6R98W9ABFG2
GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC
tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
0x7584df0780C5eB83b26aE55abBc265014f8bf897
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0xe404f128644459C5A0F6FAc6824AdA8F94798c8f
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
Performance ⏲ 47min 53s
Time spent for each spec: (total across mutations)
570fe16
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.
[Bot] Weekly non-reg on develop with 'Oxygen' ✅ 42 txs ❌ 4 txs ($600.58) ⏲ 8min 39s
1 critical spec errors
Spec Boba failed!
❌ 4 mutation errors
Please increase the account target to at least 6 accounts
Please increase the account target to at least 7 accounts
Please increase the account target to at least 7 accounts
Please increase the account target to at least 8 accounts
Details of the 46 mutations
Spec Qtum (6)
Spec Decred (5)
Spec cardano (4)
Spec axelar (11)
Spec cosmos (10)
Spec secret_network (13)
Spec Filecoin (8)
Spec Tron (4)
Spec Avalanche C-Chain (10)
Spec Binance Smart Chain (10)
Spec Cronos (6)
Spec Fantom (6)
Spec Boba (failed)
Spec Telos (5)
Spec Polygon zkEVM (5)
Spec Polkadot (6)
Details of the 30 uncovered mutations
Spec Qtum (1)
Spec Decred (2)
Spec cardano (4)
Spec axelar (2)
Spec cosmos (3)
Spec secret_network (2)
Spec Tron (4)
Spec Binance Smart Chain (1)
Spec Cronos (1)
Spec Fantom (1)
Spec Boba (3)
Spec Polkadot (6)
Portfolio ($600.58) – Details of the 16 currencies
MLMxRiBQwrX186ymJcgUed6kv2bzjmS2xs
DsbPQDgo4vDyZuquqQpS1cZK8hXxMh7JLc1
addr1qyg4p0e9vxsy2r3hq44szh9xdfeywxkwdh4vxjfw5l9xx7lgyf2nkgrrlvjz49cn9cqr4el6y74l85d0z3jfj75gmamq03h722
axelar123r3dwfylykx0fugawn6mu2h2smq3047pn5n9g
cosmos123r3dwfylykx0fugawn6mu2h2smq30479azmwf
secret123r3dwfylykx0fugawn6mu2h2smq30478ckjn4
f1oqqfytyqkxiuu4k7qtsjurmyfddjfsvpvr7dv7y
TT2eHJXo5tRV2wYyZExr9W18mXghe6NFM1
0x731477De13B323A0cA90C1FE194EA5A0412937c2
0x731477De13B323A0cA90C1FE194EA5A0412937c2
0x731477De13B323A0cA90C1FE194EA5A0412937c2
0x731477De13B323A0cA90C1FE194EA5A0412937c2
0x731477De13B323A0cA90C1FE194EA5A0412937c2
0x731477De13B323A0cA90C1FE194EA5A0412937c2
16KwUHz2qkSqXwpiAsH2b6PZrYkxhGYi33E2TLU1FD6o7bVa
Performance ⏲ 8min 39s
Time spent for each spec: (total across mutations)
570fe16
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.
[Bot] Testing with 'Nitrogen' ($0.00) ⏲ 10min 4s
1 critical spec errors
Spec Solana failed!
Details of the 0 mutations
Spec Solana (failed)
Details of the 8 uncovered mutations
Spec Solana (8)
Portfolio ($0.00) – Details of the 1 currencies
Performance ⏲ 10min 4s
Time spent for each spec: (total across mutations)
570fe16
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.
[Bot] Daily non-reg on develop with 'Nitrogen' ✅ 168 txs ❌ 42 txs 💰 3 miss funds ($1,832.57) ⏲ 43min 23s
7 critical spec errors
Spec Solana failed!
Spec Ethereum Ropsten failed!
Spec Arbitrum Goerli failed!
Spec Evmos EVM failed!
Spec OP Mainnet failed!
Spec Optimism Goerli failed!
Spec Klaytn failed!
❌ 42 mutation errors
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Please increase the account target to at least 8 accounts
Portfolio ($1,832.57) – Details of the 68 currencies
tb1qe3v3lewlt26ssj7k5p39y7tksxkwwn7hyghrlp
qz7km8pg9d5xvyedm20926u36f7d6rjnpunsmphu5k
AHdLA9Ywon4qyoZsptzCM2XrZxLDDePsRk
XvD8ibKX2zTqk1HDW2MbxzvqCaAw6eLog9
dgb1qpp0c9hjx7pmlpp4ltm8halw9tf3llvd60mcywm
DPKWCDk6BWfpgiuF3XBY1PLtMuL2YbpxQX
RUR6veXx8SsVWWpA3aJCQS1zaGDcx9StKe
ltc1qkk5yfet4w4hfs7z2alk0ukg79h9g32tx748eua
PR9Z3d3tKoyzdzBTCxJZZD5vi2p8rLvs8s
DHcZwjruzavX3dM3bGGMjDjHNC8cUxJdSx
3DJr3i4CYyMHqsWnEVcfr5tVuVfVQihS5M
EKzDwxdFDUduN8ByVhPYCqT8GCdKi3i6Az
t1Wdp16fds99Hh79ZA18YYNjeBDDQUV7Dxr
zniJvjfVCEQEeVUQB1L6w73Mh1ym2GsjWA5
02026B93627Ed2F76551E7CeF0466468B12db8Fab806266107b69947D9c95CEd9E7c
0x246FFDB387F1F8c48072E1C13443540017bC71b7
osmo1rs97j43nfyvc689y5rjvnnhrq3tes6ghn8m44l
desmos1rs97j43nfyvc689y5rjvnnhrq3tes6gh0y9454
dydx1rs97j43nfyvc689y5rjvnnhrq3tes6ghj9xpr6
umee1rs97j43nfyvc689y5rjvnnhrq3tes6ghf2468l
persistence1rs97j43nfyvc689y5rjvnnhrq3tes6gh4swkdf
quick1rs97j43nfyvc689y5rjvnnhrq3tes6ghscch6l
onomy1rs97j43nfyvc689y5rjvnnhrq3tes6ghpaunjg
sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v
stars1rs97j43nfyvc689y5rjvnnhrq3tes6gh0qlcgu
core1rs97j43nfyvc689y5rjvnnhrq3tes6ghgjs7yk
inj1vzjwweta3hegt99vfgrvmcq7rr5532yjsgxd4a
cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra
erd18n5sk95fq9dtgdsa9m9q5ddp66ch9cq5lpjflwn5j9z8x2e9h0qqrvk5qp
0.0.3664525
f2ed4c9253d3aca7d679bfa9f528d13e85c7f522b8857e094c850a157b750209
0573d7a9c745fa9fe224b080832aa93d740760b94f192c9c141c709945e9aaaf
r9etPtq3oboweMPju5gdYufmvwhH2euz8z
SP3WE1A84RCG3GWKRXYMXNRVQJ8PG3VDRKE7CMPM4
GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC
tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
0x7584df0780C5eB83b26aE55abBc265014f8bf897
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x90bD48144e08b66490BcA9a756BDe9f004F17857
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0xb6E8b0371A15CDadF1D8EdA34F78870A5e688B25
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
Performance ⏲ 43min 23s
Time spent for each spec: (total across mutations)