Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NXDRIVE-2980: Implement GitHub runner for macos intel based architecture #5484

Conversation

gitofanindya
Copy link
Collaborator

@gitofanindya gitofanindya commented Nov 29, 2024

Summary by Sourcery

Update the CI workflow to target macOS 13 for GitHub Actions and adjust the macOS deployment script by removing certain filesystem arguments. Additionally, update the hash for PyQt5-Qt5 in the requirements for Darwin systems.

Build:

  • Modify the macOS deployment script to remove specific filesystem arguments when creating a package.

CI:

  • Update GitHub Actions workflow to use macOS 13 for CI builds instead of the latest macOS version.

Copy link
Contributor

sourcery-ai bot commented Nov 29, 2024

Reviewer's Guide by Sourcery

This PR updates the GitHub Actions workflow to use a specific macOS runner (macos-13) instead of macos-latest, and makes related changes to the macOS deployment configuration. The changes also include updates to PyQt5-Qt5 hash for Darwin systems and simplification of DMG creation parameters.

Class diagram for DMG creation script changes

classDiagram
    class DeployCIAgent {
        -srcfolder : String
        -volname : String
        -format : String
        -size : String
        +create_package()
    }
    note for DeployCIAgent "Removed HFS+ and fsargs options from DMG creation"
Loading

File-Level Changes

Change Details Files
Updated GitHub Actions workflow to use a specific macOS runner version
  • Changed runner from 'macos-latest' to 'macos-13'
  • Updated all conditional statements in the workflow to match the new runner name
.github/workflows/release.yml
Updated PyQt5-Qt5 package hash for Darwin systems
  • Changed the hash value for PyQt5-Qt5 version 5.15.13 on Darwin platform
tools/deps/requirements.txt
Simplified DMG creation parameters in macOS deployment script
  • Removed filesystem type specification (HFS+)
  • Removed filesystem arguments for block size configuration
tools/osx/deploy_ci_agent.sh

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @gitofanindya - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Please explain why the HFS+ filesystem specification and allocation parameters were removed from the DMG creation. This could impact compatibility and performance - was this intentional?
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.09%. Comparing base (74fc14e) to head (6f4ba42).
Report is 43 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5484      +/-   ##
==========================================
+ Coverage   49.24%   52.09%   +2.84%     
==========================================
  Files          94       96       +2     
  Lines       15699    16094     +395     
==========================================
+ Hits         7731     8384     +653     
+ Misses       7968     7710     -258     
Flag Coverage Δ
functional 42.87% <ø> (+4.80%) ⬆️
integration 2.01% <ø> (-0.06%) ⬇️
unit 40.51% <ø> (+2.94%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@gitofanindya gitofanindya merged commit 9642572 into master Dec 9, 2024
17 checks passed
@gitofanindya gitofanindya deleted the wip-NXDRIVE-2980-implement-github-runner-for-macos-intel-based-architecture branch December 9, 2024 10:39
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