# Undefined Variable Error only on Github CI tests

**URL:** https://discourse.julialang.org/t/undefined-variable-error-only-on-github-ci-tests/108804
**Category:** General Usage
**Tags:** question
**Created:** [January 14, 2024, 10:27pm UTC](https://discourse.julialang.org/t/undefined-variable-error-only-on-github-ci-tests/108804 "2024-01-14T22:27:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tortar](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@Tortar](https://discourse.julialang.org/u/Tortar)
#### Post date: [January 14, 2024, 10:27pm UTC](https://discourse.julialang.org/t/undefined-variable-error-only-on-github-ci-tests/108804/1 "2024-01-14T22:27:05Z")

</div>

I got this mysterious error on github:

```julia
  Got exception outside of a @test
  On worker 2:
  UndefVarError: `#323#326` not defined

```

along with other two very similar errors.

What is really strange though is that locally everything works fine. These are the CI logs: [new internal API for sampling · JuliaDynamics/Agents.jl@af9b3a8 · GitHub](https://github.com/JuliaDynamics/Agents.jl/actions/runs/7521387289/job/20472784488#step:7:1119)

Maybe related is the fact that all three test failing on CI are all in parallel code. However when testing locally no test fails so I’m a bit confused.

Do you have any idea on what could be the cause?

---

<div class="post-metadata">

### Author: ![Tortar](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@Tortar](https://discourse.julialang.org/u/Tortar)
#### Post date: [January 14, 2024, 11:34pm UTC](https://discourse.julialang.org/t/undefined-variable-error-only-on-github-ci-tests/108804/2 "2024-01-14T23:34:30Z")

</div>

very strange, I finished up another unrelated PR and it contains the same errors on github, but works fine locally as the other one
