Skip to content

Rewrite of GitHub Actions#1726

Merged
wmdietl merged 8 commits into
masterfrom
ci-review
May 17, 2026
Merged

Rewrite of GitHub Actions#1726
wmdietl merged 8 commits into
masterfrom
ci-review

Conversation

@wmdietl

@wmdietl wmdietl commented May 16, 2026

Copy link
Copy Markdown
Member

Started with Claude, then fixes from Copilot, then Claude had to fix those. Seems to work now.

Copilot AI review requested due to automatic review settings May 16, 2026 22:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Refactors the CI GitHub Actions workflow to reduce duplication, centralize configuration, and extract misc dependency setup into a reusable composite action.

Changes:

  • Adds workflow-level defaults (permissions + shared env like PRIMARY_JDK / EA JDK metadata) and introduces job timeouts.
  • Reworks checkout/JDK/Gradle setup steps across jobs for consistency, and factors out misc dependency installation into a composite action.
  • Updates the misc dependency installation to use apt/pip caching via the new composite action.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/ci.yml Restructures CI jobs, introduces shared env/permissions, and uses the new setup-misc composite action for misc runs.
.github/actions/setup-misc/action.yml New composite action to install and cache dependencies needed by the misc test script.
Comments suppressed due to low confidence (1)

.github/workflows/ci.yml:174

  • Same issue here: fetch-depth: ${{ matrix.script == 'misc' && 0 || 1 }} can never yield 0, so misc won't get full history in otherjdks. Use a truthy true-branch value (e.g., string '0') or separate checkout steps guarded by if:.
      - name: Check out sources
        uses: actions/checkout@v6
        with:
          fetch-depth: ${{ matrix.script == 'misc' && 0 || 1 }}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml

# Default minimal permissions for all jobs; individual steps may opt-in to more.
permissions:
contents: read
Comment thread .github/workflows/ci.yml
Comment on lines +20 to +25
env:
PRIMARY_JDK: "21"
USE_BAZEL_VERSION: "9.1.0"
# JDK 27 early-access build; bump when a new EA build is published.
JDK_EA_MAJOR: "27"
JDK_EA_BUILD: "22"
Comment thread .github/actions/setup-misc/action.yml Outdated
using: composite
steps:
- name: Cache and install apt packages
uses: awalsh128/cache-apt-pkgs-action@v1
wmdietl and others added 2 commits May 16, 2026 19:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@wmdietl

wmdietl commented May 17, 2026

Copy link
Copy Markdown
Member Author

#1728 suggested adding texlive-base. Odd that it wasn't necessary previously.

@wmdietl

wmdietl commented May 17, 2026

Copy link
Copy Markdown
Member Author

misc passed on a few versions, but not all. Trying to use separate steps again.

@wmdietl

wmdietl commented May 17, 2026

Copy link
Copy Markdown
Member Author

@copilot the misc job is still failing. In a separate pull request against this PR, fix the problem

Copilot AI commented May 17, 2026

Copy link
Copy Markdown

@wmdietl I've opened a new pull request, #1729, to work on those changes. Once the pull request is ready, I'll request review from you.

@wmdietl wmdietl changed the title Rewrite of GitHub Actions with Claude Rewrite of GitHub Actions May 17, 2026
@wmdietl wmdietl enabled auto-merge (squash) May 17, 2026 16:49
@wmdietl wmdietl merged commit cf6d497 into master May 17, 2026
50 checks passed
@wmdietl wmdietl deleted the ci-review branch May 17, 2026 19:52
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.

3 participants