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

Re-add CI yaml for Github actions and fix broken tests #54

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

ghukill
Copy link
Collaborator

@ghukill ghukill commented Dec 21, 2023

Purpose and background context

Fixes a couple tests after fixture renaming, and re-adds .github/ci.yml to run automated Github actions tests.

Includes new or updated dependencies?

NO

Changes expectations for external applications?

NO

What are the relevant tickets?

  • None

Developer

  • All new ENV is documented in README
  • All new ENV has been added to staging and production environments
  • All related Jira tickets are linked in commit message(s)
  • Stakeholder approval has been confirmed (or is not needed)

Code Reviewer(s)

  • The commit message is clear and follows our guidelines (not just this PR message)
  • There are appropriate tests covering any new functionality
  • The provided documentation is sufficient for understanding any new functionality introduced
  • Any manual tests have been performed and verified
  • New dependencies are appropriate or there were no changes

Why these changes are being introduced:
The base Harvester class relies on a utility method convert_to_utc() to convert whatever datetime object
is parsed from the CLI arguments to UTC time.  In a deployed context (or Github actions) the "local" timezone
is UTC, so this should have no effect.  From a developer machine, this is likely EST or another timezone.

Previously, the unit test had a 5 hour bump for the datetime assertion, which reflected the parsed UTC time.  When
in reality, the unit test should assert that a parsed YYYY-MM-DD date provided via the CLI matches a UTC time of that
same format.

How this addresses that need:
* Unit test does not include hours or minutes but instead asserts same year, month, date equality and UTC timestamp

Side effects of this change:
* None

Relevant ticket(s):
* None
@ghukill ghukill marked this pull request as ready for review December 21, 2023 21:10
@ghukill ghukill merged commit 4801673 into main Dec 21, 2023
5 checks passed
@ghukill ghukill deleted the fix-tests-from-merges branch December 22, 2023 15:33
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.

None yet

2 participants