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

Sentence-case #1034

Merged
merged 2 commits into from
Dec 26, 2024
Merged

Sentence-case #1034

merged 2 commits into from
Dec 26, 2024

Conversation

edan-bainglass
Copy link
Member

@edan-bainglass edan-bainglass commented Dec 24, 2024

This PR enforces sentence casing throughout the app.

Closes #987

@edan-bainglass
Copy link
Member Author

edan-bainglass commented Dec 24, 2024

@superstar54 please review the last commit

@edan-bainglass
Copy link
Member Author

@superstar54 I'm trying to fix the failed test. Simple enough, just regenerate the summary reference. However, since upgrading to the latest image, I can no longer run tests locally 😞 First I was missing locate, which I installed as root via apt update & apt install locate. But now I get FileNotFoundError: 'pg_ctl' could not be found.

@edan-bainglass
Copy link
Member Author

@superstar54 I'm trying to fix the failed test. Simple enough, just regenerate the summary reference. However, since upgrading to the latest image, I can no longer run tests locally 😞 First I was missing locate, which I installed as root via apt update & apt install locate. But now I get FileNotFoundError: 'pg_ctl' could not be found.

This is an issue with our stack. See here. For now, switching to the aiida-core-services environment allowed me to run the tests.

@edan-bainglass
Copy link
Member Author

@superstar54 I'm trying to fix the failed test. Simple enough, just regenerate the summary reference. However, since upgrading to the latest image, I can no longer run tests locally 😞 First I was missing locate, which I installed as root via apt update & apt install locate. But now I get FileNotFoundError: 'pg_ctl' could not be found.

This is an issue with our stack. See here. For now, switching to the aiida-core-services environment allowed me to run the tests.

Also, the solution was not to regenerate. It's just that the test is looking for hard coded strings that this PR changed (made sentence-case). Fixed!

Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.58%. Comparing base (5ce2532) to head (1413a12).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1034   +/-   ##
=======================================
  Coverage   67.58%   67.58%           
=======================================
  Files         117      117           
  Lines        6488     6488           
=======================================
  Hits         4385     4385           
  Misses       2103     2103           
Flag Coverage Δ
python-3.11 67.58% <100.00%> (ø)
python-3.9 67.60% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@edan-bainglass
Copy link
Member Author

@superstar54 can you please have a quick look once the tests pass? 🙏

@superstar54
Copy link
Member

can you please have a quick look once the tests pass?

The test failed. Seems need to change "From Example" to "From example"?

Copy link
Member

@superstar54 superstar54 left a comment

Choose a reason for hiding this comment

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

Hi @edan-bainglass , LGTM! I approved. Please merge when the tests pass.

@edan-bainglass
Copy link
Member Author

@superstar54 the docker build is now consistently failing with a timeout on test_qe_app_select_silicon_and_confirm. Can you have a look? Likely related to your From examples changes. I'll merge this one though, as it is unrelated.

@edan-bainglass edan-bainglass merged commit 212df84 into aiidalab:main Dec 26, 2024
7 of 8 checks passed
@edan-bainglass
Copy link
Member Author

@superstar54 the docker build is now consistently failing with a timeout on test_qe_app_select_silicon_and_confirm. Can you have a look? Likely related to your From examples changes. I'll merge this one though, as it is unrelated.

Ah, it IS this PR that is the cause of the failure. The test is looking for "From Examples", but this PR made it "From examples", so there we go. Okay, will fix in another PR.

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.

Make sure everywhere we use consistent capitalization
2 participants