Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

  • Added .ci/container/Dockerfile based on Ubuntu 24.04 with Zulu JDKs (8, 11, 17, 21, 25).
  • Added .github/workflows/build-container.yml to build and push the container image to GHCR.
  • Updated scripts/setup-workspace.sh to allow overriding CN1_BINARIES location and skip updates if requested or read-only.
  • Updated .github/workflows/pr.yml to use ghcr.io/${{ github.repository }}/ci-container:latest and remove manual setups.
  • Updated .github/workflows/ant.yml to use the container.
  • Updated .github/workflows/scripts-android.yml to use the container with --privileged (for KVM/Emulator support) and utilize pre-installed JDKs.

PR created automatically by Jules for task 15610411111039306208 started by @shai-almog

shai-almog and others added 3 commits December 19, 2025 07:26
…endencies.

This change introduces a Docker container (`.ci/container/Dockerfile`) that pre-installs:
- OpenJDK 8 (ZuluFX), 11, 17, 21, and 25 (Zulu).
- Ant, Maven, Python 3.
- Codename One binaries (`cn1-binaries`).
- Required libraries for headless UI testing (xvfb, libgl1-mesa-dri).

Updates `pr.yml`, `ant.yml`, and `scripts-android.yml` to run jobs inside this container, removing redundant setup steps (JDK download, tool installation) to improve build speed and reproducibility.

Also updates `scripts/setup-workspace.sh` to respect the `CN1_BINARIES` environment variable and handle the pre-configured environment correctly.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

…endencies.

This change introduces a Docker container (`.ci/container/Dockerfile`) that pre-installs:
- OpenJDK 8 (ZuluFX), 11, 17, 21, and 25 (Zulu).
- Android SDK (command-line tools, platform-tools, build-tools) and NDK dependencies.
- Ant, Maven, Python 3.
- Codename One binaries (`cn1-binaries`).
- Required libraries for headless UI testing (xvfb, libgl1-mesa-dri).

Updates `pr.yml`, `ant.yml`, and `scripts-android.yml` to run jobs inside this container (`ghcr.io/codenameone/codenameone/ci-container:latest`), removing redundant setup steps (JDK download, tool installation) to improve build speed and reproducibility.

The workflow `.github/workflows/build-container.yml` is added to build and push this container image to GHCR, ensuring the image tag is always lowercase to comply with registry requirements.

Also updates `scripts/setup-workspace.sh` to respect the `CN1_BINARIES` environment variable and handle the pre-configured environment correctly.
…endencies.

This change introduces a Docker container (`.ci/container/Dockerfile`) that pre-installs:
- OpenJDK 8 (ZuluFX), 11, 17, 21, and 25 (Zulu).
- Android SDK (command-line tools, platform-tools, build-tools) and NDK dependencies.
- Ant, Maven, Python 3.
- Codename One binaries (`cn1-binaries`).
- Required libraries for headless UI testing (xvfb, libgl1-mesa-dri, libncurses6).

Updates `pr.yml`, `ant.yml`, and `scripts-android.yml` to run jobs inside this container (`ghcr.io/codenameone/codenameone/ci-container:latest`), removing redundant setup steps (JDK download, tool installation) to improve build speed and reproducibility.

The workflow `.github/workflows/build-container.yml` is added to build and push this container image to GHCR, ensuring the image tag is always lowercase to comply with registry requirements.

Also updates `scripts/setup-workspace.sh` to respect the `CN1_BINARIES` environment variable and handle the pre-configured environment correctly.
…endencies.

This change introduces a Docker container (`.ci/container/Dockerfile`) that pre-installs:
- OpenJDK 8 (ZuluFX), 11, 17, 21, and 25 (Zulu).
- Android SDK (command-line tools, platform-tools, build-tools) and NDK dependencies.
- Ant, Maven, Python 3.
- Codename One binaries (`cn1-binaries`).
- Required libraries for headless UI testing (xvfb, libgl1-mesa-dri, libncurses6).

Updates `pr.yml`, `ant.yml`, and `scripts-android.yml` to run jobs inside this container (`ghcr.io/codenameone/codenameone/ci-container:latest`), removing redundant setup steps (JDK download, tool installation) to improve build speed and reproducibility.

The workflow `.github/workflows/build-container.yml` is added to build and push this container image to GHCR, ensuring the image tag is always lowercase to comply with registry requirements.

Also updates `scripts/setup-workspace.sh` to respect the `CN1_BINARIES` environment variable and handle the pre-configured environment correctly.
…endencies.

This change introduces a Docker container (`.ci/container/Dockerfile`) that pre-installs:
- OpenJDK 8 (ZuluFX), 11, 17, 21, and 25 (Zulu).
- Android SDK (command-line tools, platform-tools, build-tools) and NDK dependencies.
- Ant, Maven, Python 3.
- Codename One binaries (`cn1-binaries`).
- Required libraries for headless UI testing (xvfb, libgl1-mesa-dri, libncurses6).

Updates `pr.yml`, `ant.yml`, and `scripts-android.yml` to run jobs inside this container (`ghcr.io/codenameone/codenameone/ci-container:latest`), removing redundant setup steps (JDK download, tool installation) to improve build speed and reproducibility.

The workflow `.github/workflows/build-container.yml` is added to build and push this container image to GHCR, ensuring the image tag is always lowercase to comply with registry requirements.

Also updates `scripts/setup-workspace.sh` to respect the `CN1_BINARIES` environment variable and handle the pre-configured environment correctly.
@shai-almog shai-almog marked this pull request as ready for review December 19, 2025 10:53
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

Here are some automated review suggestions for this pull request.

ℹ️ 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 37 to 40
javac.classpath=\
${file.reference.asm-5.0.3.jar}:\
${file.reference.asm-commons-5.0.3.jar}:\
${file.reference.asm-tree-5.0.3.jar}
${file.reference.asm-9.8.jar}:\
${file.reference.asm-commons-9.8.jar}:\
${file.reference.asm-tree-9.8.jar}

Choose a reason for hiding this comment

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

P1 Badge Fix mismatched ASM property names in ByteCodeTranslator classpath

The javac.classpath now references ${file.reference.asm-9.8.jar}, ${file.reference.asm-commons-9.8.jar}, and ${file.reference.asm-tree-9.8.jar}, but the only defined properties remain file.reference.asm-5.0.3.jar, file.reference.asm-commons-5.0.3.jar, and file.reference.asm-tree-5.0.3.jar. In Ant/NetBeans builds the undefined properties resolve to empty strings, so the ASM JARs drop out of the classpath and ByteCodeTranslator will fail to compile with missing ASM classes. Please align the property names with the new 9.8 JARs or update the classpath to use the existing definitions.

Useful? React with 👍 / 👎.

shai-almog and others added 2 commits December 19, 2025 13:01
…endencies.

This change introduces a Docker container (`.ci/container/Dockerfile`) that pre-installs:
- OpenJDK 8 (ZuluFX), 11, 17, 21, and 25 (Zulu).
- Android SDK (command-line tools, platform-tools, build-tools) and NDK dependencies.
- Ant, Maven, Python 3.
- Codename One binaries (`cn1-binaries`).
- Required libraries for headless UI testing (xvfb, libgl1-mesa-dri, libncurses6).

Updates `pr.yml`, `ant.yml`, and `scripts-android.yml` to run jobs inside this container (`ghcr.io/codenameone/codenameone/ci-container:latest`), removing redundant setup steps (JDK download, tool installation) to improve build speed and reproducibility.

The workflow `.github/workflows/build-container.yml` is added to build and push this container image to GHCR, ensuring the image tag is always lowercase to comply with registry requirements.

Also updates `scripts/setup-workspace.sh` to respect the `CN1_BINARIES` environment variable and handle the pre-configured environment correctly.

Explicit `packages: read` permissions are added to `pr.yml`, `ant.yml`, and `scripts-android.yml` to allow pulling the CI container from GHCR.
@github-actions
Copy link

github-actions bot commented Dec 19, 2025

✅ ByteCodeTranslator Quality Report

Test & Coverage

  • Tests: 103 total, 0 failed, 0 skipped

Benchmark Results

  • Execution Time: 16511 ms

  • Hotspots (Top 20 sampled methods):

    • 43.16% com.codename1.tools.translator.Parser.isMethodUsed (1302 samples)
    • 12.50% java.lang.String.indexOf (377 samples)
    • 10.21% com.codename1.tools.translator.Parser.addToConstantPool (308 samples)
    • 7.39% java.util.Hashtable.get (223 samples)
    • 6.43% java.util.ArrayList.indexOf (194 samples)
    • 2.78% java.lang.Object.hashCode (84 samples)
    • 2.19% com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable (66 samples)
    • 1.69% com.codename1.tools.translator.ByteCodeClass.calcUsedByNative (51 samples)
    • 1.09% com.codename1.tools.translator.Parser.cullMethods (33 samples)
    • 0.93% com.codename1.tools.translator.BytecodeMethod.optimize (28 samples)
    • 0.80% java.lang.Integer.getChars (24 samples)
    • 0.80% java.lang.StringBuilder.append (24 samples)
    • 0.76% java.io.FileOutputStream.writeBytes (23 samples)
    • 0.63% java.io.FileOutputStream.open0 (19 samples)
    • 0.46% com.codename1.tools.translator.Parser.getClassByName (14 samples)
    • 0.40% java.util.TreeMap.getEntry (12 samples)
    • 0.40% com.codename1.tools.translator.MultipleSignatureSet.containsSignature (12 samples)
    • 0.36% java.lang.System.identityHashCode (11 samples)
    • 0.36% com.codename1.tools.translator.Parser.generateClassAndMethodIndexHeader (11 samples)
    • 0.33% com.codename1.tools.translator.ByteCodeClass.markDependent (10 samples)
  • ⚠️ Coverage report not generated.

Static Analysis

  • ✅ SpotBugs: no findings (report was not generated by the build).
  • ⚠️ PMD report not generated.
  • ⚠️ Checkstyle report not generated.

Generated automatically by the PR CI workflow.

…endencies.

This change introduces a Docker container (`.ci/container/Dockerfile`) that pre-installs:
- OpenJDK 8 (ZuluFX), 11, 17, 21, and 25 (Zulu).
- Android SDK (command-line tools, platform-tools, build-tools) and NDK dependencies.
- Ant, Maven, Python 3.
- Codename One binaries (`cn1-binaries`).
- Required libraries for headless UI testing (xvfb, libgl1-mesa-dri, libncurses6).

Updates `pr.yml`, `ant.yml`, and `scripts-android.yml` to run jobs inside this container (`ghcr.io/codenameone/codenameone/ci-container:latest`), removing redundant setup steps (JDK download, tool installation) to improve build speed and reproducibility.

The workflow `.github/workflows/build-container.yml` is added to build and push this container image to GHCR, ensuring the image tag is always lowercase to comply with registry requirements.

Also updates `scripts/setup-workspace.sh` to respect the `CN1_BINARIES` environment variable and handle the pre-configured environment correctly.

Explicit `packages: read` permissions are added to `pr.yml`, `ant.yml`, and `scripts-android.yml` to allow pulling the CI container from GHCR. The `pr.yml` workflow now defaults to `bash` shell to support `pipefail`. The `scripts-android.yml` workflow removes unnecessary `sudo` commands for KVM setup as the container is privileged.
@github-actions
Copy link

github-actions bot commented Dec 19, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

…r.io/codenameone/codenameone/ci-container`) with pre-installed build dependencies (OpenJFX 8, OpenJDK 11/17/21/25, Android SDK/NDK, Ant, Maven).

- Refactor `pr.yml`, `ant.yml`, and `scripts-android.yml` to execute within the container environment, removing redundant setup steps.
- Introduce `.github/workflows/build-container.yml` to automate container image builds.
- Enhance `scripts/setup-workspace.sh` to respect container-provided `CN1_BINARIES` and skip read-only updates.
- Fix `AndroidGradleBuilder.java` to correctly detect the Android SDK root when using `cmdline-tools` directly and ensure `sdkmanager` executes with the correct Java 17 environment.
@shai-almog
Copy link
Collaborator

shai-almog commented Dec 19, 2025

iOS screenshot updates

Compared 30 screenshots: 23 matched, 6 updated, 1 missing reference.

  • 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.

  • graphics-draw-gradient — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-draw-gradient
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 844x1835.
    Full-resolution PNG saved as graphics-draw-gradient.png in workflow artifacts.

  • graphics-draw-round-rect — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/graphics-draw-round-rect.png.

    graphics-draw-round-rect
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 844x1835.
    Full-resolution PNG saved as graphics-draw-round-rect.png in workflow artifacts.

  • graphics-draw-string — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-draw-string
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 422x918.
    Full-resolution PNG saved as graphics-draw-string.png in workflow artifacts.

  • graphics-draw-string-decorated — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-draw-string-decorated
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 603x1311.
    Full-resolution PNG saved as graphics-draw-string-decorated.png in workflow artifacts.

  • graphics-fill-arc — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    graphics-fill-arc
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 844x1835.
    Full-resolution PNG saved as graphics-fill-arc.png in workflow artifacts.

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

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

Benchmark Results

  • VM Translation Time: 332 seconds
  • Compilation Time: 71 seconds

…on and adding missing dependencies.

- Updated `scripts/build-android-app.sh` to prioritize `JAVA17_HOME` for executing `PatchGradleFiles.java`, ensuring compatibility with Java 11+ source file execution feature.
- Added `xalan` and `serializer` dependencies to `maven/codenameone-maven-plugin/pom.xml` to resolve `ClassNotFoundException` during CSS compilation in archetype builds.
@shai-almog shai-almog closed this Dec 19, 2025
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