Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(coderd/coderdtest): allow mutating deployment values#14414

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 1 commit intomainfromcj/coderdtest/mutate-deployment-values
Aug 23, 2024

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedAug 23, 2024
edited
Loading

Allows mutating deployment values.
Also modifies the check onDisableOwnerWorkspaceExec to be a warn-log, as this caught me out for a while when testing something. Unfortunately I couldn't find a way to detect inside a test ift.Parallel() had already been called.

options.DeploymentValues.DisableOwnerWorkspaceExec = false
// This value is not safe to run in parallel.
if options.DeploymentValues.DisableOwnerWorkspaceExec {
t.Logf("WARNING: DisableOwnerWorkspaceExec is set, this is not safe in parallel tests!")
Copy link
Member

Choose a reason for hiding this comment

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

It'd be cool if we could actually check if parallel has been set (or will be set!), maybe we should implement out owntesting.TB... 😆

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

We could possibly set a dummy environment variable; this should causet.Parallel() to panic.

Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

Nice 👍

@johnstcnjohnstcn merged commit99e103e intomainAug 23, 2024
31 checks passed
@johnstcnjohnstcn deleted the cj/coderdtest/mutate-deployment-values branchAugust 23, 2024 11:15
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 23, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@dannykoppingdannykoppingdannykopping approved these changes

@mtojekmtojekAwaiting requested review from mtojek

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@johnstcn@mafredri@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp