Skip to content

Release Delphi Epidata 4.1.25 #1496

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

Closed
wants to merge 19 commits into from
Closed

Conversation

melange396 and others added 16 commits July 9, 2024 12:57
* Update epidata_development.md
…inks

Covid act now source links and context around deactivation
Put hhs docs under inactive signals
* remove duplicate logger.py in this repo
refactor: use delphi_utils.logger instead of copied file
Ignore the right blame commit this time. See #1488 (comment).
* One-time version check from package registry (once per module load)

---------

Co-authored-by: Dmitry Shemetov <[email protected]>
Co-authored-by: george <[email protected]>
@melange396
Copy link
Collaborator

CI failure appears to be due to changes in #1456 , but (bizarrely!) that PR passed the tests itself...

@minhkhul
Copy link
Contributor

Per @melange396 @dshemetov suggestions, moving version check in #1456 outside of that class definition.

@dshemetov
Copy link
Contributor

CI is taking a while to start. GH issue?

@dshemetov
Copy link
Contributor

duplicating 21c7df6 to test in this environment...
Copy link

@melange396
Copy link
Collaborator

when i applied equivalent changes from #1497 in this branch (the last two commits above), the test no longer fails... but this still does not explain why the test was previously failing here yet did not fail on the first commit of #1497 : https://github.com/cmu-delphi/delphi-epidata/actions/runs/10009669257/job/27669065083?pr=1497

@melange396
Copy link
Collaborator

i think i figured out the root of the problem; explanation copied from slack thread:

The only real difference between the dev branch and the branch created for a release PR are the version numbers that get bumped. The version number in the dev branch exactly matches the version of the client package in pypi, so when the client is imported, [the current implementation of] ._version_check() requests info from PyPI and the if fails and the method exits. This is a success and as intended. When the release action bumps the internal version number, that if will instead pass, and then it uses Epidata.log() to print a message -- but since log() is also a static method being used before the class definition is finalized and it is NOT called using the .__func__() "trick", it fails. Interestingly, the failing test output in GH actions ultimately blames the client file at line 67 for not having Epidata defined. Here is that line in the current dev branch: link ... But the first real problem actually happens when an Exception is raised 6 lines above, when it tries to print the message that the version is out of date! That Exception gets lost because the same problem happens again inside the except: handler block! So a good solution is still is to move the version check outside of the class definition body.

@melange396
Copy link
Collaborator

Lets close this PR and recreate the release after we merge #1497

@melange396 melange396 closed this Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants