Skip to content

chore: replace git clone of aws-sdk-go-v2 with HTTP fetch of individual model files#669

Merged
ack-prow[bot] merged 2 commits intoaws-controllers-k8s:mainfrom
michaelhtm:chore/improveGeneratorSpeed
Mar 3, 2026
Merged

chore: replace git clone of aws-sdk-go-v2 with HTTP fetch of individual model files#669
ack-prow[bot] merged 2 commits intoaws-controllers-k8s:mainfrom
michaelhtm:chore/improveGeneratorSpeed

Conversation

@michaelhtm
Copy link
Member

@michaelhtm michaelhtm commented Feb 21, 2026

Description of changes:
ack-generate previously cloned the entire aws-sdk-go-v2 repository
(hundreds of MB) just to read a single <service>.json model file,
taking ~2 minutes on a cold cache. This replaces that with a targeted
HTTP fetch from GitHub's raw content URL, downloading only the needed
model file and caching it locally under
~/.cache/ack-generate/models/<version>/. Cold generation now completes
in ~15 seconds; cached runs similarly in ~15 seconds as well (both run ~3 seconds
without gofmt)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from jlbutler and knottnt February 21, 2026 01:13
@ack-prow ack-prow bot added the approved label Feb 21, 2026
@michaelhtm michaelhtm force-pushed the chore/improveGeneratorSpeed branch from a6d74a0 to 0c87352 Compare February 23, 2026 20:26
…al model files

ack-generate previously cloned the entire aws-sdk-go-v2 repository
(hundreds of MB) just to read a single <service>.json model file,
taking ~2 minutes on a cold cache. This replaces that with a targeted
HTTP fetch from GitHub's raw content URL, downloading only the needed
model file and caching it locally under
~/.cache/ack-generate/models/<version>/. Cold generation now completes
in ~15 seconds; cached runs are near-instant
@michaelhtm michaelhtm force-pushed the chore/improveGeneratorSpeed branch 2 times, most recently from 165c932 to 811880b Compare February 23, 2026 20:48
@michaelhtm
Copy link
Member Author

/retest

1 similar comment
@knottnt
Copy link
Contributor

knottnt commented Feb 25, 2026

/retest

Copy link
Contributor

@knottnt knottnt left a comment

Choose a reason for hiding this comment

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

Thanks @michaelhtm

@knottnt
Copy link
Contributor

knottnt commented Feb 25, 2026

/test s3-controller-test

@michaelhtm michaelhtm force-pushed the chore/improveGeneratorSpeed branch from 811880b to f794fe5 Compare March 3, 2026 18:35
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

👍
/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 3, 2026
@ack-prow
Copy link

ack-prow bot commented Mar 3, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, michaelhtm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [a-hilaly,michaelhtm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@michaelhtm
Copy link
Member Author

retest

@michaelhtm
Copy link
Member Author

/retest

@ack-prow
Copy link

ack-prow bot commented Mar 3, 2026

@michaelhtm: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
verify-attribution f794fe5 link false /test verify-attribution

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ack-prow ack-prow bot merged commit 1854562 into aws-controllers-k8s:main Mar 3, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants