Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Removed the JavaSE ports screemshot tests since it was badly done. Will revisit this in a future PR.

Removed the JavaSE ports screemshot tests since it was badly done. Will revisit this in a future PR.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

ANDROID_TEST_SOURCE_DIR="$SCRIPT_DIR/device-runner-app/androidTest"
ANDROID_TEST_ROOT="$GRADLE_PROJECT_DIR/app/src/androidTest"
ANDROID_TEST_JAVA_DIR="$ANDROID_TEST_ROOT/java/${PACKAGE_PATH}"
if [ -d "$ANDROID_TEST_ROOT" ]; then
ba_log "Removing template Android instrumentation tests from $ANDROID_TEST_ROOT"

P1 Badge Android tests path uses undefined PACKAGE_PATH

In build-android-app.sh, the instrumentation test path is built with ${PACKAGE_PATH} but the earlier package-name definitions were removed. Because the script runs with set -u, reaching this line aborts the build before any tests are copied or Gradle runs, so the Android sample cannot be built.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 60 to 62
CN1_VERSION="8.0-SNAPSHOT"
WORK_DIR="scripts/hellocodenameone"
rm -rf "$WORK_DIR"; mkdir -p "$WORK_DIR"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove checked-in iOS app before build

build-ios-app.sh now wipes scripts/hellocodenameone (rm -rf "$WORK_DIR") but the skeleton generation step was removed, so the directory stays empty while the subsequent xmlstarlet edits expect pom.xml to exist. Running the script will therefore stop immediately with a missing-file error before any iOS project is built.

Useful? React with 👍 / 👎.

Comment on lines 119 to 122
EXTRA_MVN_ARGS+=("-Dcodenameone.version=${CN1_VERSION}")

SETTINGS_FILE="$APP_DIR/common/codenameone_settings.properties"
if [ ! -f "$SETTINGS_FILE" ]; then
bia_log "codenameone_settings.properties not found at $SETTINGS_FILE" >&2
exit 1
fi

set_property() {
local key="$1" value="$2"
if grep -q "^${key}=" "$SETTINGS_FILE"; then
if sed --version >/dev/null 2>&1; then
sed -i -E "s|^${key}=.*$|${key}=${value}|" "$SETTINGS_FILE"
else
sed -i '' -E "s|^${key}=.*$|${key}=${value}|" "$SETTINGS_FILE"
fi
else
printf '\n%s=%s\n' "$key" "$value" >> "$SETTINGS_FILE"
fi
}

set_property "codename1.packageName" "$PACKAGE_NAME"
set_property "codename1.mainName" "$MAIN_NAME"

# Ensure trailing newline
tail -c1 "$SETTINGS_FILE" | read -r _ || echo >> "$SETTINGS_FILE"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Undefined SETTINGS_FILE aborts iOS build

The iOS build script calls tail -c1 "$SETTINGS_FILE" even though SETTINGS_FILE is never defined after the refactor. With set -u enabled, any invocation now exits with an unbound variable error before Maven or xcodebuild are run.

Useful? React with 👍 / 👎.

@github-actions
Copy link

github-actions bot commented Nov 23, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Nov 24, 2025

iOS screenshot updates

Compared 6 screenshots: 0 matched, 2 updated, 4 missing references.

  • BrowserComponent — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    BrowserComponent
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as BrowserComponent.png in workflow artifacts.

  • GraphicsPipeline — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsPipeline.png.

    GraphicsPipeline
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsPipeline.png in workflow artifacts.

  • GraphicsShapesAndGradients — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsShapesAndGradients.png.

    GraphicsShapesAndGradients
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsShapesAndGradients.png in workflow artifacts.

  • GraphicsTransformations — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsTransformations.png.

    GraphicsTransformations
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsTransformations.png in workflow artifacts.

  • MainActivity — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    MainActivity
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as MainActivity.png in workflow artifacts.

  • MediaPlayback — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/MediaPlayback.png.

    MediaPlayback
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as MediaPlayback.png in workflow artifacts.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Nov 24, 2025

Android screenshot updates

Compared 4 screenshots: 1 matched, 1 updated, 2 missing references.

  • BrowserComponent — updated screenshot. Screenshot differs (320x616 px, bit depth 8).

    BrowserComponent
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as BrowserComponent.png in workflow artifacts.

  • GraphicsPipeline — missing reference. Reference screenshot missing at /home/runner/work/CodenameOne/CodenameOne/scripts/android/screenshots/GraphicsPipeline.png.

    GraphicsPipeline
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as GraphicsPipeline.png in workflow artifacts.

  • GraphicsTransformations — missing reference. Reference screenshot missing at /home/runner/work/CodenameOne/CodenameOne/scripts/android/screenshots/GraphicsTransformations.png.

    GraphicsTransformations
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as GraphicsTransformations.png in workflow artifacts.

Native Android coverage

  • 📊 Line coverage: 18.02% (1940/10763 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 17.61% (8936/50756), branch 9.57% (451/4714), complexity 12.37% (528/4267), method 24.99% (456/1825), class 25.33% (77/304)
    • Lowest covered classes
      • com.codename1.impl.android.com.codename1.impl.android.AndroidContactsManager – 0.00% (0/398 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$Video – 0.00% (0/168 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.IntentIntegrator – 0.00% (0/139 lines covered)
      • com.codename1.impl.android.util.com.codename1.impl.android.util.Base64 – 0.00% (0/117 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.CodenameOneInputConnection – 0.00% (0/109 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$SocketImpl – 0.00% (0/77 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidTextureView – 0.00% (0/76 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidSurfaceView – 0.00% (0/73 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.LocalNotificationPublisher – 0.00% (0/65 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.FridaDetectionUtil – 0.00% (0/64 lines covered)

@shai-almog shai-almog merged commit 77931c5 into master Nov 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants