Skip to content

Rebuild cached omc/OMSimulator that do not run in the image - #339

Merged
AnHeuermann merged 1 commit into
OpenModelica:masterfrom
AnHeuermann:fix-Jenkins
Aug 27, 2026
Merged

Rebuild cached omc/OMSimulator that do not run in the image#339
AnHeuermann merged 1 commit into
OpenModelica:masterfrom
AnHeuermann:fix-Jenkins

Conversation

@AnHeuermann

@AnHeuermann AnHeuermann commented Aug 27, 2026

Copy link
Copy Markdown
Member

Issue

#335 broke the library testing.

Jenkins reports errors in the master stage like:

cd OpenModelicaLibraryTesting/ && ./clean-empty-omcversion-dates.py— Shell Script<1s
+ cd OpenModelicaLibraryTesting/
+ ./clean-empty-omcversion-dates.py
PostgreSQL support needs psycopg2: pip install psycopg2-binary
script returned exit code 1

The maintenance branches reports errors like:

Shell Script<1s
+ export OPENMODELICAHOME=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build
+ export MSLREFERENCE=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults
+ export REFERENCEFILES=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles
+ export GITREPOS=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/libraries/git
+ export PNLIBREFS=/mnt/ReferenceFiles/PNlib/ReferenceFiles
+ export THERMOFLUIDSTREAMREFS=/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData
+ export THERMOFLUIDSTREAMREFSOM=/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData
+ export PREVIOUSHOME=/home/hudson
+ export HOME=/home/hudson/saved_omc/libraries
+ ln -s -t /home/hudson/saved_omc/libraries /home/hudson/.local .local
ln: Already exists
ln: will not overwrite just-created '/home/hudson/saved_omc/libraries/.local' with '.local'
+ true
+ cat /sys/fs/cgroup/memory.max
57224986624
+ trap cat /sys/fs/cgroup/memory.peak /sys/fs/cgroup/memory.events || true EXIT
+ cd OpenModelicaLibraryTesting
+ stdbuf -oL -eL time ./test.py --ompython_omhome=/usr --extraflags= --extrasimflags= --branch=v1.26 --output=libraries.openmodelica.org:/var/www/libraries.openmodelica.org/branches/v1.26/ --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --jobs=0 configs/conf.json
branch: v1.26, n_jobs: 16
Removing temporary files, etc to the best ability of the script
Start OMC version
Traceback (most recent call last):
  File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/./test.py", line 322, in <module>
    omc_version = check_output_log(omc_cmd + ["--version"], stderr=subprocess.STDOUT).decode("ascii").strip()
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/./test.py", line 170, in check_output_log
    return subprocess.check_output(*popenargs, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/subprocess.py", line 473, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               **kwargs).stdout
               ^^^^^^^^^
  File "/usr/lib/python3.14/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/omc', '--version']' returned non-zero exit status 127.
Command exited with non-zero status 1
5.17user 0.09system 0:00.46elapsed 1140%CPU (0avgtext+0avgdata 57196maxresident)k
40248inputs+120outputs (83major+18585minor)pagefaults 0swaps
+ killall omc
omc: no process found
+ false
+ exit 1
+ cat /sys/fs/cgroup/memory.peak /sys/fs/cgroup/memory.events
96624640
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
script returned exit code 1

Changes

Since the jobs moved into a container, a cache keyed on the git hash alone restores binaries built on the node: the maintenance branches have not moved, so v1.26 and v1.27 got a node-built omc that cannot load inside the image and died as exit code 127 out of test.py. Check that the restored build runs and rebuild it if it does not, for omc and for OMSimulator.

Also run clean-empty-omcversion-dates.py in the image: it needs psycopg2, which is in the image's python environment and not on the node.

Since the jobs moved into a container, a cache keyed on the git hash alone
restores binaries built on the node: the maintenance branches have not moved,
so v1.26 and v1.27 got a node-built omc that cannot load inside the image and
died as exit code 127 out of test.py. Check that the restored build runs and
rebuild it if it does not, for omc and for OMSimulator.

Also run clean-empty-omcversion-dates.py in the image: it needs psycopg2,
which is in the image's python environment and not on the node.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@AnHeuermann AnHeuermann self-assigned this Aug 27, 2026
@AnHeuermann
AnHeuermann marked this pull request as ready for review August 27, 2026 14:11
@AnHeuermann
AnHeuermann enabled auto-merge (squash) August 27, 2026 14:11
@AnHeuermann
AnHeuermann merged commit 2c1c2b2 into OpenModelica:master Aug 27, 2026
7 checks passed
@AnHeuermann
AnHeuermann deleted the fix-Jenkins branch August 27, 2026 14:26
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