Skip to content

[ARXIVCE-4186] Update functions#126

Open
carly-jones wants to merge 61 commits intomainfrom
ARXIVCE-4168-update-functions
Open

[ARXIVCE-4186] Update functions#126
carly-jones wants to merge 61 commits intomainfrom
ARXIVCE-4168-update-functions

Conversation

@carly-jones
Copy link
Collaborator

@carly-jones carly-jones commented Feb 3, 2026

Ticket(s): https://arxiv-org.atlassian.net/browse/ARXIVCE-4186

Description

This PR refactors stats cloud functions to use the stats-functions package, and flattens the scripts to prevent the memory leak issue cloud functions have been prone to.

Changes made

  • Bugfix name of monthly downloads entrypoint (preventing deployment)
  • Update function source and tests for aggregate hourly downloads, monthly submissions, and hourly edge requests

Testing instructions

Tests ran on this PR
Aggregate hourly downloads was deployed to dev for testing - the rest will be deployed to dev on merge (the changes are very similar in each)

@carly-jones carly-jones removed the request for review from jweiskoff February 4, 2026 16:18
@carly-jones carly-jones dismissed jweiskoff’s stale review February 4, 2026 16:20

not ready for review - significant changes pushed since

@bdc34
Copy link

bdc34 commented Feb 6, 2026

Please add coverage, coverage html report saving and --cov-fail-under to the pytest call in lint-test-function.yml

Copy link

@bdc34 bdc34 left a comment

Choose a reason for hiding this comment

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

Changes:

  1. pytest coverage in gha
  2. change to streaming if encountering OOM errors

@carly-jones
Copy link
Collaborator Author

a couple of functions need more tests - will do this first thing next week

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