TestIncludeFileNoExecutions is Flaky in go-sqlcmd v1.8.2
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by running TestIncludeFileNoExecutions with the documented Docker SQL Server setup and the go test command. Investigate why the test fails inconsistently, then confirm it passes reliably without requiring the documented skip workaround.
Written by the indexing model from the issue text.
Description
Environment
- Go version: 1.22.0
- go-sqlcmd version: 1.8.2
- Operating System: Ubuntu 22.04
- Database Server: SQL Server 2017
How to reproduce
After starting SQL Server 2017 with its credentials on Docker:
docker run -m 2GB -e ACCEPT_EULA=1 -d --name {{ .Env.SQL_SERVER_NAME }} -p:1433:1433 -e SA_PASSWORD={{ .Env.SQLCMDPASSWORD }} mcr.microsoft.com/mssql/server:2017-latest
I'm running the test in Ubuntu 22.04 with:
go test -timeout 30s -run ^TestIncludeFileNoExecutions$
Issue Description
The test TestIncludeFileNoExecutions in go-sqlcmd v1.8.2 is flaky, sometimes failing inconsistently.
Workaround
Currently we are skipping this test with:
go test -skip=^TestIncludeFileNoExecutions$
- Dominant language
- Go
- Stars
- 595
- Forks
- 91
- Avg merge
- 9h 35m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/go-sqlcmd
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
All issues in microsoft/go-sqlcmd
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NVIDIA/gpu-operator#2955 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
kovidgoyal/kitty#10516 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
cisagov/vulnrichment#337 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100