Skip to content

Commit 99be956

Browse files
ci: removed uninstallIU step for IDE case 4
1 parent 150f455 commit 99be956

3 files changed

Lines changed: 135 additions & 100 deletions

File tree

.github/workflows/ci_windows.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
# This workflow will build a Java project with Maven
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3-
4-
name: Java CI with Maven on Windows
5-
6-
on:
7-
push:
8-
branches:
9-
- master
10-
- release/**
11-
pull_request:
12-
branches:
13-
- master
14-
- release/**
15-
16-
jobs:
17-
build_windows:
18-
19-
runs-on:
20-
- eclipseUpd
21-
- BrnoWIN0007
1+
# # This workflow will build a Java project with Maven
2+
# # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
# name: Java CI with Maven on Windows
5+
6+
# on:
7+
# push:
8+
# branches:
9+
# - master
10+
# - release/**
11+
# pull_request:
12+
# branches:
13+
# - master
14+
# - release/**
15+
16+
# jobs:
17+
# build_windows:
18+
19+
# runs-on:
20+
# - eclipseUpd
21+
# - BrnoWIN0007
2222

23-
steps:
24-
- uses: actions/checkout@v4
25-
26-
- name: Clone IDF Release From Github
27-
uses: actions/checkout@v4
28-
with:
29-
repository: espressif/esp-idf
30-
path: dependencies/idf-tools
31-
submodules: 'true'
32-
ref: release/v5.1
33-
34-
- name: Set up Python
35-
uses: actions/setup-python@v4
36-
with:
37-
python-version: '3.11'
38-
39-
- name: Set up Maven
40-
uses: stCarolas/setup-maven@v5
41-
with:
42-
maven-version: 3.9.6
23+
# steps:
24+
# - uses: actions/checkout@v4
25+
26+
# - name: Clone IDF Release From Github
27+
# uses: actions/checkout@v4
28+
# with:
29+
# repository: espressif/esp-idf
30+
# path: dependencies/idf-tools
31+
# submodules: 'true'
32+
# ref: release/v5.1
33+
34+
# - name: Set up Python
35+
# uses: actions/setup-python@v4
36+
# with:
37+
# python-version: '3.11'
38+
39+
# - name: Set up Maven
40+
# uses: stCarolas/setup-maven@v5
41+
# with:
42+
# maven-version: 3.9.6
4343

44-
- name: Set up JDK 21
45-
uses: actions/setup-java@v4
46-
with:
47-
java-version: '21'
48-
distribution: 'temurin'
49-
50-
- name: Build with Maven
51-
run: mvn clean verify "-Djarsigner.skip=true" "-DskipTests=false" "-DtestWorkspace=C:/actions-runner/_work/workspace"
52-
53-
- name: Publish Test Reports
54-
if: ${{ always() }}
55-
uses: phoenix-actions/test-reporting@v12
56-
with:
57-
name: Windows Test Reports
58-
path:
59-
tests/*/*/*/TEST-*.xml
60-
reporter: java-junit
44+
# - name: Set up JDK 21
45+
# uses: actions/setup-java@v4
46+
# with:
47+
# java-version: '21'
48+
# distribution: 'temurin'
49+
50+
# - name: Build with Maven
51+
# run: mvn clean verify "-Djarsigner.skip=true" "-DskipTests=false" "-DtestWorkspace=C:/actions-runner/_work/workspace"
52+
53+
# - name: Publish Test Reports
54+
# if: ${{ always() }}
55+
# uses: phoenix-actions/test-reporting@v12
56+
# with:
57+
# name: Windows Test Reports
58+
# path:
59+
# tests/*/*/*/TEST-*.xml
60+
# reporter: java-junit

releng/update-site-tests/run-all-cases.sh

Lines changed: 63 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,60 @@ source "$ROOT_DIR/detect-latest-eclipse-steams.sh"
2020
FAIL=0
2121

2222
echo "=== Case 1: Plain Eclipse (latest R) + stable IEP install ==="
23-
CASE_ID="case1-eclipseR-stable" \
24-
BASE_PRODUCT="eclipse-cdt" \
25-
ECLIPSE_URL="$ECLIPSE_R_URL" \
26-
ECLIPSE_P2_REPO="$ECLIPSE_R_P2" \
27-
DO_DEV_UPDATE=0 \
28-
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
29-
bash "$ROOT_DIR/run-single-case.sh" || FAIL=1
23+
24+
if CASE_ID="case1-eclipseR-stable" \
25+
BASE_PRODUCT="eclipse-cdt" \
26+
ECLIPSE_URL="$ECLIPSE_R_URL" \
27+
ECLIPSE_P2_REPO="$ECLIPSE_R_P2" \
28+
DO_DEV_UPDATE=0 \
29+
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
30+
bash "$ROOT_DIR/run-single-case.sh"; then
31+
32+
echo "✅ Test Case 1 completed successfully"
33+
34+
else
35+
echo "❌ Test Case 1 FAILED"
36+
FAIL=1
37+
fi
3038

3139
echo "=== Case 2: Plain Eclipse (latest R) stable -> dev update ==="
32-
CASE_ID="case2-eclipseR-stable-to-dev" \
33-
BASE_PRODUCT="eclipse-cdt" \
34-
ECLIPSE_URL="$ECLIPSE_R_URL" \
35-
ECLIPSE_P2_REPO="$ECLIPSE_R_P2" \
36-
DO_DEV_UPDATE=1 \
37-
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
38-
bash "$ROOT_DIR/run-single-case.sh" || FAIL=1
40+
41+
if CASE_ID="case2-eclipseR-stable-to-dev" \
42+
BASE_PRODUCT="eclipse-cdt" \
43+
ECLIPSE_URL="$ECLIPSE_R_URL" \
44+
ECLIPSE_P2_REPO="$ECLIPSE_R_P2" \
45+
DO_DEV_UPDATE=1 \
46+
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
47+
bash "$ROOT_DIR/run-single-case.sh"; then
48+
49+
echo "✅ Test Case 2 completed successfully"
50+
51+
else
52+
echo "❌ Test Case 2 FAILED"
53+
FAIL=1
54+
fi
3955

4056
echo "=== Case 3: Plain Eclipse (latest milestone) stable -> dev update ==="
57+
4158
if [[ -n "${ECLIPSE_M_RELEASE:-}" && -n "${ECLIPSE_M_URL:-}" && -n "${ECLIPSE_M_P2:-}" ]]; then
42-
CASE_ID="case3-eclipseM-stable-to-dev" \
43-
BASE_PRODUCT="eclipse-cdt" \
44-
ECLIPSE_URL="$ECLIPSE_M_URL" \
45-
ECLIPSE_P2_REPO="$ECLIPSE_M_P2" \
46-
DO_DEV_UPDATE=1 \
47-
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
48-
bash "$ROOT_DIR/run-single-case.sh" || FAIL=1
59+
60+
if CASE_ID="case3-eclipseM-stable-to-dev" \
61+
BASE_PRODUCT="eclipse-cdt" \
62+
ECLIPSE_URL="$ECLIPSE_M_URL" \
63+
ECLIPSE_P2_REPO="$ECLIPSE_M_P2" \
64+
DO_DEV_UPDATE=1 \
65+
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
66+
bash "$ROOT_DIR/run-single-case.sh"; then
67+
68+
echo "✅ Test Case 3 completed successfully"
69+
70+
else
71+
echo "❌ Test Case 3 FAILED"
72+
FAIL=1
73+
fi
74+
4975
else
50-
echo "Skipping Case 3 (no milestone detected)."
76+
echo "⚠️ Skipping Case 3 (no milestone detected)."
5177
fi
5278

5379
echo "=== Preparing Espressif-IDE (latest stable) for Case 4 ==="
@@ -85,12 +111,21 @@ test -x "$ESPRESSIF_IDE_SOURCE/espressif-ide" || { echo "❌ Invalid ESPRESSIF_I
85111

86112
echo "=== Case 4: Espressif-IDE stable -> dev update ==="
87113
: "${ESPRESSIF_IDE_SOURCE:?Provide ESPRESSIF_IDE_SOURCE for Case 4 (path to extracted IDE root)}"
88-
CASE_ID="case4-espressif-ide-stable-to-dev" \
89-
BASE_PRODUCT="espressif-ide" \
90-
DO_DEV_UPDATE=1 \
91-
ESPRESSIF_IDE_SOURCE="$ESPRESSIF_IDE_SOURCE" \
92-
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
93-
bash "$ROOT_DIR/run-single-case.sh" || FAIL=1
114+
115+
if CASE_ID="case4-espressif-ide-bundled-to-nightly" \
116+
BASE_PRODUCT="espressif-ide" \
117+
DO_DEV_UPDATE=1 \
118+
SKIP_STABLE_INSTALL=1 \
119+
ESPRESSIF_IDE_SOURCE="$ESPRESSIF_IDE_SOURCE" \
120+
WORKROOT="$WORKROOT" OUTROOT="$OUTROOT" \
121+
bash "$ROOT_DIR/run-single-case.sh"; then
122+
123+
echo "✅ Test Case 4 completed successfully"
124+
125+
else
126+
echo "❌ Test Case 4 FAILED"
127+
FAIL=1
128+
fi
94129

95130
echo ""
96131
echo "All cases finished. Artifacts in: $OUTROOT"

releng/update-site-tests/run-single-case.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
CASE_ID="${CASE_ID:?CASE_ID not set}"
5-
BASE_PRODUCT="${BASE_PRODUCT:?BASE_PRODUCT not set}" # "eclipse-cdt" or "espressif-ide"
5+
BASE_PRODUCT="${BASE_PRODUCT:?BASE_PRODUCT not set}"
66
ECLIPSE_URL="${ECLIPSE_URL:-}"
77
ECLIPSE_P2_REPO="${ECLIPSE_P2_REPO:-}"
88

@@ -33,7 +33,6 @@ if [[ "$BASE_PRODUCT" == "eclipse-cdt" ]]; then
3333
curl -fsSL "$ECLIPSE_URL" -o "$WORKDIR/eclipse.tar.gz"
3434
tar -xzf "$WORKDIR/eclipse.tar.gz" -C "$WORKDIR"
3535

36-
### UPDATED: more robust way to locate Eclipse home (prefer eclipse/eclipse, fallback to searching executable)
3736
if [[ -x "$WORKDIR/eclipse/eclipse" ]]; then
3837
ECLIPSE_HOME="$WORKDIR/eclipse"
3938
else
@@ -44,16 +43,16 @@ if [[ "$BASE_PRODUCT" == "eclipse-cdt" ]]; then
4443

4544
elif [[ "$BASE_PRODUCT" == "espressif-ide" ]]; then
4645
: "${ESPRESSIF_IDE_SOURCE:?ESPRESSIF_IDE_SOURCE not set (path to preinstalled IDE or extracted IDE root)}"
47-
echo "Copying Espressif-IDE from: $ESPRESSIF_IDE_SOURCE" | tee "$LOGDIR/ide-copy.log"
48-
cp -a "$ESPRESSIF_IDE_SOURCE" "$ECLIPSE_HOME"
46+
echo "Copying Espressif-IDE from: $ESPRESSIF_IDE_SOURCE" | tee "$LOGDIR/ide-copy.log"
47+
mkdir -p "$ECLIPSE_HOME"
48+
cp -a "$ESPRESSIF_IDE_SOURCE"/. "$ECLIPSE_HOME"/
4949
else
5050
echo "Unknown BASE_PRODUCT: $BASE_PRODUCT"
5151
exit 1
5252
fi
5353

5454
echo "ECLIPSE_HOME=$ECLIPSE_HOME" | tee "$LOGDIR/eclipse-home.log"
5555

56-
### UPDATED: choose correct launcher for p2 director (plain Eclipse uses 'eclipse', Espressif-IDE uses 'espressif-ide')
5756
if [[ -x "$ECLIPSE_HOME/eclipse" ]]; then
5857
LAUNCHER="$ECLIPSE_HOME/eclipse"
5958
elif [[ -x "$ECLIPSE_HOME/espressif-ide" ]]; then
@@ -68,7 +67,6 @@ echo "Using launcher: $LAUNCHER" | tee "$LOGDIR/launcher.log"
6867
# Common director flags: IMPORTANT to keep same destination/profile/bundlepool across steps
6968
P2_DEST_ARGS=( -destination "$ECLIPSE_HOME" -profile SDKProfile -bundlepool "$WORKDIR/p2" -roaming )
7069

71-
### UPDATED: helper to avoid trailing comma in -repository when ECLIPSE_P2_REPO is empty (e.g., Case 4)
7270
build_repo_list() {
7371
local primary="$1"
7472
local extra="${2:-}"
@@ -82,7 +80,7 @@ build_repo_list() {
8280
install_iu () {
8381
local repo="$1"
8482
local log="$2"
85-
"$LAUNCHER" \ ### UPDATED: was "$ECLIPSE_HOME/eclipse"
83+
"$LAUNCHER" \
8684
-nosplash \
8785
-application org.eclipse.equinox.p2.director \
8886
-repository "$repo" \
@@ -95,7 +93,7 @@ install_iu () {
9593
replace_iu () {
9694
local repo="$1"
9795
local log="$2"
98-
"$LAUNCHER" \ ### UPDATED: was "$ECLIPSE_HOME/eclipse"
96+
"$LAUNCHER" \
9997
-nosplash \
10098
-application org.eclipse.equinox.p2.director \
10199
-repository "$repo" \
@@ -108,7 +106,7 @@ replace_iu () {
108106

109107
list_ius () {
110108
local out="$1"
111-
"$LAUNCHER" \ ### UPDATED: was "$ECLIPSE_HOME/eclipse"
109+
"$LAUNCHER" \
112110
-nosplash \
113111
-application org.eclipse.equinox.p2.director \
114112
-listInstalledIUs \
@@ -119,7 +117,7 @@ list_ius () {
119117

120118
list_roots () {
121119
local out="$1"
122-
"$LAUNCHER" \ ### UPDATED: was "$ECLIPSE_HOME/eclipse"
120+
"$LAUNCHER" \
123121
-nosplash \
124122
-application org.eclipse.equinox.p2.director \
125123
-listInstalledRoots \
@@ -129,14 +127,16 @@ list_roots () {
129127
}
130128

131129
# --- Step A: install stable ---
132-
echo "Installing STABLE from $IEP_STABLE_REPO" | tee "$LOGDIR/stepA.log"
133-
### UPDATED: avoid trailing comma if ECLIPSE_P2_REPO is empty
134-
install_iu "$(build_repo_list "$IEP_STABLE_REPO" "${ECLIPSE_P2_REPO:-}")" "stable-install.log"
130+
if [[ "${SKIP_STABLE_INSTALL:-0}" != "1" ]]; then
131+
echo "Installing STABLE from $IEP_STABLE_REPO" | tee "$LOGDIR/stepA.log"
132+
install_iu "$(build_repo_list "$IEP_STABLE_REPO" "${ECLIPSE_P2_REPO:-}")" "stable-install.log"
133+
else
134+
echo "Skipping STABLE install (SKIP_STABLE_INSTALL=1)" | tee "$LOGDIR/stepA.log"
135+
fi
135136

136137
# --- Step B: optional update to dev/nightly ---
137138
if [[ "${DO_DEV_UPDATE:-0}" == "1" ]]; then
138139
echo "Updating to DEV/NIGHTLY from $IEP_DEV_REPO" | tee "$LOGDIR/stepB.log"
139-
### UPDATED: avoid trailing comma if ECLIPSE_P2_REPO is empty
140140
replace_iu "$(build_repo_list "$IEP_DEV_REPO" "${ECLIPSE_P2_REPO:-}")" "dev-update.log"
141141
fi
142142

0 commit comments

Comments
 (0)