# I can't run tests

**URL:** <https://forum.codecrafters.io/t/i-cant-run-tests/9098>\
**Category:** Challenges\
**Tags:** challenge:http-server\
**Created:** [April 20, 2025, 4:40pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098 "2025-04-20T16:40:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![danilovict2](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/danilovict2/32/3024_2.png) [@danilovict2](https://forum.codecrafters.io/u/danilovict2)\
**Post date:** [April 20, 2025, 4:40pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/1 "2025-04-20T16:40:07Z")

</div>

When I run `codecrafters test` I get this error:  
Initiating test run…

⏳ Turbo test runners busy. You are in queue.

Upgrade to skip the wait: [Turbo test runs - CodeCrafters](https://codecrafters.io/turbo)

Running tests. Logs should appear shortly…

CodeCrafters internal error: failed to get HEAD commit SHA: exit status 128. Output:  
Try again? Contact us at [hello@codecrafters.io](mailto:hello@codecrafters.io) if this persists.  
unexpected submission status: error

We couldn’t fetch the results of your submission. Please try again?  
Let us know at [hello@codecrafters.io](mailto:hello@codecrafters.io) if this error persists.  
unexpected submission status: error

I’ve tried everything from here: [github - git status shows fatal: bad object HEAD - Stack Overflow](https://stackoverflow.com/questions/20264032/git-status-shows-fatal-bad-object-head)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 21, 2025, 6:40am UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/4 "2025-04-21T06:40:09Z")

</div>

Hey @danilovict2, thanks for highlighting the issue! We’ll looked into it and update you when we have a fix.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 22, 2025, 7:49am UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/5 "2025-04-22T07:49:31Z")

</div>

@danilovict2 The issue was caused by `**/.git` in `.dockerignore`:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/c/c42bbeb0ec405b351a10186f0203106d694b86d8.png)

This line prevented Docker from copying `.git` into the image where your code runs.

I’ve removed it and pushed a few commits to your repo. You can run `git pull` to get the latest changes. Let me know if you’re still experiencing the issue!

---

<div class="post-metadata">

**Author:** ![danilovict2](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/danilovict2/32/3024_2.png) [@danilovict2](https://forum.codecrafters.io/u/danilovict2)\
**Post date:** [April 22, 2025, 3:11pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/7 "2025-04-22T15:11:11Z")

</div>

Nope, that didn’t work for me. Although there is a new error:  
Initiating test run…

⏳ Turbo test runners busy. You are in queue.

Upgrade to skip the wait: [Turbo test runs - CodeCrafters](https://codecrafters.io/turbo)

Running tests. Logs should appear shortly…

CodeCrafters internal error: failed to get HEAD commit SHA: exit status 128. Output: fatal: not a git repository (or any of the parent directories): .git

Try again? Contact us at [hello@codecrafters.io](mailto:hello@codecrafters.io) if this persists.  
unexpected submission status: error

We couldn’t fetch the results of your submission. Please try again?  
Let us know at [hello@codecrafters.io](mailto:hello@codecrafters.io) if this error persists.  
unexpected submission status: error

---

<div class="post-metadata">

**Author:** ![danilovict2](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/danilovict2/32/3024_2.png) [@danilovict2](https://forum.codecrafters.io/u/danilovict2)\
**Post date:** [April 22, 2025, 3:11pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/8 "2025-04-22T15:11:46Z")

</div>

And I’ve tried to do `git init` but that didn’t work

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 22, 2025, 3:34pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/9 "2025-04-22T15:34:57Z")

</div>

@danilovict2 Not sure how `**/.git` got back in `.dockerignore`. Could you try removing that line and give it another shot? Let me know how it goes!

---

<div class="post-metadata">

**Author:** ![danilovict2](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/danilovict2/32/3024_2.png) [@danilovict2](https://forum.codecrafters.io/u/danilovict2)\
**Post date:** [April 22, 2025, 3:37pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/10 "2025-04-22T15:37:34Z")

</div>

It magically works now somehow, even though I did absolutely nothing.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 22, 2025, 3:39pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/11 "2025-04-22T15:39:37Z")

</div>

Oh, I just reset the test runner for your repo.

---

<div class="post-metadata">

**Author:** ![danilovict2](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/danilovict2/32/3024_2.png) [@danilovict2](https://forum.codecrafters.io/u/danilovict2)\
**Post date:** [April 22, 2025, 3:46pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/12 "2025-04-22T15:46:09Z")

</div>

That’s great, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [April 27, 2025, 3:47pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/13 "2025-04-27T15:47:06Z")

</div>

Closed on April 27, 2025, 3:47pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 28, 2025, 12:07pm UTC](https://forum.codecrafters.io/t/i-cant-run-tests/9098/14 "2025-04-28T12:07:24Z")

</div>

@danilovict2 We’ve [made changes](https://github.com/codecrafters-io/test-runner/pull/260) to our test runner to ignore `.dockerignore` before building images.

You can now use a `.dockerignore` in your repo without worrying about it interfering with the test runner.
