Skip to content

Run ant tests on multiple platforms and java LTS versions - #458

Draft
ohumbel wants to merge 6 commits into
jython:masterfrom
Cafino:upstream_master_full_ci
Draft

ohumbel wants to merge 6 commits into
jython:masterfrom
Cafino:upstream_master_full_ci

Conversation

@ohumbel

@ohumbel ohumbel commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

This is an informational draft pull request, not intended to be merged as is into master.

The goal is to show that the "promise" of the upcoming release:

  • build once with java 8
  • run on any java LTS version between 11 and 25, on the main platforms

is really met.

The pipeline builds once on ubuntu with java 8, uploads the dist/ folder for later use and then exercises ant tests on a matrix:

  • os: [ubuntu-latest, macos-latest, windows-latest]
  • java-version: [11, 17, 21, 25]

The results can be found here: Cafino#2

Parts of this PR might be useful for the future, especially the ones allowing tests to be run on a true "dist/ only" setup.
For local reproduction, I used the following commands:

  • ant clean
  • ant
  • ant cleanWithoutDist
  • ant test-ci-built (or any single -built target)

Necessary tweaks for green matrix runs are:

  • ignore some Indexer tests on windows (they fail since ages, but never popped up on ci)
  • exclude socket and select tests (they turned out to be very flaky on GitHub)

 - build on ubuntu / java 8 only
 - use a matrix for os [ubuntu-latest, macos-latest, windows-latest] and java [11, 17, 21, 25]
 - make dist/bin/jython executable
 - get a bit more more output out of test-jython.sh
 - upload the junit test results and add a junit test report
They should not interfere with ant regrtest .yml, which waits for the build output to have been uploaded.
This has nothing to do with the changes in the last months.
They fail for a much longer time, but never were caught by ci pipelines.
 - make sure test.compile.dir exists before starting junit
 - include org.python.generate package in jython-dev jar
 - add jython-test.jar and jython-dev.jar to the test classpath
 - show stdout and stderr of javatests
 - add the target 'cleanWithoutDist' for local testing of the -built targets
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.

1 participant