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

[JOSS] Reproducibility - Resolve issue with looking for benchmark tests in the wrong path. #7

Merged
merged 4 commits into from
Dec 6, 2022

Conversation

aholmes
Copy link
Contributor

@aholmes aholmes commented Dec 6, 2022

In #5, benchmarks were moved to the tests/ directory from the benchmark_code/ directory. This change updates that path.

This error is received on attempting to run the benchmarks:

$ python benchmarks/run_benchmarks.py --verbose
===========================================
    Ackermann
===========================================
Traceback (most recent call last):
  File "/home/aholmes/repos/pyccel-benchmarks/benchmarks/run_benchmarks.py", line 209, in <module>
    shutil.copyfile(test_file, os.path.join(new_folder, basename))
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/aholmes/repos/pyccel-benchmarks/benchmarks/benchmark_code/ackermann_mod.py'

Related openjournals/joss-reviews#4991

@aholmes aholmes force-pushed the aholmes-update-benchmark-test-path branch 2 times, most recently from 08144e8 to 8c9c477 Compare December 6, 2022 22:57
aholmes and others added 4 commits December 6, 2022 15:01
In pyccel#5, benchmarks were moved to the tests/ directory from the benchmark_code/ directory. This change updates that path.

This error is received on attempting to run the benchmarks:

```sh
$ python benchmarks/run_benchmarks.py --verbose
===========================================
    Ackermann
===========================================
Traceback (most recent call last):
  File "/home/aholmes/repos/pyccel-benchmarks/benchmarks/run_benchmarks.py", line 209, in <module>
    shutil.copyfile(test_file, os.path.join(new_folder, basename))
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/aholmes/repos/pyccel-benchmarks/benchmarks/benchmark_code/ackermann_mod.py'
```

Related: openjournals/joss-reviews#4991
@aholmes aholmes force-pushed the aholmes-update-benchmark-test-path branch from 7b5e223 to 3adea34 Compare December 6, 2022 23:01
@aholmes
Copy link
Contributor Author

aholmes commented Dec 6, 2022

Sorry for the PR spam. I made a mistake in my commit message and had to rebase. This PR may end up being unable to merge due to the force push. I'll fix it up if that happens.

@EmilyBourne EmilyBourne merged commit 1fda4ce into pyccel:main Dec 6, 2022
@aholmes
Copy link
Contributor Author

aholmes commented Dec 6, 2022

@EmilyBourne I just noticed another reference to the "benchmark_code/" directory in README.md. There may be other locations worth checking for. Thanks!

@EmilyBourne
Copy link
Member

@EmilyBourne I just noticed another reference to the "benchmark_code/" directory in README.md. There may be other locations worth checking for. Thanks!

Yes, I was just fixing that when I saw your PR. grep can't see any more, so hopefully it should all be cleaned up now

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

Successfully merging this pull request may close these issues.

2 participants