Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import_file test failing on macos #564

Closed
joepio opened this issue Jan 23, 2023 · 1 comment
Closed

import_file test failing on macos #564

joepio opened this issue Jan 23, 2023 · 1 comment

Comments

@joepio
Copy link
Member

joepio commented Jan 23, 2023

With cargo nextest run and cargo test:

thread 'import_file' panicked at 'Unexpected failure.
code-<interrupted>
stderr=```"thread \'<unnamed>\' panicked at \'cannot access a Thread Local Storage value during or after destruction: AccessError\', /rustc/85f4f41deb1557ca8ab228319d33003dd2f20f45/library/std/src/thread/local.rs:422:26\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\nfatal runtime error: failed to initiate panic, error 5\n"```
command=`"/Users/joep/dev/github/atomicdata-dev/atomic-data-rust/target/debug/atomic-server" "import" "--file" "/Users/joep/dev/github/atomicdata-dev/atomic-data-rust/server/../lib/test_files/local_id.json"`
code=<interrupted>
stdout="Importing...\nSucesfully imported \"/Users/joep/dev/github/atomicdata-dev/atomic-data-rust/server/../lib/test_files/local_id.json\" to store.\n"
stderr="thread \'<unnamed>\' panicked at \'cannot access a Thread Local Storage value during or after destruction: AccessError\', /rustc/85f4f41deb1557ca8ab228319d33003dd2f20f45/library/std/src/thread/local.rs:422:26\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\nfatal runtime error: failed to initiate panic, error 5\n"
', /rustc/85f4f41deb1557ca8ab228319d33003dd2f20f45/library/core/src/ops/function.rs:510:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

If I try running the command without the test context, it seems to work just fine. CI also seems to run the test just fine.

@joepio joepio changed the title import_file test failing import_file test failing on macos Jan 23, 2023
@joepio
Copy link
Member Author

joepio commented Jan 24, 2023

I can verify I broke it in the commit 20f02d8, Register endpoint, mail, tokens, #489 #254 #544

Notable, in that commit, appstate::init became async and I added mail server. I think it has to do with parsing the dotenv file for the mail server.

joepio added a commit that referenced this issue Jan 24, 2023
@joepio joepio closed this as completed Jan 24, 2023
joepio added a commit that referenced this issue Feb 5, 2023
joepio added a commit that referenced this issue Feb 25, 2023
joepio added a commit that referenced this issue Feb 28, 2023
joepio added a commit that referenced this issue Mar 11, 2023
joepio added a commit that referenced this issue Mar 30, 2023
joepio added a commit that referenced this issue Jul 31, 2023
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

No branches or pull requests

1 participant