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

Removing run-tests.py file. #4180

Merged
merged 72 commits into from
Jul 26, 2024
Merged

Conversation

prady0t
Copy link
Contributor

@prady0t prady0t commented Jun 14, 2024

Description

Trying to remove run-tests.py file.

prady0t added 3 commits June 14, 2024 21:57
Signed-off-by: Pradyot Ranjan <[email protected]>
Signed-off-by: Pradyot Ranjan <[email protected]>
Signed-off-by: Pradyot Ranjan <[email protected]>
@prady0t
Copy link
Contributor Author

prady0t commented Jun 14, 2024

Yet to add conftest.py file

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.45%. Comparing base (91c9744) to head (e321ede).
Report is 210 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4180   +/-   ##
========================================
  Coverage    99.45%   99.45%           
========================================
  Files          288      288           
  Lines        22092    22092           
========================================
  Hits         21972    21972           
  Misses         120      120           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good! I tried locally and

==================================================================== 44 passed in 100.46s (0:01:40) ====================================================================
nox > Session scripts was successful.

much faster than the serial implementation. I checked and the slowest scripts are run_ecm.py, experiment_drive_cycle.py, and pouch_cell_cooling.py. It might be worth improving those, but I guess 100 seconds for 44 scripts isn't too bad at all, afterall, and is rather great in terms of speedups.

noxfile.py Outdated Show resolved Hide resolved
tests/test_examples.py Outdated Show resolved Hide resolved
noxfile.py Outdated Show resolved Hide resolved
@prady0t
Copy link
Contributor Author

prady0t commented Jun 15, 2024

I think I messed up the branch. I'm having problems while pushing changes. I've made the changes for now.

prady0t added 3 commits June 16, 2024 08:56
Signed-off-by: Pradyot Ranjan <[email protected]>
Signed-off-by: Pradyot Ranjan <[email protected]>
Signed-off-by: Pradyot Ranjan <[email protected]>
@agriyakhetarpal
Copy link
Member

@prady0t, could you fix the failure in the style jobs so that the tests can run?

@prady0t
Copy link
Contributor Author

prady0t commented Jul 10, 2024

@prady0t, could you fix the failure in the style jobs so that the tests can run?

Done. I removed lot of code lines from conftest.py file and now we are using -m for everything. If a user runs pytest without any marker value, it runs all the tests, otherwise only those specified by -m flag.

@prady0t
Copy link
Contributor Author

prady0t commented Jul 14, 2024

Added documentation fixes.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
tests/test_scripts.py Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
tests/test_scripts.py Outdated Show resolved Hide resolved
Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work here, @prady0t! This looks great now – just a couple of comments, and this is ready to go.

CONTRIBUTING.md Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@agriyakhetarpal
Copy link
Member

This will need approval from @arjxn-py since he previously requested changes, we can merge after that

prady0t and others added 2 commits July 26, 2024 23:12
Co-authored-by: Agriya Khetarpal <[email protected]>
Co-authored-by: Agriya Khetarpal <[email protected]>
Copy link
Member

@arjxn-py arjxn-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thanks @prady0t.
Will just wait for CI to pass to observe logs once, then we can merge.

@agriyakhetarpal
Copy link
Member

@arjxn-py
Copy link
Member

No unnecessary logs this time around: https://github.com/pybamm-team/PyBaMM/actions/runs/10115401416/job/27976388229

Noticed that, just that we'd need to update branch to merge. My bad, I should have done it earlier.

@arjxn-py arjxn-py merged commit 48b4e48 into pybamm-team:develop Jul 26, 2024
23 of 24 checks passed
@kratman kratman mentioned this pull request Jul 26, 2024
js1tr3 pushed a commit to js1tr3/PyBaMM that referenced this pull request Aug 12, 2024
* Removing run-test.py file

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removing redundent files

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removing redundent files

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* Update test_examples.py

* Update noxfile.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* Removing run-test.py file

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removing redundent files

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removing redundent files

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removing example marker

Signed-off-by: Pradyot Ranjan <[email protected]>

* adding conftest.py file

Signed-off-by: Pradyot Ranjan <[email protected]>

* adding  back changes

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* Update test_examples.py

* style: pre-commit fixes

* Removing run-test.py file

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removing redundent files

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removing redundent files

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* Update test_examples.py

* Update noxfile.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* adding  back changes

Signed-off-by: Pradyot Ranjan <[email protected]>

* removing loop for file discovery

Signed-off-by: Pradyot Ranjan <[email protected]>

* removing loop for file discovery

Signed-off-by: Pradyot Ranjan <[email protected]>

* Adding more flags to pytest

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* Adding markers for unit and integration tests

Signed-off-by: Pradyot Ranjan <[email protected]>

* Adding markers for unit and integration tests

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* Added back assertDomainEqual

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* Added fixture for debug mode

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* Removed style failures

Signed-off-by: Pradyot Ranjan <[email protected]>

* Removed style failures

Signed-off-by: Pradyot Ranjan <[email protected]>

* Update conftest.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* style: pre-commit fixes

* Update conftest.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* Update noxfile.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* Update pyproject.toml

Co-authored-by: Agriya Khetarpal <[email protected]>

* Update tests/testcase.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* Update tests/test_scripts.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* Update tests/test_scripts.py

Co-authored-by: Agriya Khetarpal <[email protected]>

* style: pre-commit fixes

* using -m instead of args

Signed-off-by: Pradyot Ranjan <[email protected]>

* removed redundent files

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* fixing style failure

Signed-off-by: Pradyot Ranjan <[email protected]>

* style: pre-commit fixes

* adding documentation changes

Signed-off-by: Pradyot Ranjan <[email protected]>

* Update CONTRIBUTING.md

Co-authored-by: Agriya Khetarpal <[email protected]>

* Update CONTRIBUTING.md

Co-authored-by: Agriya Khetarpal <[email protected]>

* adding suggestions

Signed-off-by: Pradyot Ranjan <[email protected]>

* removing -s flag and getting file names in scripts log

Signed-off-by: Pradyot Ranjan <[email protected]>

* Update pyproject.toml

Co-authored-by: Agriya Khetarpal <[email protected]>

* Update CONTRIBUTING.md

Co-authored-by: Agriya Khetarpal <[email protected]>

---------

Signed-off-by: Pradyot Ranjan <[email protected]>
Co-authored-by: Pradyot Ranjan <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Agriya Khetarpal <[email protected]>
Co-authored-by: Arjun Verma <[email protected]>
Co-authored-by: Eric G. Kratz <[email protected]>
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.

4 participants