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

chore: TestIMDSAuth is very slow #4298

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Conversation

corymhall
Copy link
Contributor

@corymhall corymhall commented Jul 24, 2024

The TestIMDSAuth test frequently takes ~45 minutes to run. Looking into it more it looks like the command:remote:CopyFile takes the bulk of the time and I am not sure why. Copying the file to S3 via BucketObjectV2 and then using the userData to copy the file from S3 during instance start up seems to be significantly faster

The test went from ~40minutes to ~4 minutes.

Verified

This commit was signed with the committer’s verified signature.
corymhall Cory Hall
The `TestIMDSAuth` test frequently takes ~45 minutes to run. Looking
into it more it looks like the `command:remote:CopyFile` takes the bulk
of the time and I am not sure why. Copying the file to S3 via
`BucketObjectV2` and then using the userData to copy the file from S3
during instance start up seems to be significantly faster
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@corymhall corymhall marked this pull request as ready for review July 25, 2024 12:58
@corymhall corymhall requested a review from t0yv0 July 25, 2024 12:58
@t0yv0
Copy link
Member

t0yv0 commented Jul 25, 2024

Maybe it was installing the command provider and getting throttled? @thomas11 any other guesses?

@thomas11
Copy link
Contributor

Maybe it was installing the command provider and getting throttled? @thomas11 any other guesses?

CopyFile is deprecated in favor of CopyToRemote. One difference is that the latter has concurrent writes enabled for SFTP. That should make a noticeable difference.

Downloading the Command provider could also be a noticeable chunk.

@corymhall corymhall merged commit 2590949 into master Jul 26, 2024
31 checks passed
@corymhall corymhall deleted the corymhall/faster-imds-test branch July 26, 2024 12:19
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v6.47.0.

lumiere-bot bot referenced this pull request in coolguy1771/home-ops Jul 30, 2024

Verified

This commit was signed with the committer’s verified signature.
corymhall Cory Hall
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@pulumi/aws](https://pulumi.io)
([source](https://togithub.com/pulumi/pulumi-aws)) | dependencies |
minor | [`6.46.0` ->
`6.47.0`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.46.0/6.47.0)
|

---

### Release Notes

<details>
<summary>pulumi/pulumi-aws (@&#8203;pulumi/aws)</summary>

###
[`v6.47.0`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.47.0)

[Compare
Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.46.0...v6.47.0)

##### Does the PR have any schema changes?

Found 6 breaking changes:

##### Types

- `🟡` "aws:appstream/getImageApplication:getImageApplication":
properties: "metadata": additional properties type changed from
"pulumi.json#/Any" to "string"
-
"aws:batch/getJobDefinitionEksPropertyPodPropertyContainerResource:getJobDefinitionEksPropertyPodPropertyContainerResource":
properties:
- `🟡` "limits": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡` "requests": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡`
"aws:batch/getJobDefinitionEksPropertyPodPropertyMetadata:getJobDefinitionEksPropertyPodPropertyMetadata":
properties: "labels": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡`
"aws:batch/getJobDefinitionNodePropertyNodeRangePropertyContainerLogConfiguration:getJobDefinitionNodePropertyNodeRangePropertyContainerLogConfiguration":
properties: "options": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡` "aws:bcmdata/ExportExportDataQuery:ExportExportDataQuery":
properties: "tableConfigurations": additional properties: additional
properties type changed from "pulumi.json#/Any" to "string"

##### New resources:

-   `shield/subscription.Subscription`

##### New functions:

-   `index/getServicePrincipal.getServicePrincipal`

##### What's Changed

- chore: TestIMDSAuth is very slow by
[@&#8203;corymhall](https://togithub.com/corymhall) in
[https://github.com/pulumi/pulumi-aws/pull/4298](https://togithub.com/pulumi/pulumi-aws/pull/4298)
- Update GitHub Actions workflows. by
[@&#8203;pulumi-bot](https://togithub.com/pulumi-bot) in
[https://github.com/pulumi/pulumi-aws/pull/4306](https://togithub.com/pulumi/pulumi-aws/pull/4306)
- Add basic instructions for upstream upgrades by
[@&#8203;t0yv0](https://togithub.com/t0yv0) in
[https://github.com/pulumi/pulumi-aws/pull/4310](https://togithub.com/pulumi/pulumi-aws/pull/4310)
- Upgrade pulumi-terraform-bridge to v3.88.0 by
[@&#8203;pulumi-bot](https://togithub.com/pulumi-bot) in
[https://github.com/pulumi/pulumi-aws/pull/4304](https://togithub.com/pulumi/pulumi-aws/pull/4304)
- Update GitHub Actions workflows. by
[@&#8203;pulumi-bot](https://togithub.com/pulumi-bot) in
[https://github.com/pulumi/pulumi-aws/pull/4312](https://togithub.com/pulumi/pulumi-aws/pull/4312)
- Upstream v5.60.0 by [@&#8203;t0yv0](https://togithub.com/t0yv0) in
[https://github.com/pulumi/pulumi-aws/pull/4309](https://togithub.com/pulumi/pulumi-aws/pull/4309)

**Full Changelog**:
pulumi/pulumi-aws@v6.46.0...v6.47.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzOC44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvbWlub3IiXX0=-->

Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
lumiere-bot bot referenced this pull request in coolguy1771/home-ops Jul 30, 2024

Verified

This commit was signed with the committer’s verified signature.
corymhall Cory Hall
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@pulumi/aws](https://pulumi.io)
([source](https://togithub.com/pulumi/pulumi-aws)) | dependencies |
minor | [`6.46.0` ->
`6.47.0`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.46.0/6.47.0)
|

---

### Release Notes

<details>
<summary>pulumi/pulumi-aws (@&#8203;pulumi/aws)</summary>

###
[`v6.47.0`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.47.0)

[Compare
Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.46.0...v6.47.0)

##### Does the PR have any schema changes?

Found 6 breaking changes:

##### Types

- `🟡` "aws:appstream/getImageApplication:getImageApplication":
properties: "metadata": additional properties type changed from
"pulumi.json#/Any" to "string"
-
"aws:batch/getJobDefinitionEksPropertyPodPropertyContainerResource:getJobDefinitionEksPropertyPodPropertyContainerResource":
properties:
- `🟡` "limits": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡` "requests": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡`
"aws:batch/getJobDefinitionEksPropertyPodPropertyMetadata:getJobDefinitionEksPropertyPodPropertyMetadata":
properties: "labels": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡`
"aws:batch/getJobDefinitionNodePropertyNodeRangePropertyContainerLogConfiguration:getJobDefinitionNodePropertyNodeRangePropertyContainerLogConfiguration":
properties: "options": additional properties type changed from
"pulumi.json#/Any" to "string"
- `🟡` "aws:bcmdata/ExportExportDataQuery:ExportExportDataQuery":
properties: "tableConfigurations": additional properties: additional
properties type changed from "pulumi.json#/Any" to "string"

##### New resources:

-   `shield/subscription.Subscription`

##### New functions:

-   `index/getServicePrincipal.getServicePrincipal`

##### What's Changed

- chore: TestIMDSAuth is very slow by
[@&#8203;corymhall](https://togithub.com/corymhall) in
[https://github.com/pulumi/pulumi-aws/pull/4298](https://togithub.com/pulumi/pulumi-aws/pull/4298)
- Update GitHub Actions workflows. by
[@&#8203;pulumi-bot](https://togithub.com/pulumi-bot) in
[https://github.com/pulumi/pulumi-aws/pull/4306](https://togithub.com/pulumi/pulumi-aws/pull/4306)
- Add basic instructions for upstream upgrades by
[@&#8203;t0yv0](https://togithub.com/t0yv0) in
[https://github.com/pulumi/pulumi-aws/pull/4310](https://togithub.com/pulumi/pulumi-aws/pull/4310)
- Upgrade pulumi-terraform-bridge to v3.88.0 by
[@&#8203;pulumi-bot](https://togithub.com/pulumi-bot) in
[https://github.com/pulumi/pulumi-aws/pull/4304](https://togithub.com/pulumi/pulumi-aws/pull/4304)
- Update GitHub Actions workflows. by
[@&#8203;pulumi-bot](https://togithub.com/pulumi-bot) in
[https://github.com/pulumi/pulumi-aws/pull/4312](https://togithub.com/pulumi/pulumi-aws/pull/4312)
- Upstream v5.60.0 by [@&#8203;t0yv0](https://togithub.com/t0yv0) in
[https://github.com/pulumi/pulumi-aws/pull/4309](https://togithub.com/pulumi/pulumi-aws/pull/4309)

**Full Changelog**:
pulumi/pulumi-aws@v6.46.0...v6.47.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzOC44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvbWlub3IiXX0=-->

Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
@mjeffryes mjeffryes added this to the 0.108 milestone Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants