Skip to content

test: Update go-scp to fix data race #5469

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
Dec 20, 2022

Conversation

mafredri
Copy link
Member

Attempt to upstream: bramvdbogaerde/go-scp#66

This flakes every now and a then, tried to upstream but no response yet.

https://github.com/coder/coder/actions/runs/3733778064/jobs/6335003283

@mafredri mafredri self-assigned this Dec 19, 2022
@mafredri mafredri requested review from a team and mtojek and removed request for a team December 19, 2022 20:25
go.mod Outdated
// This package is only used in tests, but there's a data race causing
// occasional flakes.
// https://github.com/bramvdbogaerde/go-scp/pull/66
replace github.com/bramvdbogaerde/go-scp => github.com/mafredri/go-scp v1.2.1-0.20221123115109-607fd1f5015c
Copy link
Member

Choose a reason for hiding this comment

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

This should be forked to coder instead of mafredrei. Even with no special permissions members of coder can fork/create repos in it.

Copy link
Member

Choose a reason for hiding this comment

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

If there's a pull upstream, I don't care if it's on the dev's personal. I just don't want maintained forks on personal ;p.

Copy link
Member Author

Choose a reason for hiding this comment

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

I considered it but don't think it's worth it here since this is a lib only used in tests. Once the change is upstreamed I'll get rid of the repo, if we fork it we'll be stuck on our fork forever. 😅

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.

It looks like it got merged a few hours ago.

@mafredri mafredri changed the title test: Switch to go-scp fork to fix data race test: Update go-scp to fix data race Dec 20, 2022
@mafredri mafredri enabled auto-merge (squash) December 20, 2022 09:27
@mafredri mafredri merged commit ca31f1b into main Dec 20, 2022
@mafredri mafredri deleted the mafredri/test-switch-to-go-scp-fork branch December 20, 2022 09:33
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2022
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.

4 participants