exercism / exercism/configlet

tests: `setupExercismRepo`: could retry if `git checkout` fails

Open
#719 0 comments 0 reactions 0 assignees View on GitHub
kind: tests
Dominant language
Nim
Stars
23
Forks
17
Avg merge
13h 57m
Merged PRs (30d)
1

Description

Erik saw when running `nimble test` :

> [Suite] generate
> fatal: reference is not a tree: 91ccf91940f32aff3726c772695b2de167d8192a
>
> Error when running `git -C /path/to/exercism/configlet/tests/.test_elixir_track_repo checkout --force 91ccf91940f32aff3726c772695b2de167d8192a`

Which was resolved by deleting the `tests/.test_elixir_track_repo` directory and rerunning `nimble test`.

This was probably due to a network error or keyboard interrupt during the previous clone of the repo. The checkout command should always succeed, so the tests could theoretically handle this case - trying to clone the repo again from scratch if the checkout failed.

The code is here:

https://github.com/exercism/configlet/blob/f8d86a35b92b5f5137fce931598d5ffc14fb9cac/src/exec.nim#L103-L118

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.