Commit 406923b
authored
ci: Fix integration test by avoid writing to read-only test directory (#675)
ci: Fix integration test by copying test dataset to writable directory
In the AWS infra, our test directory is not writable. HF datasets
unfortunately will always attempt to write a lock file even if the test
data exists in the directory. This avoids that by copying the test
datasets to a writable temp directory on the container.
In other repos, sometimes mock the datasets.builder.FileLock object to
also fix this problem. But it seems that the eval integration tests are
called in a different process. So, it's not feasible to mock that object
during the test. Fortunately, the test dataset is easy to copy over.
Successful run:
https://github.com/NVIDIA-NeMo/Evaluator/actions/runs/21506727996/job/61964385541
---------
Signed-off-by: Charlie Truong <chtruong@nvidia.com>1 parent fda57e0 commit 406923b
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
| 41 | + | |
0 commit comments