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

Fix make more #31

Merged
merged 6 commits into from
Aug 27, 2023
Merged

Fix make more #31

merged 6 commits into from
Aug 27, 2023

Conversation

chris-ha458
Copy link
Contributor

Makefile still doesn't work in someways.
This PR plugs the gaps.

To be honest I am not happy with how I am skipping the rust test since they return as successful instead of ignored.
One difficulty is to maintain the tests by default instead of enabling it.

I thought of a solution that is the cleanest :
Prepend all s3 related rust tests with s3 and attach #[ignore].
They would be re-enabled on demand as such : cargo test s3
https://doc.rust-lang.org/book/ch11-02-running-tests.html#filtering-to-run-multiple-tests

However, this might make life more difficult for the current main developers who would have to go through more hoops at the expense of potential outside contributors.
The default settings should be helpful to the default developers.

At this point, my goal is to just make rust tests run and succeed.

IMO we can implement this PR as a stop gap and then move on to a more permanent solution when we can.

add `make test` target into Makefile that tests both rust and python
skip s3 related rust tests if
DOLMA_TESTS_SKIP_AWS=True
@chris-ha458
Copy link
Contributor Author

Also this process made me release that there are no tests for rust targets.
It would be helpful if there is one for rust as well.
Candidates would be

  • (cargo test with or without DOLMA_TESTS_SKIP_AWS=True)
  • make test-rust (with or without export DOLMA_TESTS_SKIP_AWS=True)

@soldni
Copy link
Member

soldni commented Aug 25, 2023

@chris-ha458 do you mind fixing style errors? thanks!

make it simpler and clearer what we're trying to do.
No need to set to false since we arent going to do anything unless `var==true`
@soldni soldni merged commit 8d6ddfe into allenai:main Aug 27, 2023
12 checks passed
@chris-ha458 chris-ha458 deleted the fix_make_more branch August 27, 2023 01:56
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