Skip to content

chore: add support for contextcheck#5565

Draft
remyleone wants to merge 22 commits into
mainfrom
contextcheck
Draft

chore: add support for contextcheck#5565
remyleone wants to merge 22 commits into
mainfrom
contextcheck

Conversation

@remyleone
Copy link
Copy Markdown
Member

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Release note for CHANGELOG:


@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 12, 2026

❌ 5 Tests Failed:

Tests completed Failed Passed Skipped
2389 5 2384 17
View the top 3 failed test(s) by shortest run time
::TestMain
Stack Traces | 0s run time
panic: test timed out after 10m0s
	running tests:
		TestCleanupOnContext (10m0s)

goroutine 50 [running]:
testing.(*M).startAlarm.func1()
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2802 +0x354
created by time.goFunc
	.../hostedtoolcache/go/1.26.3.../src/time/sleep.go:215 +0x2d

goroutine 1 [chan receive]:
testing.(*T).Run(0x36c108a0d688, {0xe7e79e?, 0x0?}, 0xec0ee0)
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2109 +0x4e5
testing.runTests.func1(0x36c108a0d688)
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2585 +0x3e
testing.tRunner(0x36c108a0d688, 0x36c108b5fc58)
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2036 +0xea
testing.runTests({0xe8d9a7, 0x23}, {0xe9d7a4, 0x32}, 0x36c1088bd200, {0x1644400, 0x4, 0x4}, {0xc278f9b94e1c9390, 0x8bb3084753, ...})
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2583 +0x505
testing.(*M).Run(0x36c108ba2a00)
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2443 +0x6ac
main.main()
	_testmain.go:64 +0x9b

goroutine 30 [chan send]:
github..../v2/internal/tasks.(*Logger).Write(...)
	.../internal/tasks/logger.go:66
github..../v2/internal/tasks.(*Logger).AddEntry.func3({0xecc2c0, 0x36c108c08a90})
	.../internal/tasks/logger.go:140 +0x288
github..../v2/internal/tasks.(*Tasks).Execute(0x36c108929f00, {0xed6768, 0x36c108c00460}, {0x0, 0x0})
	.../internal/tasks/tasks.go:160 +0x4c9
github..../v2/internal/tasks_test.TestCleanupOnContext(0x36c108c2e488)
	.../internal/tasks/tasks_test.go:187 +0x1ee
testing.tRunner(0x36c108c2e488, 0xec0ee0)
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2036 +0xea
created by testing.(*T).Run in goroutine 1
	.../hostedtoolcache/go/1.26.3.../src/testing/testing.go:2101 +0x4c5

goroutine 10 [syscall]:
os/signal.signal_recv()
	.../hostedtoolcache/go/1.26.3.../src/runtime/sigqueue.go:152 +0x98
os/signal.loop()
	.../hostedtoolcache/go/1.26.3.../os/signal/signal_unix.go:23 +0x13
created by os/signal.Notify.func1.1 in goroutine 8
	.../hostedtoolcache/go/1.26.3.../os/signal/signal.go:152 +0x1f
FAIL	github..../v2/internal/tasks	600.105s
github.com/scaleway/scaleway-cli/v2/internal/namespaces/mcp/server::TestCommandToolExecute
Stack Traces | 0s run time
=== RUN   TestCommandToolExecute
    mcp_tools_test.go:108: Expected name 'test-name', got ''
    mcp_tools_test.go:111: Expected value 42, got 0
--- FAIL: TestCommandToolExecute (0.00s)
github.com/scaleway/scaleway-cli/v2/internal/namespaces/mcp/server::TestCommandToolExecutePanicRecovery
Stack Traces | 0s run time
=== RUN   TestCommandToolExecutePanicRecovery
    mcp_tools_test.go:267: Expected panic recovery message, got: Error initializing client: loading config: scaleway-sdk-go: cannot read config file ....../home/runner/.config/scw/config.yaml: no such file or directory
    mcp_tools_test.go:270: Recovered panic message: Error initializing client: loading config: scaleway-sdk-go: cannot read config file ....../home/runner/.config/scw/config.yaml: no such file or directory
--- FAIL: TestCommandToolExecutePanicRecovery (0.00s)
github.com/scaleway/scaleway-cli/v2/internal/namespaces/mcp/server::TestCommandToolExecuteWithKebabCase
Stack Traces | 0s run time
=== RUN   TestCommandToolExecuteWithKebabCase
    mcp_tools_test.go:162: Expected project_id '12345', got ''
    mcp_tools_test.go:165: Expected zone 'fr-par-1', got ''
--- FAIL: TestCommandToolExecuteWithKebabCase (0.00s)
github.com/scaleway/scaleway-cli/v2/internal/tasks::TestCleanupOnContext
Stack Traces | 0s run time
=== RUN   TestCleanupOnContext
#0 Running workflow

#1 TaskFunc 1
#1 DONE 0.0s

#2 TaskFunc 2
#2 DONE 0.0s

#3 TaskFunc 3
coverage: 86.4% of statements

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

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