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

fix: Improve Terraform agent<->resource association testing#2187

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
kylecarbs merged 2 commits intomainfromresource-association
Jun 8, 2022

Conversation

kylecarbs
Copy link
Member

@kylecarbskylecarbs commentedJun 8, 2022
edited
Loading

An agent could be associated with multiple resources prior to this, which broke all workspace access (and doesn't make any sense). This adds tests based on Terraform output. The raw Terraform statefiles are pushed for fast testing, and can be iterated on by editing the Terraform and runninggenerate.sh.

This should improve test times and provide a much more stable solution for resource association!

There were a few bugs with multiple agent association this fixes,and it adds thorough tests using real Terraform state and plans.
@kylecarbskylecarbsforce-pushed theresource-association branch 2 times, most recently fromb7eb9b5 tob208e8eCompareJune 8, 2022 21:23
@bpmct
Copy link
Member

bpmct commentedJun 8, 2022
edited
Loading

Does this encompass the bugs discovered in#1884?

@kylecarbs
Copy link
MemberAuthor

@bpmct yup!

bpmct reacted with laugh emoji

Copy link
Contributor

@f0sself0ssel left a comment

Choose a reason for hiding this comment

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

go code lgtm, can't speak to the tf files

Copy link
Member

@deansheatherdeansheather left a comment

Choose a reason for hiding this comment

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

The test cases are very epic

kylecarbs reacted with heart emoji
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"

for d in */; do
Copy link
Member

Choose a reason for hiding this comment

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

I appreciate that you've included the script for this :)

@kylecarbskylecarbs merged commit1470149 intomainJun 8, 2022
@kylecarbskylecarbs deleted the resource-association branchJune 8, 2022 22:40
mafredri added a commit that referenced this pull requestJun 9, 2022
The issue tracked in#1750 was fixed by#2187, we can now re-enable theproject resource.
mafredri added a commit that referenced this pull requestJun 9, 2022
The issue tracked in#1750 was fixed by#2187, we can now re-enable theproject resource.
kylecarbs added a commit that referenced this pull requestJun 9, 2022
This was regressed in#2187. There was bad testing around thisbefore, and this should prevent a similiar situation from happeningagain!
kylecarbs added a commit that referenced this pull requestJun 9, 2022
This was regressed in#2187. There was bad testing around thisbefore, and this should prevent a similiar situation from happeningagain!
kylecarbs added a commit that referenced this pull requestJun 9, 2022
This was regressed in#2187. There was bad testing around thisbefore, and this should prevent a similiar situation from happeningagain!
@kylecarbskylecarbs restored the resource-association branchJune 9, 2022 22:20
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
The issue tracked in#1750 was fixed by#2187, we can now re-enable theproject resource.
kylecarbs added a commit that referenced this pull requestJun 10, 2022
This was regressed in#2187. There was bad testing around thisbefore, and this should prevent a similiar situation from happeningagain!
@github-actionsgithub-actionsbot deleted the resource-association branchFebruary 4, 2023 20:05
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@f0sself0sself0ssel approved these changes

@dwahlerdwahlerAwaiting requested review from dwahler

@spikecurtisspikecurtisAwaiting requested review from spikecurtis

Assignees

@kylecarbskylecarbs

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@kylecarbs@bpmct@deansheather@f0ssel

[8]ページ先頭

©2009-2025 Movatter.jp