Skip to content

Commit 05b7510

Browse files
authored
Merge pull request #76 from session-foundation/dev
Android 1.29.0 / iOS 2.14.6
2 parents 39bb73d + ca654b0 commit 05b7510

File tree

88 files changed

+1711
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1711
-310
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Roll-back Allure Report
2+
3+
# This workflow removes (unpublishes) the last Allure report from gh-pages.
4+
#
5+
# When to use:
6+
# - Did not intend to create a new report (e.g. accidentally published a debug run)
7+
# - Incorrect inputs (wrong build, metadta, Appium branch, etc.)
8+
# - Test is corrupted by any other reason, don't want to muddy the result history
9+
10+
on:
11+
workflow_dispatch:
12+
13+
jobs:
14+
cleanup:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout gh-pages branch
18+
uses: actions/checkout@v4
19+
with:
20+
ref: gh-pages
21+
lfs: true
22+
fetch-depth: 0 # Need full history for other workflows that rely on file ages
23+
24+
- name: Configure git
25+
run: |
26+
git config user.name "github-actions[bot]"
27+
git config user.email "github-actions[bot]@users.noreply.github.com"
28+
29+
- name: Reset, force push and prune
30+
run: |
31+
echo "Resetting gh-pages by 1 commit..."
32+
git reset HEAD~1
33+
git push --force-with-lease
34+
git lfs prune --verify-remote || echo "LFS prune failed (non-fatal)"
35+
36+
- name: Summary
37+
run: |
38+
echo "Successfully removed last commit from gh-pages" >> $GITHUB_STEP_SUMMARY
39+
echo "Pruned orphaned LFS objects" >> $GITHUB_STEP_SUMMARY
40+
echo "" >> $GITHUB_STEP_SUMMARY
41+
echo "Triggered by: ${{ github.actor }}" >> $GITHUB_STEP_SUMMARY
42+
echo "Current HEAD: $(git rev-parse HEAD)" >> $GITHUB_STEP_SUMMARY

.github/workflows/android-regression.yml

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,58 @@ jobs:
9595
- name: Download APK & extract it
9696
run: |
9797
pwd
98+
99+
# Check if devnet is accessible before choosing APK
100+
echo "Checking devnet accessibility for APK selection..."
101+
DEVNET_ACCESSIBLE=false
102+
103+
# Retry logic
104+
for attempt in 1 2 3; do
105+
echo "Devnet check attempt $attempt/3..."
106+
if curl -s --connect-timeout 5 --max-time 10 http://sesh-net.local:1280 >/dev/null 2>&1; then
107+
echo "Devnet is accessible on attempt $attempt"
108+
DEVNET_ACCESSIBLE=true
109+
break
110+
else
111+
echo "Attempt $attempt failed"
112+
if [ $attempt -lt 3 ]; then
113+
echo "Waiting ${attempt}s before retry..."
114+
sleep $attempt
115+
fi
116+
fi
117+
done
118+
119+
if [ "$DEVNET_ACCESSIBLE" = "false" ]; then
120+
echo "Devnet is not accessible after 3 attempts"
121+
fi
122+
123+
# Download and extract APK
98124
wget -q -O session-android.apk.tar.xz ${{ github.event.inputs.APK_URL }}
99125
tar xf session-android.apk.tar.xz
100126
mv session-android-*universal extracted
101127
102-
if ls extracted/*automaticQa.apk; then
103-
mv extracted/*automaticQa.apk extracted/session-android.apk
104-
echo "IS_AUTOMATIC_QA=true" >> $GITHUB_ENV
105-
elif ls extracted/*qa.apk; then
128+
# Choose APK based on devnet accessibility
129+
if ls extracted/*automaticQa.apk 1>/dev/null 2>&1; then
130+
if [ "$DEVNET_ACCESSIBLE" = "true" ]; then
131+
echo "Using AQA build (devnet accessible)"
132+
mv extracted/*automaticQa.apk extracted/session-android.apk
133+
echo "IS_AUTOMATIC_QA=true" >> $GITHUB_ENV
134+
else
135+
echo "AQA build available but devnet not accessible - falling back to regular QA build"
136+
if ls extracted/*qa.apk 1>/dev/null 2>&1; then
137+
mv extracted/*qa.apk extracted/session-android.apk
138+
echo "IS_AUTOMATIC_QA=false" >> $GITHUB_ENV
139+
else
140+
echo "No regular QA build found as fallback"
141+
exit 1
142+
fi
143+
fi
144+
elif ls extracted/*qa.apk 1>/dev/null 2>&1; then
145+
echo "Using regular QA build"
106146
mv extracted/*qa.apk extracted/session-android.apk
107147
echo "IS_AUTOMATIC_QA=false" >> $GITHUB_ENV
108148
else
109-
echo "Error: No .qa APK found (only .qa builds are supported)"
149+
echo "No suitable APK found"
110150
exit 1
111151
fi
112152

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"prettier": "^3.3.3",
5050
"sharp": "^0.34.2",
5151
"sinon": "^19.0.2",
52+
"ssim.js": "^3.5.0",
5253
"sync-request-curl": "^3.3.3",
5354
"ts-node": "^10.9.1",
5455
"typescript": "^5.6.3",
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)