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

Work around tests hanging in #1167 and #1168 #1172

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented Jun 4, 2024

Fix

The unit tests hang making the CI build time out in both #1167 and #1168.

I have not investigated what the cause might be, but the fact that they behave like that is note worthy.

The workaround is to run the tests sequentially rather than in parallel.

This was done by migrating to a Test Plan first, just to keep the setup modern.

I also removed some redundant CODE_SIGN_IDENTITY definitions, but that was an unrelated tidy up that I just thought I'd chunk in here.

Also, see note below about the commits in this PR.

Test

See green CI.

Also notice how bundle exec test hangs locally on the other PRs but succeeds here.

Review

Only one developer and required to review these changes, but anyone can perform the review.

Release

These changes do not require release notes.

@mokagio mokagio changed the base branch from trunk to charlie/fix-intents-version-number June 4, 2024 03:52
@mokagio mokagio force-pushed the mokagio/workaround-test-hanging branch from 540f315 to 6c59d1f Compare June 4, 2024 03:53
@mokagio mokagio marked this pull request as ready for review June 4, 2024 03:58
@mokagio mokagio added the tooling Related to anything that supports the building & maintaining of the project. label Jun 4, 2024
@mokagio
Copy link
Contributor Author

mokagio commented Jun 4, 2024

🤔 I don't know why GitHub shows some of Charlies commit in the list, despite me having git reset --hard origin/trunk, cherry picked my commits only, then force pushed.

image

Maybe it's a GitHub cache thing?

My local git log:

image

Update: That remains the case even after having merged the latest trunk into #1167. Maybe that's got something to do with a rebase somewhere along the way?

@charliescheer
Copy link
Contributor

Thanks for looking into this @mokagio I have been digging into it and it seems that SNMac isn't the only Mac app out there having this issue. I haven't been able to identify what is causing the issue, but it seems that the applications that are launched as the hosting application for the tests never close and when they don't close the testing process never "completes" I am gonna move forward with the workaround for now so that the shortcuts project can move forward/complete. I will continue to dig into what is happening with the Mac unit tests later

#1173

Base automatically changed from charlie/fix-intents-version-number to trunk June 4, 2024 19:45
@dangermattic
Copy link
Collaborator

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

Copy link
Contributor

@charliescheer charliescheer left a comment

Choose a reason for hiding this comment

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

I merged the branch this came off of and that fixed the weird extra commits.

This looks good to me and the CI is passing.

@mokagio mokagio merged commit a970f12 into trunk Jun 5, 2024
11 of 12 checks passed
@mokagio mokagio deleted the mokagio/workaround-test-hanging branch June 5, 2024 00:33
@mokagio
Copy link
Contributor Author

mokagio commented Jun 5, 2024

Thanks @charliescheer for investigating. We don't have many macOS-native apps but the fact that there might be a problem with parallel tests at the toolchain level is something good to keep in mind.

Hopefully you'll have a chance to keep looking and find a fix 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Related to anything that supports the building & maintaining of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants