Skip to content

Remove deprecated ubuntu-20.04 image from CI.#1898

Merged
Dead2 merged 3 commits intozlib-ng:developfrom
nmoinvaz:ci/rem-ubuntu-20
Apr 10, 2025
Merged

Remove deprecated ubuntu-20.04 image from CI.#1898
Dead2 merged 3 commits intozlib-ng:developfrom
nmoinvaz:ci/rem-ubuntu-20

Conversation

@nmoinvaz
Copy link
Copy Markdown
Member

@nmoinvaz nmoinvaz commented Apr 8, 2025

Summary by CodeRabbit

  • Chores
    • Revised our continuous integration pipeline by retiring outdated configurations and employing the latest Ubuntu environment for better consistency.
    • Streamlined job settings and adjusted environment parameters to enhance the performance and reliability of our build process.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 8, 2025

Walkthrough

This pull request updates the GitHub Actions workflows by removing outdated Ubuntu 20.04 configurations and transitioning to the latest Ubuntu environment. Specifically, it removes the "Ubuntu 20.04 GCC" and "Ubuntu 20.04 Clang 6" jobs from the appropriate workflow files, updates the environment in remaining jobs (switching to ubuntu-latest), revises package lists and CMake arguments for PPC64LE and SPARC64 jobs, and adds an environment variable (CXXFLAGS) to the job steps.

Changes

File(s) Change Summary
.github/workflows/cmake.yml - Removed "Ubuntu 20.04 GCC" and "Ubuntu 20.04 Clang 6" jobs
- Updated "Ubuntu GCC PPC64LE" and "Ubuntu GCC SPARC64" jobs to use ubuntu-latest with revised package lists and CMake arguments
- Added CXXFLAGS environment variable
.github/workflows/configure.yml - Removed the "Ubuntu 20.04 GCC" job configuration

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant GH as GitHub Actions
    participant W1 as cmake.yml Workflow
    participant W2 as configure.yml Workflow

    U->>GH: Push commit (trigger CI)
    GH->>W1: Execute cmake.yml workflow
    W1->>W1: Remove obsolete Ubuntu 20.04 GCC and Clang 6 jobs
    W1->>W1: Update PPC64LE and SPARC64 jobs to use ubuntu-latest
    W1->>W1: Apply updated CMake args and package lists
    W1->>W1: Set environment variable CXXFLAGS
    GH->>W2: Execute configure.yml workflow
    W2->>W2: Remove Ubuntu 20.04 GCC job configuration
Loading

Possibly related PRs

  • ci: fixes for RISC-V #1890: Removes the "Ubuntu 20.04 GCC" job from a different workflow file, directly paralleling the changes in this PR.

Suggested labels

Continuous Integration, Architecture

Suggested reviewers

  • Dead2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/cmake.yml (1)

721-721: Inclusion of the CXXFLAGS Environment Variable

Adding CXXFLAGS: ${{ matrix.cxxflags }} in the environment settings ensures that C++ build flags are properly propagated during project file generation. It would be beneficial to confirm that matrix.cxxflags is defined in all relevant matrix configurations or to include a sensible default if not.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b2a0ffb and 6d5525a.

📒 Files selected for processing (2)
  • .github/workflows/cmake.yml (3 hunks)
  • .github/workflows/configure.yml (0 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/configure.yml
🔇 Additional comments (2)
.github/workflows/cmake.yml (2)

277-284: Update OS and Package Configuration for Ubuntu GCC PPC64LE Job

The changes correctly update the operating system to ubuntu-latest and adjust the toolchain arguments and package list. The inclusion of a specific comment about the GTest illegal instruction and the architecture flag (-mcpu=power8) helps clarify the context for testing on Power8. Please verify that these settings and the toolchain file (cmake/toolchain-powerpc64le.cmake) remain fully compatible with the updated environment.


307-309: Verify the Ubuntu GCC SPARC64 Job Adjustments

The OS has been updated to ubuntu-latest and the packages list has been modified (notably, adjusting the dependencies by potentially removing outdated packages). Please ensure that the SPARC64 toolchain (with cmake/toolchain-sparc64.cmake) and the updated packages remain valid in the new Ubuntu environment.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.44%. Comparing base (50e9ca0) to head (6d5525a).
Report is 16 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1898       +/-   ##
============================================
+ Coverage    42.10%   83.44%   +41.33%     
============================================
  Files           71      144       +73     
  Lines         7353    12948     +5595     
  Branches      1265     2857     +1592     
============================================
+ Hits          3096    10804     +7708     
+ Misses        4035     1194     -2841     
- Partials       222      950      +728     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mtl1979
Copy link
Copy Markdown
Collaborator

mtl1979 commented Apr 10, 2025

Looks good, apparently there is no crossbuild-essential-sparc64 package yet in Ubuntu 24.04 LTS, so the packages still need to be specified individually.

Copy link
Copy Markdown
Member

@Dead2 Dead2 left a comment

Choose a reason for hiding this comment

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

Nice 👍

@Dead2 Dead2 merged commit e4a31e0 into zlib-ng:develop Apr 10, 2025
145 of 150 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants