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

feat: CI runs for runtime and buildtime init on mobile #1944

Merged
merged 71 commits into from
Jan 23, 2025
Merged
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
d5cdc09
reworked android device tests
bitsandfoxes Dec 16, 2024
24ab788
fix emulator
bitsandfoxes Dec 16, 2024
6324708
fixed log
bitsandfoxes Dec 16, 2024
20c69d0
closing this should not be that hard
bitsandfoxes Dec 16, 2024
91c4bfa
wait for emulator
bitsandfoxes Dec 17, 2024
5ca3ee2
API levels
bitsandfoxes Dec 17, 2024
c8cea8c
fail test
bitsandfoxes Dec 17, 2024
8bc2a64
fixed KVM permissions
bitsandfoxes Dec 17, 2024
bf2fc93
exit instead of return
bitsandfoxes Dec 17, 2024
a727aa8
simplify emulator setup
bitsandfoxes Dec 17, 2024
b40efd1
increase timeout. by a lot.
bitsandfoxes Dec 17, 2024
7a23993
fix OnQuit detection
bitsandfoxes Dec 18, 2024
5271f5f
log structure
bitsandfoxes Dec 18, 2024
8d94d03
timeout for getpid
bitsandfoxes Dec 18, 2024
28e92ae
log quit even later
bitsandfoxes Dec 18, 2024
7ccbc10
logging and delay
bitsandfoxes Dec 18, 2024
deb2c35
smoke tester logging
bitsandfoxes Dec 18, 2024
6bc40fe
always log logcat
bitsandfoxes Dec 18, 2024
1f44a1e
make it run solo
bitsandfoxes Dec 18, 2024
ba08950
need to cache the logs
bitsandfoxes Dec 18, 2024
157eb7e
don't clear logcat
bitsandfoxes Dec 18, 2024
5c7c3ee
forgot to initialize
bitsandfoxes Dec 18, 2024
e263851
reduce timeout
bitsandfoxes Dec 18, 2024
979d39d
always retry
bitsandfoxes Dec 18, 2024
c9232c8
fixed log caching
bitsandfoxes Dec 18, 2024
04690b9
fixed retry
bitsandfoxes Dec 18, 2024
f00e990
increased timeout
bitsandfoxes Dec 18, 2024
e0e72eb
added timing logging
bitsandfoxes Dec 18, 2024
a68505e
fixed retry success check
bitsandfoxes Dec 18, 2024
ea025cb
fixed API
bitsandfoxes Dec 18, 2024
9ab10eb
run CI
bitsandfoxes Dec 18, 2024
bf8ae36
wrap running tests in retry
bitsandfoxes Dec 18, 2024
d4ad433
typo
bitsandfoxes Dec 18, 2024
460f0b3
don't exit on pid issue
bitsandfoxes Dec 18, 2024
a16e677
can't write-error
bitsandfoxes Dec 18, 2024
1e61dde
logging
bitsandfoxes Dec 18, 2024
d1a9755
restored flow
bitsandfoxes Dec 18, 2024
9163732
timeout for starting activity
bitsandfoxes Dec 18, 2024
4beee9d
removed retry wrapper for android smoke test job
bitsandfoxes Dec 19, 2024
d624243
simplification
bitsandfoxes Dec 19, 2024
11e8564
fixed boolean
bitsandfoxes Dec 19, 2024
2b3e6b4
fixed missing platform on iOS
bitsandfoxes Dec 19, 2024
64453c3
using 0/1 instead of string
bitsandfoxes Dec 19, 2024
dbbea6a
no more non-main nonsense
bitsandfoxes Dec 19, 2024
59de327
missed one check
bitsandfoxes Dec 20, 2024
ddb5b2b
merged
bitsandfoxes Dec 20, 2024
5685c80
duplicate necessary build outputs
bitsandfoxes Dec 20, 2024
d31f523
allow for the init config to be overwritten
bitsandfoxes Dec 20, 2024
e02f8f8
fixed the replacement script
bitsandfoxes Dec 20, 2024
edf8521
fixed runtime artifact naming
bitsandfoxes Dec 20, 2024
572b482
fixed naming issue
bitsandfoxes Dec 20, 2024
fb2bb8a
fixed last naming issues
bitsandfoxes Dec 20, 2024
b85a11e
typo
bitsandfoxes Dec 20, 2024
8bb4724
artifact name
bitsandfoxes Dec 20, 2024
3eceb33
some kinks
bitsandfoxes Dec 20, 2024
9294b63
artifact naming is hard
bitsandfoxes Dec 20, 2024
98b5550
fixed input type for android smoke test
bitsandfoxes Dec 20, 2024
4f50159
one more time
bitsandfoxes Dec 20, 2024
ae63fbd
missing ;
bitsandfoxes Dec 20, 2024
2a76d95
merged main
bitsandfoxes Jan 14, 2025
e666b76
Merge branch 'main' into feat/ci-all-init
bitsandfoxes Jan 15, 2025
97e817e
heavily added logs
bitsandfoxes Jan 15, 2025
f0b76c1
.
bitsandfoxes Jan 15, 2025
6b09f14
fix test
bitsandfoxes Jan 15, 2025
416bf2a
more timeouts
bitsandfoxes Jan 15, 2025
75e96cd
no more explainer necessary
bitsandfoxes Jan 15, 2025
d68e8bd
no point in rety within a run that requires the crash/server
bitsandfoxes Jan 16, 2025
1f2485b
Revert "no more explainer necessary"
iambriccardo Jan 17, 2025
738a88a
comment
bitsandfoxes Jan 17, 2025
0d9180d
Merge branch 'main' into feat/ci-all-init
bitsandfoxes Jan 20, 2025
ef0c483
merged
bitsandfoxes Jan 21, 2025
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
Prev Previous commit
Next Next commit
need to cache the logs
bitsandfoxes committed Dec 18, 2024

Verified

This commit was signed with the committer’s verified signature.
navidkpr Navid Pour
commit ba08950fd396a581f07909bc5af1e4f6400a7010
10 changes: 5 additions & 5 deletions scripts/smoke-test-android.ps1
Original file line number Diff line number Diff line change
@@ -296,6 +296,7 @@ function RunTest([string] $Name, [string] $SuccessString, [string] $FailureStrin
Write-Host "Waiting for tests to run..."

$processFinished = $false
$logCache = @()
$startTime = Get-Date
$timeout = New-TimeSpan -Seconds 500

@@ -306,6 +307,7 @@ function RunTest([string] $Name, [string] $SuccessString, [string] $FailureStrin
if ($newLogs)
{
adb -s $device logcat -c
$logCache += $newLogs

# Dunp logs on console line by line
# $newLogs | ForEach-Object { Write-Host $_ }
@@ -333,15 +335,13 @@ function RunTest([string] $Name, [string] $SuccessString, [string] $FailureStrin
Write-Host "::endgroup::"
Write-Host "'$Name' tests timed out. See logcat for more details."
}

$logs = LogCat $device $appPID

Write-Host "::group::logcat"
$logs | ForEach-Object { Write-Host $_ }
$logCache | ForEach-Object { Write-Host $_ }
Write-Host "::endgroup::"

$lineWithSuccess = $logs | Select-String $SuccessString
$lineWithFailure = $logs | Select-String $FailureString
$lineWithSuccess = $logCache | Select-String $SuccessString
$lineWithFailure = $logCache | Select-String $FailureString

if ($null -ne $lineWithSuccess)
{