Skip to content

tweak go fix #9353

Merged
stephanos merged 3 commits intotemporalio:mainfrom
stephanos:tweak-gofix-retry
Feb 23, 2026
Merged

tweak go fix #9353
stephanos merged 3 commits intotemporalio:mainfrom
stephanos:tweak-gofix-retry

Conversation

@stephanos
Copy link
Contributor

@stephanos stephanos commented Feb 19, 2026

What changed?

  1. Tweak on the loop in Makefile target fmt-gofix to retry based on output log.
  2. Include fmt-gofix in CI.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@stephanos stephanos force-pushed the tweak-gofix-retry branch 3 times, most recently from 0592337 to 9f6a6b1 Compare February 19, 2026 04:32
exit 1
fi

lint-yaml:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make fmt already invokes make fmt-yaml

- name: format golang import statements
run: |
make fmt-imports
make fmt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Includes make fmt-gofix and make fmt-yaml, too, now.

@stephanos stephanos marked this pull request as ready for review February 19, 2026 16:41
@stephanos stephanos requested review from a team as code owners February 19, 2026 16:41
@stephanos stephanos changed the title tweak go fix retry tweak go fix Feb 19, 2026
@stephanos stephanos assigned chaptersix and unassigned chaptersix Feb 20, 2026
@stephanos stephanos requested a review from chaptersix February 20, 2026 17:48
Makefile Outdated
fmt-gofix:
@printf $(COLOR) "Run go fix..."
@while ! go fix -any -rangeint ./...; do \
@while true; do \
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to filter out generated files like other lint checks do?

Copy link
Contributor

Choose a reason for hiding this comment

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

should we have a max iteration check here?

Copy link
Contributor Author

@stephanos stephanos Feb 23, 2026

Choose a reason for hiding this comment

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

do we need to filter out generated files like other lint checks do?

👍 it seems it does this automatically; will add a comment

On success, it silently updates your source files. It discards any fix that touches generated files since the appropriate fix in that case is to the logic of the generator itself.

should we have a max iteration check here?

👍 I figured the GH action has a timeout, but it's good to do this explicitly

@stephanos stephanos merged commit 73119cd into temporalio:main Feb 23, 2026
45 checks passed
@stephanos stephanos deleted the tweak-gofix-retry branch February 23, 2026 23:44
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.

2 participants