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

Improved Macos CI #328

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Improved Macos CI #328

wants to merge 9 commits into from

Conversation

maximedenes
Copy link
Member

No description provided.

@rtetley rtetley force-pushed the self-hosted-macos branch 2 times, most recently from ea6ee38 to 4f0a01f Compare December 20, 2023 14:43
@rtetley rtetley marked this pull request as ready for review December 20, 2023 14:45
@rtetley rtetley changed the title Test CI with self hosted macOS runner Improved Macos CI Dec 20, 2023
@rtetley
Copy link
Collaborator

rtetley commented Dec 20, 2023

This PR improves the platform CI introducing three things:

  • self hosted runners (which are virtualized thanks to CIlicon
  • a retry loop to avoid some sporadic errors with building the DMG
  • fix some of the scripts when homebrew is the package manager

with:
attempt_limit: 5
attempt_delay: 5000
shell: bash
Copy link
Collaborator

Choose a reason for hiding this comment

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

@rtetley : since my shell based fix didn't work (hdiutil somehow crashes so badly that it kills the containing shell) I tried your fix. One issue: the shell: bash line seems to be not supported, but I used Wandalen/wretry.action@v1 rather than @master.

Copy link
Collaborator

Choose a reason for hiding this comment

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

On this PR it seemed to work fine ? Does it only fail when it requires a retry ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It doesn't fail, it just gives a warning.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, likely my bad. I thought that using abbreviated version numbers (like @v1) is a github feature, but apparently it is a feature of many github actions implemented by duplicating tags - the wretry doesn't have this. So I got some random version. I will try again wit a proper version tag.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I tried it again with:

      - name: 'Build DMG installer'
        uses: Wandalen/[email protected]
        with:
          attempt_limit: 5
          attempt_delay: 5000
          shell: bash
          command: |
            eval $(opam env)
            macos/create_installer_macos.sh

This still gives a warning:

Unexpected input(s) 'shell', valid inputs are ['action', 'command', 'with', 'current_path', 'attempt_limit', 'attempt_delay']

As far as I can tell the tag v1.3.0 is identical to master (I don't like to have master versions of actions in CI).

Do you have a reference which suggests that the shell key is allowed? It would be useful to make this explicit, but it also works without it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah no, unfortunately no :-/ I hadn't noticed the warning before... I also have it on this PR...

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