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

testifylint v1.3.0 fixes #3103

Merged
merged 5 commits into from
May 27, 2024
Merged

testifylint v1.3.0 fixes #3103

merged 5 commits into from
May 27, 2024

Conversation

StevenACoffman
Copy link
Collaborator

@StevenACoffman StevenACoffman commented May 27, 2024

Inspired by @alexandear , I took a stab at upgrading testifylint and enabling some more of it's linters

After upgrading testifylint to v1.3.0, running testifylint --fix ./..., I got some test failures. Running testifylint ./... there were still a number of other new issues, so I followed those recommendations, and there were even more test failures.

I'm imagining that these are either:

  1. longstanding issues that we just weren't noticing before or
  2. incorrect adjustments to the existing tests.

However, even if we got all failures to pass, there are still a fair number of remaining lint issues around testify's require. being called inside handlers or goroutines.

These are problems that should also get fixed, but need some more work to address so I'm deferring that.

Wait, tell me about the legit issues that we are not addressing

This checker is a radically improved analogue of go vet's
testinggoroutine check.

The point of the check is that, according to the documentation,
functions leading to t.FailNow (essentially to runtime.GoExit) must only be used in the goroutine that runs the test.
Otherwise, they will not work as declared, namely, finish the test function.

You can disable the go-require checker and continue to use require as the current goroutine finisher, but this could lead

  1. to possible resource leaks in tests;
  2. to increasing confusion, because functions will be not used as intended.

Typically, any assertions inside goroutines are a marker of poor test architecture.
Try to execute them in the main goroutine and distribute the data necessary for this into it
(example).

Also a bad solution would be to simply replace all require in goroutines with assert
(like here)
– this will only mask the problem.

In addition, the checker warns about require in HTTP handlers (functions and methods whose signature matches
http.HandlerFunc), because handlers run in a separate
service goroutine that
services the HTTP connection. Terminating these goroutines can lead to undefined behaviour and difficulty debugging tests.
You can turn off the check using the --go-require.ignore-http-handlers flag.

P.S. Look at testify's issue, related to assertions in the goroutines.

List of remaining lint problems:

/gqlgen/client/client_test.go:24:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:25:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:32:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:49:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:50:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:51:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:52:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:53:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:54:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:55:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:56:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:86:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:101:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:115:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:116:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:117:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:133:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:134:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:150:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:151:3: go-require: do not use require in http handlers
/gqlgen/client/client_test.go:157:3: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:32:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:33:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:41:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:44:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:49:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:52:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:55:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:56:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:74:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:75:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:83:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:86:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:91:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:96:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:97:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:98:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:99:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:100:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:103:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:104:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:127:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:128:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:136:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:139:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:144:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:149:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:150:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:151:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:152:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:153:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:154:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:155:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:158:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:159:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:186:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:187:4: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:195:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:198:5: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:203:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:206:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:209:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:210:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:211:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:212:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:213:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:214:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:215:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:218:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:219:6: go-require: do not use require in http handlers
/gqlgen/client/withfilesoption_test.go:224:5: go-require: do not use require in http handlers
/gqlgen/graphql/handler/apollofederatedtracingv1/tracing_test.go:80:4: go-require: require must only be used in the goroutine running the test function
/gqlgen/graphql/handler/apollofederatedtracingv1/tracing_test.go:84:4: go-require: require must only be used in the goroutine running the test function
/gqlgen/graphql/handler/apollofederatedtracingv1/tracing_test.go:88:4: go-require: require must only be used in the goroutine running the test function
/gqlgen/graphql/handler/apollofederatedtracingv1/tracing_test.go:89:4: go-require: require must only be used in the goroutine running the test function

@StevenACoffman StevenACoffman changed the title testifylint v1 3 0 fixes testifylint v1.3.0 fixes May 27, 2024
@StevenACoffman
Copy link
Collaborator Author

Just autofixes, I get these test failures:

--- FAIL: TestPackages (0.07s)
    --- FAIL: TestPackages/name_for_existing_package_does_not_load_again (0.02s)
        packages_test.go:59: 
            	Error Trace:	/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:59
            	            				/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:12
            	Error:      	Received unexpected error:
            	            	packages.Load: 
            	Test:       	TestPackages/name_for_existing_package_does_not_load_again
    --- FAIL: TestPackages/name_for_unknown_package_makes_name_only_load (0.02s)
        packages_test.go:59: 
            	Error Trace:	/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:59
            	            				/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:18
            	Error:      	Received unexpected error:
            	            	packages.Load: 
            	Test:       	TestPackages/name_for_unknown_package_makes_name_only_load
    --- FAIL: TestPackages/evicting_a_package_causes_it_to_load_again (0.01s)
        packages_test.go:59: 
            	Error Trace:	/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:59
            	            				/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:25
            	Error:      	Received unexpected error:
            	            	packages.Load: 
            	Test:       	TestPackages/evicting_a_package_causes_it_to_load_again
    --- FAIL: TestPackages/able_to_load_private_package_with_build_tags (0.02s)
        packages_test.go:59: 
            	Error Trace:	/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:59
            	            				/home/runner/work/gqlgen/gqlgen/internal/code/packages_test.go:34
            	Error:      	Received unexpected error:
            	            	packages.Load: 
            	Test:       	TestPackages/able_to_load_private_package_with_build_tags
FAIL

@StevenACoffman StevenACoffman added the help wanted Extra attention is needed label May 27, 2024
@alexandear
Copy link
Contributor

@StevenACoffman Fixed some problems with tests here #3105, please take a look.

Copy link
Contributor

@erka erka left a comment

Choose a reason for hiding this comment

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

InEpsilon doesn't expect 0 as value because the calculation will be return 0 delta

codegen/testserver/followschema/interfaces_test.go Outdated Show resolved Hide resolved
codegen/testserver/singlefile/interfaces_test.go Outdated Show resolved Hide resolved
alexandear and others added 4 commits May 27, 2024 10:42
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
Co-authored-by: Roman Dmytrenko <rdmytrenko@gmail.com>
@coveralls
Copy link

Coverage Status

coverage: 74.772% (+0.01%) from 74.762%
when pulling 7dddf3b on testifylint_v1_3_0_fixes
into bbb0c95 on master.

@StevenACoffman
Copy link
Collaborator Author

Thank you so much @erka and @alexandear !

@StevenACoffman StevenACoffman merged commit b18d028 into master May 27, 2024
17 checks passed
@StevenACoffman StevenACoffman deleted the testifylint_v1_3_0_fixes branch May 27, 2024 14:55
github-merge-queue bot pushed a commit to infratographer/x that referenced this pull request Aug 8, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/99designs/gqlgen](https://togithub.com/99designs/gqlgen) |
`v0.17.45` -> `v0.17.49` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2f99designs%2fgqlgen/v0.17.49?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2f99designs%2fgqlgen/v0.17.49?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2f99designs%2fgqlgen/v0.17.45/v0.17.49?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2f99designs%2fgqlgen/v0.17.45/v0.17.49?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>99designs/gqlgen (github.com/99designs/gqlgen)</summary>

###
[`v0.17.49`](https://togithub.com/99designs/gqlgen/releases/tag/v0.17.49)

[Compare
Source](https://togithub.com/99designs/gqlgen/compare/v0.17.48...v0.17.49)

#### What's Changed

- chore(deps): bump golang.org/x/text from 0.15.0 to 0.16.0 in
/\_examples by [@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3123
- chore(deps-dev): bump vite from 5.2.12 to 5.2.13 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3126
- chore(deps): bump golang.org/x/text from 0.15.0 to 0.16.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3124
- chore(deps): bump golang.org/x/tools from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3125
- Linter update + add revive rules by
[@&#8203;StevenACoffman](https://togithub.com/StevenACoffman) in
[99designs/gqlgen#3127
- chore(deps): bump github.com/vektah/gqlparser/v2 from 2.5.12 to 2.5.14
in the go_modules group by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3133
- chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /integration in
the npm_and_yarn group by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3134
- [#&#8203;3118](https://togithub.com/99designs/gqlgen/issues/3118) Add
token limit option to fix CVE-2023-49559 by
[@&#8203;xaviergodart](https://togithub.com/xaviergodart) in
[99designs/gqlgen#3136
- refactor: add missed file.Close() and use t.TempDir() by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3137

#### New Contributors

- [@&#8203;xaviergodart](https://togithub.com/xaviergodart) made their
first contribution in
[99designs/gqlgen#3136

**Full Changelog**:
99designs/gqlgen@v0.17.48...v0.17.49

###
[`v0.17.48`](https://togithub.com/99designs/gqlgen/releases/tag/v0.17.48)

[Compare
Source](https://togithub.com/99designs/gqlgen/compare/v0.17.47...v0.17.48)

#### What's Changed

- chore(deps-dev): bump
[@&#8203;graphql-codegen/client-preset](https://togithub.com/graphql-codegen/client-preset)
from 4.2.5 to 4.2.6 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3084
- chore(deps-dev): bump
[@&#8203;apollo/client](https://togithub.com/apollo/client) from 3.10.3
to 3.10.4 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3085
- Embed extra fields config by
[@&#8203;atzedus](https://togithub.com/atzedus) in
[99designs/gqlgen#3088
- refactor: use 'any' instead of 'interface{}' for consistency by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3090
- refactor: UnmarshalID implementation by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3093
- refactor: simplify with strconv.FormatBool by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3094
- Fix go install gqlgen binary by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3095
- Ignore gorilla/websocket 1.5.1 in dependabot by
[@&#8203;StevenACoffman](https://togithub.com/StevenACoffman) in
[99designs/gqlgen#3097
- refactor: avoid panic in tests by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3098
- refactor: rename local variables to match Go codestyle by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3100
- refactor: use t.Log instead of fmt.Print by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3099
- Some minor test lint by
[@&#8203;StevenACoffman](https://togithub.com/StevenACoffman) in
[99designs/gqlgen#3102
- ignore websocket v1.5.1 release for dependabot updates to the
\_examples module by
[@&#8203;StevenACoffman](https://togithub.com/StevenACoffman) in
[99designs/gqlgen#3101
- fix: tests failure, testifylint issues, pin golangci-lint version by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3105
- testifylint v1.3.0 fixes by
[@&#8203;StevenACoffman](https://togithub.com/StevenACoffman) in
[99designs/gqlgen#3103
- refactor: fix testifylint lint issues in examples by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3107
- Remove duplicated return_pointers_in_unmarshalinput explanation by
[@&#8203;cirelli94](https://togithub.com/cirelli94) in
[99designs/gqlgen#3109
- Go template function to split string into array of strings. by
[@&#8203;khudayberdiyev25](https://togithub.com/khudayberdiyev25) in
[99designs/gqlgen#3108
- Correct dataloader example by
[@&#8203;mpldr](https://togithub.com/mpldr) in
[99designs/gqlgen#3110
- Omit gqlgen version in config files used for tests by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3111
- refactor: use errors.New instead of fmt.Errorf where possible by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3112
- refactor: fix gocritic lint issues by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3113
- add option to omit panic handlers during development by
[@&#8203;mpldr](https://togithub.com/mpldr) in
[99designs/gqlgen#3114
- chore(deps-dev): bump vite from 5.2.11 to 5.2.12 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3117

#### New Contributors

- [@&#8203;cirelli94](https://togithub.com/cirelli94) made their first
contribution in
[99designs/gqlgen#3109
- [@&#8203;khudayberdiyev25](https://togithub.com/khudayberdiyev25) made
their first contribution in
[99designs/gqlgen#3108
- [@&#8203;mpldr](https://togithub.com/mpldr) made their first
contribution in
[99designs/gqlgen#3110

**Full Changelog**:
99designs/gqlgen@v0.17.47...v0.17.48

###
[`v0.17.47`](https://togithub.com/99designs/gqlgen/releases/tag/v0.17.47)

[Compare
Source](https://togithub.com/99designs/gqlgen/compare/v0.17.46...v0.17.47)

##### What's Changed

- chore: simplify generating examples in release script by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3064
- refactor: compile regex only once by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3063
- refactor: simplify test asserts by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3061
- Fix typo in error message by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3065
- chore: remove deprecated errcheck.ignore lint option by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3062
- chore(deps): bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3069
- chore(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3071
- chore(deps-dev): bump
[@&#8203;apollo/client](https://togithub.com/apollo/client) from 3.10.2
to 3.10.3 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3073
- chore(deps-dev): bump urql from 4.0.7 to 4.1.0 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3074
- chore(deps): bump golang.org/x/tools from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3072
- chore(deps): bump github.com/sosodev/duration from 1.3.0 to 1.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3070
- Fix go mod tidy by
[@&#8203;StevenACoffman](https://togithub.com/StevenACoffman) in
[99designs/gqlgen#3075
- Ability to inline extraFields configuration. New
[@&#8203;goExtraField](https://togithub.com/goExtraField) directive. by
[@&#8203;atzedus](https://togithub.com/atzedus) in
[99designs/gqlgen#3076
- Federation: Update docs to use IntrospectAndCompose by
[@&#8203;frankywahl](https://togithub.com/frankywahl) in
[99designs/gqlgen#3077
- bugfix for [@&#8203;goField](https://togithub.com/goField) +
[@&#8203;goExtraField](https://togithub.com/goExtraField) combination by
[@&#8203;atzedus](https://togithub.com/atzedus) in
[99designs/gqlgen#3078
- Fix [#&#8203;2856](https://togithub.com/99designs/gqlgen/issues/2856):
resolver receive previous implementation on render by
[@&#8203;roneli](https://togithub.com/roneli) in
[99designs/gqlgen#2886
- Update gqlparser to v2.5.12 by
[@&#8203;StevenACoffman](https://togithub.com/StevenACoffman) in
[99designs/gqlgen#3080

**Full Changelog**:
99designs/gqlgen@v0.17.46...v0.17.47

###
[`v0.17.46`](https://togithub.com/99designs/gqlgen/releases/tag/v0.17.46)

[Compare
Source](https://togithub.com/99designs/gqlgen/compare/v0.17.45...v0.17.46)

#### What's Changed

- Bump [@&#8203;apollo/client](https://togithub.com/apollo/client) from
3.9.6 to 3.9.7 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2970
- Bump vitest from 1.3.1 to 1.4.0 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2972
- Bump vite from 5.1.5 to 5.1.6 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2971
- chore: remove repetitive words by
[@&#8203;deterclosed](https://togithub.com/deterclosed) in
[99designs/gqlgen#2976
- Bump typescript from 5.4.2 to 5.4.3 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2979
- Bump vite from 5.1.6 to 5.2.6 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2978
- Bump [@&#8203;apollo/client](https://togithub.com/apollo/client) from
3.9.7 to 3.9.9 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2977
- Add UintID type binding by
[@&#8203;nawivee](https://togithub.com/nawivee) in
[99designs/gqlgen#2980
- Bump
[@&#8203;graphql-codegen/client-preset](https://togithub.com/graphql-codegen/client-preset)
from 4.2.4 to 4.2.5 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2983
- Bump graphql-sse from 2.5.2 to 2.5.3 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2985
- Bump vite from 5.2.6 to 5.2.7 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2984
- enum values binding by
[@&#8203;nikitacrit](https://togithub.com/nikitacrit) in
[99designs/gqlgen#2982
- fix: stop loading package dependencies by
[@&#8203;agratta-silo](https://togithub.com/agratta-silo) in
[99designs/gqlgen#2988
- Bump typescript from 5.4.3 to 5.4.4 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2993
- Bump [@&#8203;apollo/client](https://togithub.com/apollo/client) from
3.9.9 to 3.9.10 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2994
- Update `tools.go` url by
[@&#8203;38elements](https://togithub.com/38elements) in
[99designs/gqlgen#2987
- Bump vite from 5.2.7 to 5.2.8 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2992
- Bump golang.org/x/tools from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2996
- Bump graphql-ws from 5.15.0 to 5.16.0 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2986
- Bump urql from 4.0.6 to 4.0.7 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#2995
- Mark ctx as unused when no arguments for FieldContextFunc by
[@&#8203;halkeye](https://togithub.com/halkeye) in
[99designs/gqlgen#2999
- chore: update Automatic Persisted Queries Link by
[@&#8203;38elements](https://togithub.com/38elements) in
[99designs/gqlgen#3005
- fix: codegen will \_ the fieldset parameter if its not needed by
[@&#8203;halkeye](https://togithub.com/halkeye) in
[99designs/gqlgen#3006
- Bump vitest from 1.4.0 to 1.5.0 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3012
- Bump typescript from 5.4.4 to 5.4.5 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3010
- Bump [@&#8203;apollo/client](https://togithub.com/apollo/client) from
3.9.10 to 3.9.11 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3011
- Bump vite from 5.2.8 to 5.2.10 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3015
- chore: fix some typos in comments by
[@&#8203;knowmost](https://togithub.com/knowmost) in
[99designs/gqlgen#3020
- chore: remove unused lint.txt by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3017
- Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3026
- Bump github.com/rs/cors from 1.10.1 to 1.11.0 in /\_examples by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3025
- Bump github.com/urfave/cli/v2 from 2.27.1 to 2.27.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3023
- Bump [@&#8203;apollo/client](https://togithub.com/apollo/client) from
3.9.11 to 3.10.1 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3022
- Bump vitest from 1.5.0 to 1.5.2 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3021
- Bump github.com/sosodev/duration from 1.2.0 to 1.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3024
- Fix test asserts: reverse expected and actual params by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3027
- refactor: simplify tests for `api.Generate` by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3031
- Improve federation resolver selection by
[@&#8203;clayne11](https://togithub.com/clayne11) in
[99designs/gqlgen#3029
- chore: `run.skip-dirs` is deprecated in golangci-lint v1.57 by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3034
- chore: remove redundant empty lines by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3035
- refactor: change test asserts to be more idiomatic by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3036
- docs: fix links to the docs latest version by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3038
- Fix codegen config tests: add file closing by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3037
- chore: remove deprecated build constraint by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3041
- chore: lint \_examples directory by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3042
- Add initial cache tests for MapCache and NoCache by
[@&#8203;shion0625](https://togithub.com/shion0625) in
[99designs/gqlgen#3040
- enum values binding v2 by
[@&#8203;nikitacrit](https://togithub.com/nikitacrit) in
[99designs/gqlgen#3014
- chore: simplify go generate in examples by
[@&#8203;alexandear](https://togithub.com/alexandear) in
[99designs/gqlgen#3033
- chore(deps): bump golangci/golangci-lint-action from 5.0.0 to 5.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3054
- chore(deps): bump golang.org/x/text from 0.14.0 to 0.15.0 in
/\_examples by [@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3053
- chore(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3050
- chore(deps-dev): bump
[@&#8203;apollo/client](https://togithub.com/apollo/client) from 3.10.1
to 3.10.2 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3049
- chore(deps-dev): bump vitest from 1.5.2 to 1.6.0 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3048
- chore(deps): bump github.com/PuerkitoBio/goquery from 1.9.1 to 1.9.2
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3051
- chore(deps): bump golang.org/x/text from 0.14.0 to 0.15.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3052
- chore(deps-dev): bump vite from 5.2.10 to 5.2.11 in /integration by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[99designs/gqlgen#3047
- fix: failed to build \_examples/websocket-initfunc/server/server.go
([#&#8203;3055](https://togithub.com/99designs/gqlgen/issues/3055)) by
[@&#8203;Reimei1213](https://togithub.com/Reimei1213) in
[99designs/gqlgen#3058

#### New Contributors

- [@&#8203;deterclosed](https://togithub.com/deterclosed) made their
first contribution in
[99designs/gqlgen#2976
- [@&#8203;nawivee](https://togithub.com/nawivee) made their first
contribution in
[99designs/gqlgen#2980
- [@&#8203;nikitacrit](https://togithub.com/nikitacrit) made their first
contribution in
[99designs/gqlgen#2982
- [@&#8203;agratta-silo](https://togithub.com/agratta-silo) made their
first contribution in
[99designs/gqlgen#2988
- [@&#8203;38elements](https://togithub.com/38elements) made their first
contribution in
[99designs/gqlgen#2987
- [@&#8203;halkeye](https://togithub.com/halkeye) made their first
contribution in
[99designs/gqlgen#2999
- [@&#8203;knowmost](https://togithub.com/knowmost) made their first
contribution in
[99designs/gqlgen#3020
- [@&#8203;alexandear](https://togithub.com/alexandear) made their first
contribution in
[99designs/gqlgen#3017
- [@&#8203;shion0625](https://togithub.com/shion0625) made their first
contribution in
[99designs/gqlgen#3040
- [@&#8203;Reimei1213](https://togithub.com/Reimei1213) made their first
contribution in
[99designs/gqlgen#3058

**Full Changelog**:
99designs/gqlgen@v0.17.45...v0.17.46

</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/infratographer/x).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants