graphql-go-tools icon indicating copy to clipboard operation
graphql-go-tools copied to clipboard

Configure Sweep

Open sweep-ai-deprecated[bot] opened this issue 2 years ago • 4 comments

🎉 Thank you for installing Sweep! We're thrilled to announce the latest update for Sweep, your trusty AI junior developer on GitHub. This PR creates a sweep.yaml config file, allowing you to personalize Sweep's performance according to your project requirements.

What's new?

  • Sweep is now configurable.
  • To configure Sweep, simply edit the sweep.yaml file in the root of your repository.
  • If you need help, check out the Sweep Default Config or Join Our Discord for help.

If you would like me to stop creating this PR, go to issues and say "Sweep: create an empty sweep.yaml file". Thank you for using Sweep! 🧹

GitHub actions yielded the following error.

I'm sorry, but I cannot see the logs you mentioned. Could you please provide the logs so that I can assist you in extracting the relevant lines?

This is likely a linting or type-checking issue with the source code.

GitHub actions yielded the following error.

The command that failed is make: *** [Makefile:11: test] Error 1.

Here are the relevant lines from the logs:

FAIL	github.com/TykTechnologies/graphql-go-tools/pkg/subscription	0.633s
--- FAIL: TestTimeOutChecker (0.02s)
--- FAIL: TestTimeOutChecker/should_stop_process_if_timer_runs_out (0.02s)
time_out_test.go:52:
Error Trace:	/home/runner/work/graphql-go-tools/graphql-go-tools/pkg/subscription/time_out_test.go:52
Error:      	Should be true
Test:       	TestTimeOutChecker/should_stop_process_if_timer_runs_out
FAIL

Please note that the specific error message is Should be true in the time_out_test.go file.

There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR.

This is likely a linting or type-checking issue with the source code. Update the code the changes and avoid modifying the existing tests.

GitHub actions yielded the following error.

The command that failed is make ci. Here are the relevant lines from the logs:

--- FAIL: TestOpenAPI_v3_0_0 (0.02s)
--- FAIL: TestOpenAPI_v3_0_0/example_oas7.json (0.00s)
openapi_test.go:30:
Error Trace:    /home/runner/work/graphql-go-tools/graphql-go-tools/pkg/openapi/openapi_test.go:30
/home/runner/work/graphql-go-tools/graphql-go-tools/pkg/openapi/openapi_test.go:44
Error:          Not equal:
expected: "schema {\n    query: Query\n    mutation: Mutation\n}\n\ntype Query {\n    \"Find a device by name.\"\n    findDeviceByName(deviceName: String!): Device\n    \"Return a device collection.\"\n    findDevices: [Device]\n    \"Return a user.\"\n    user: User\n}\n\ntype Mutation {\n    \"Create and return a device.\"\n    createDevice(deviceInput: DeviceInput!): Device\n    \"Replace a device by name.\"\n    replaceDeviceByName(deviceInput: DeviceInput!, deviceName: String!): Device\n}\n\ntype Device {\n    \"The device name in the network\"\n    name: String!\n    status: Boolean\n    \"The device owner Name\"\n    userName: String!\n}\n\ninput DeviceInput {\n    name: String!\n    status: Boolean\n    userName: String!\n}\n\n\"A user represents a natural person\"\ntype User {\n    \"The legal name of a user\"\n    name: String\n}"
actual  : "schema {\n    query: Query\n    mutation: Mutation\n}\n\ntype Query {\n    \"Find a device by name.\"\n    findDeviceByName(deviceName: String!): Device\n    \"Return a device collection.\"\n    findDevices: [Device]\n    \"Return a user.\"\n    user: User\n}\n\ntype Mutation {\n    \"Create and return a device.\"\n    createDevice(deviceInput: DeviceInput!): Device\n    \"Replace a device by name.\"\n    replaceDeviceByName(deviceInput: DeviceInput!, deviceName: String!): Device\n}\n\n\"A device is an object connected to the network\"\ntype Device {\n    \"The device name in the network\"\n    name: String!\n    status: Boolean\n    \"The device owner Name\"\n    userName: String!\n}\n\ninput DeviceInput {\n    name: String!\n    status: Boolean\n    userName: String!\n}\n\n\"A user represents a natural person\"\ntype User {\n    \"The legal name of a user\"\n    name: String\n}"

Diff:
--- Expected
+++ Actual
@@ -21,2 +21,3 @@

+"A device is an object connected to the network"
type Device {
Test:        TestOpenAPI_v3_0_0/example_oas7.json
FAIL
FAIL    github.com/TykTechnologies/graphql-go-tools/pkg/openapi    0.025s

Please note that the relevant lines may vary depending on the specific error you are debugging.

There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR.

This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests.

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Aug 22 '23 12:08 sonarqubecloud[bot]