Content-Length: 331998 | pFad | http://github.com/coder/coder/pull/19081

48 chore(agent/agentcontainers): skip part of test if on `darwin` by DanielleMaywood · Pull Request #19081 · coder/coder · GitHub
Skip to content

chore(agent/agentcontainers): skip part of test if on darwin #19081

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

Merged
merged 2 commits into from
Jul 29, 2025

Conversation

DanielleMaywood
Copy link
Contributor

Relates to coder/internal#765

I've been unable to figure out how to fix this (unfortunately my macOS file system knowledge is lacking). Given that this test is causing a lot of flakes at the moment, I think it is best to skip this part of the test on macOS for now.

Relates to coder/internal#765

I've been unable to figure out how to fix this (unfortunately my macOS
file system knowledge is lacking). Given that this test is causing a lot
of flakes at the moment, I think it is best to skip this part of the
test on macOS for now.
@DanielleMaywood DanielleMaywood marked this pull request as ready for review July 29, 2025 15:54
@DanielleMaywood DanielleMaywood requested a review from Copilot July 29, 2025 15:54
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses test flakiness on macOS by conditionally skipping the atomic rename portion of a file system watcher test when running on Darwin (macOS). The change is intended as a temporary workaround for unreliable test behavior on macOS file systems while the underlying issue is investigated.

  • Adds runtime OS detection to skip problematic test section on macOS
  • Includes detailed TODO comment explaining the reasoning and context
  • Maintains full test coverage on Linux systems where the feature is actually used

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@DanielleMaywood DanielleMaywood merged commit 219d1b4 into main Jul 29, 2025
31 checks passed
@DanielleMaywood DanielleMaywood deleted the danielle/stop-flake-fsnotify branch July 29, 2025 16:06
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2025
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

one nit-pick but otherwise LGTM

// for our dev container integration. We do not expect the host workspace
// (where this is used), to ever be run on macOS, as containers are a linux
// paradigm.
if runtime.GOOS != "darwin" {
Copy link
Member

Choose a reason for hiding this comment

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

nit: maybe fail-fast approach?

if runtime.GOOS == "darwin" {
    err = wut.Remove(testFile)
    require.NoError(t, err, "remove file from watcher failed")
    return
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies, I hit the green button a little quick.

I can see the benefit to the suggestion, although I think I prefer indenting the flakey code instead as this isn't a permanent change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/coder/coder/pull/19081

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy