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

add SDK-specific feature tracking #2682

Merged
merged 4 commits into from
Jun 18, 2024
Merged

add SDK-specific feature tracking #2682

merged 4 commits into from
Jun 18, 2024

Conversation

lucix-aws
Copy link
Contributor

Tracks usage of the following features in the user-agent string:

  • retry mode (adaptive vs. standard)
  • s3 express
  • s3 transfer manager
  • waiters
  • paginators
  • gzip compression

@lucix-aws lucix-aws requested a review from a team as a code owner June 14, 2024 22:35
},
"two": {
Features: []UserAgentFeature{
UserAgentFeatureRetryModeAdaptive, // ensure stable order, and idempotent
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] not sure if I'd call it stable order since this maps to a set at the end, and we end up sorting the feature set

type UserAgentFeature string

// Enumerates UserAgentFeature.
const (
Copy link
Contributor

Choose a reason for hiding this comment

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

I double checked that these are correct (hate when I push a PR and then whoops typo)

@lucix-aws lucix-aws merged commit 8dddc9c into main Jun 18, 2024
12 checks passed
@lucix-aws lucix-aws deleted the feat-uafeaturemetrics branch June 18, 2024 15:38
cPu1 added a commit to cPu1/eksctl that referenced this pull request Jun 25, 2024
The latest version of `aws-sdk-go-v2/service/eks` breaks unit tests. This [changelist](aws/aws-sdk-go-v2#2682) added SDK-specific feature tracking where all paginated operations now pass an additional argument (`addIsPaginatorUserAgent`) to add `UserAgentFeaturePaginator` to the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions.
cPu1 added a commit to cPu1/eksctl that referenced this pull request Jun 25, 2024
The latest version of `aws-sdk-go-v2/service/eks` breaks unit tests. This [changelist](aws/aws-sdk-go-v2#2682) added SDK-specific feature tracking where all paginated operations now pass an additional argument (`addIsPaginatorUserAgent`) to add `UserAgentFeaturePaginator` to the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions.

Fixes eksctl-io#7845
cPu1 added a commit to cPu1/eksctl that referenced this pull request Jun 25, 2024
The latest version of `aws-sdk-go-v2/service/eks` breaks unit tests. This [changelist](aws/aws-sdk-go-v2#2682) added SDK-specific feature tracking where all paginated operations now pass an additional argument (`addIsPaginatorUserAgent`) to add `UserAgentFeaturePaginator` to the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions.

Fixes eksctl-io#7845
cPu1 added a commit to cPu1/eksctl that referenced this pull request Jun 25, 2024
The latest version of `aws-sdk-go-v2/service/eks` breaks unit tests. This [changelist](aws/aws-sdk-go-v2#2682) added SDK-specific feature tracking where all paginated operations now pass an additional argument (`addIsPaginatorUserAgent`) to add `UserAgentFeaturePaginator` to the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions.

Fixes eksctl-io#7845
cPu1 added a commit to cPu1/eksctl that referenced this pull request Jun 25, 2024
The latest version of `aws-sdk-go-v2/service/eks` breaks unit tests. This [changelist](aws/aws-sdk-go-v2#2682) added SDK-specific feature tracking where all paginated operations now pass an additional argument (`addIsPaginatorUserAgent`) to add `UserAgentFeaturePaginator` to the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions.

Fixes eksctl-io#7845
cPu1 added a commit to cPu1/eksctl that referenced this pull request Jun 26, 2024
The latest version of `aws-sdk-go-v2/service/eks` breaks unit tests. This [changelist](aws/aws-sdk-go-v2#2682) added SDK-specific feature tracking where all paginated operations now pass an additional argument (`addIsPaginatorUserAgent`) to add `UserAgentFeaturePaginator` to the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions.

Fixes eksctl-io#7845
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

3 participants