neume-network / strategies

Indexing strategies for the neume network.
GNU General Public License v3.0
11 stars 7 forks source link

Make tests easier to run #276

Closed neatonk closed 1 year ago

neatonk commented 1 year ago

I ran into a few hiccups while trying to run the tests in this repository and wanted to document them here with suggested improvements.

TimDaub commented 1 year ago
  • Tests seem a bit brittle wrt ethereum network state. One tests for soundxyz is failing for me due soundxyz metadata changes.

should have been solved in 94eff659eb879d3c4b3be8f90cedb31b4b2af94e

TimDaub commented 1 year ago
  • Tests seem a bit brittle wrt ethereum network state. One tests for soundxyz is failing for me due soundxyz metadata changes.

just found another one:

il3ven commented 1 year ago

It wasn't clear until I looked at the .gitignore file that the data directory should be a temp directory in this repo

This must be something specific to your system. I don't have a data directory and the tests do pass. Similarly, our CI also doesn't create a data directory. However it does add the DATA_DIR environment variable.

neatonk commented 1 year ago

This must be something specific to your system. I don't have a data directory and the tests do pass. Similarly, our CI also doesn't create a data directory. However it does add the DATA_DIR environment variable.

Thanks for that. It looks like the DATA var is probably not used when running tests. In which, case it should be removed from the example env or commented to explain that it is not used.

neatonk commented 1 year ago

I can put together a PR with these changes at a later date. Just wanted to document and clarify this stuff before I get too familiar with the code.

TimDaub commented 1 year ago

This must be something specific to your system. I don't have a data directory and the tests do pass. Similarly, our CI also doesn't create a data directory. However it does add the DATA_DIR environment variable.

Thanks for that. It looks like the DATA var is probably not used when running tests. In which, case it should be removed from the example env or commented to explain that it is not used.

I made some edits to .env-copy today and I now recommend to soft link the .env file from core

TimDaub commented 1 year ago

new section: https://github.com/neume-network/strategies#installation-and-contributing

TimDaub commented 1 year ago

IMO we should close this issue as all problems should be addresse now, or what's left?

neatonk commented 1 year ago

Agreed

IMO we should close this issue as all problems should be addresse now, or what's left?