Skip to content

Keep reports off asap-remote, survive mail errors (#416) - #417

Merged
adrpo merged 1 commit into
OpenModelica:masterfrom
adrpo:report-node-email-check
Nov 12, 2026
Merged

adrpo merged 1 commit into
OpenModelica:masterfrom
adrpo:report-node-email-check

Conversation

@adrpo

@adrpo adrpo commented Nov 12, 2026

Copy link
Copy Markdown
Member

Fixes #416.

The report stage failed in publish-reports.py on asap-remote (OSError: [Errno 101] Network is unreachable connecting to smtp.office365.com). The reports were already recorded, so their emails were lost, and the overviews built after that step were never regenerated.

Changes

  • .CI/Jenkinsfile: the report, drop stale pull request tables and pull request report stages (which share the ws/OpenModelicaLibraryTestingReport workspace) now run on linux && !asap-remote.
  • publish-reports.py: OSError and SMTPException from the SMTP session are caught. The script prints the unsent recipients and their report lines, since a rerun would not send them, and exits with 2. The connection gets a 60 s timeout.
  • .CI/Jenkinsfile: exit code 2 marks the build unstable and the stage goes on to build the overviews. Any other non-zero exit still fails it.

Tested locally against stub resultsdb and smtplib modules: an unreachable server prints both unsent emails, removes the pending file and exits 2, and a reachable one sends both and exits 0. Not run in Jenkins yet. The node name asap-remote is taken from the Jenkins agent name, so check that it matches.


🤖 Generated with Claude Code

The report stages ran on asap-remote, which has been moved. Its
publish-reports.py could not reach smtp.office365.com, and the
OSError failed the stage before the overviews were built.

Run the report stages on linux && !asap-remote. Catch OSError and
SMTPException around the SMTP session: print the emails left unsent
(the reports are recorded, so a rerun would not send them), exit
with 2 and let the Jenkinsfile mark the build unstable, so the
overviews are still built. Give the connection a 60 s timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adrpo adrpo self-assigned this Nov 12, 2026
@adrpo
adrpo enabled auto-merge (squash) November 12, 2026 09:14
@adrpo
adrpo merged commit ffb950b into OpenModelica:master Nov 12, 2026
7 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.

Report stage fails when the mail server is unreachable, and runs on asap-remote

1 participant