← Back to Pull requests

Added CI worker for native S390X #1052

Open
fneddy opened this pull request with 222 lines diff across 8 files
View on GitHub
fneddy fneddy commented on Feb 27, 2025 09:18 UTC
Author

Background

As mentioned in #1050 Qemu does not implement the hardware acceleration instructions for S390X. Therefor a Qemu based CI will never actually test the code but fallback and use the software implementation. For this reason its highly desirable to run the zlib CI on a _real_ S390X IBM System Z worker.

Setup

This PR adds CI jobs for native S390X workers.
GitHub has not yet support for this architecture. Therefore its necessary to add self-hosted workers.
Marist University offers free workers for open source projects with their LinuxONE Community Cloud.

Job Control


The self-hosted worker setup does not allow forks to run their CI jobs on the worker. Therefor it is necessary to deactivate this new jobs for forks.
Currently its not possible to deactivate or skip a GitHub Action Job. Therefor I added an enabled flag to the cmake and configure job matrix. Together with a repository check (${{ github.repository == 'madler/zlib' && 'true' || 'false' }}) the new CI jobs can be disabled for forks. By filtering on this flag in the job steps forks could be set to always succeed or always fail .

S390X worker


GitHub does not officially support S390X as a worker. With gaplib its possible to connect an S390X instance as a self-hosted worker.
This raises some questions: Should we add the gaplib-scripts to the zlib src (zlib-ng did that). Who will maintain the self-hosted worker at the LinuxONE Community Cloud? I've already setup an account for testing and am willing to take this responsibility. But if its decided that it should be maintained by an official zlib maintainer I am happy to assist with the setup. If I shall maintain the worker, I need a communication channel with a zlib maintainer to exchange the github tokens.

Open Questions


  • [X] should the native S390X CI run on forks be always failing or always success ? -> @fneddy votes for always success

  • should gaplib scripts be added to the contrib folder? -> ~@fneddy no~ / @iii-i yes

  • who will maintain the LinuxOne Instance -> @fneddy

  • how will the zlib github token find its way to the LinuxOne instance -> email to @fneddy encrypted via smime or pgp
  • Diff: 222 lines (+217 / -5) across 8 files Reviewer: fneddy Review duration: 891529m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.67) × (1 − Review Confidence (0.80)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.67 · 222 lines diff across 8 files
    0.67
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    79%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.323
    Self Review self_review
    0.140
    Real PR Conversation Timeline
    9 items
    madler madler commented on Feb 27, 2025 23:36 UTC
    Contributor

    You would need to maintain the worker, and I am the only maintainer with which to exchange tokens.

    fneddy fneddy commented on code on Mar 06, 2025 14:37 UTC
    Code Review
    contrib/README.contrib:1
    @@ -55,3 +55,6 @@ untgz/      by Pedro A. Aranda Gutierrez <paag@tid.es>
     vstudio/    by Gilles Vollant <info@winimage.com>
             Building a minizip-enhanced zlib with Microsoft Visual Studio
             Includes vc11 from kreuzerkrieg and vc12 from davispuh
    +
    +s390x/      by Eduard Stefes <eduard.stefes@ibm.com

    closing >

    fneddy fneddy commented on Mar 10, 2025 09:52 UTC
    Author

    this PR is ready for review.

    i left this in the code: enabled: ${{ github.repository == 'fneddy/zlib' && 'true' || false }}
    If I change it to madler/zlib before the actions workers are connected it will create stalling actions.

    next steps:

  • review

  • add actions worker to madler/zlib

  • change last repository names in the runner config

  • merge the pr
  • madler madler commented on Mar 14, 2025 04:45 UTC
    Contributor

    Ok. So how does this get set up?

    fneddy fneddy commented on Mar 14, 2025 14:42 UTC
    Author

    i added a readme here that explains how one could setup actions worker.

    However as i shall maintain the worker, I sent a pgp encrypted email with info about how we could do a token exchange to the email mentioned in your github profile(_madler[at]alumni.caltech.edu_).

    Neustradamus Neustradamus commented on May 23, 2025 00:37 UTC
    Contributor

    @fneddy: Good job!

    Neustradamus Neustradamus commented on Nov 17, 2025 22:38 UTC
    Contributor

    @madler: Do not forget this PR too.

    madler madler commented on Jan 28, 2026 20:02 UTC
    Contributor

    @fneddy Please check the conflicts.

    Reviewers
    Assignees
    fneddy fneddy
    Labels
    risk: low confidence: 79.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 66.6% (HIGH) · Higher = larger blast radius
    66.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 79.6% · Lower = rushed or shallow review
    79.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 13.6% · Safe to merge
    13.6%
    Repository