raft-tech / TANF-app

Repo for development of a new TANF Data Reporting System
Other
17 stars 4 forks source link

#3137 (+ #3138) - worker crash/timeout on csv export #3162

Closed jtimpe closed 2 months ago

jtimpe commented 2 months ago

Summary of Changes

Pull request closes #3137

How to Test

cd tdrs-frontend && docker compose up --build
cd tdrs-backend && docker compose up
  1. Open http://localhost:3000/ and sign in. Navigate to the Django Admin Console.
  2. Navigate to one of the search_indexes model pages. select any number of models and execute the "Export as csv" action.
  3. Note the returned message stating the file location. The file can be retrieved locally by navigating to http://localhost:4566/tdp-datafiles-localstack/{returned path}
  4. Inspect the LogEntry objects created in the admin console.

Deliverables

More details on how deliverables herein are assessed included here.

Deliverable 1: Accepted Features

Checklist of ACs:

Deliverable 2: Tested Code

Deliverable 3: Properly Styled Code

Deliverable 4: Accessible

Deliverable 5: Deployed

Deliverable 6: Documented

Deliverable 7: Secure

Deliverable 8: User Research

Research product(s) clearly articulate(s):

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 28.07018% with 41 lines in your changes missing coverage. Please review.

Project coverage is 91.10%. Comparing base (febf97f) to head (e423b1b). Report is 25 commits behind head on develop.

Files with missing lines Patch % Lines
tdrs-backend/tdpservice/search_indexes/tasks.py 25.53% 35 Missing :warning:
...-backend/tdpservice/search_indexes/admin/mixins.py 40.00% 6 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162/graphs/tree.svg?width=650&height=150&src=pr&token=BA04YXPAL9&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech)](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech) ```diff @@ Coverage Diff @@ ## develop #3162 +/- ## =========================================== - Coverage 91.55% 91.10% -0.45% =========================================== Files 291 292 +1 Lines 8096 8153 +57 Branches 760 763 +3 =========================================== + Hits 7412 7428 +16 - Misses 601 642 +41 Partials 83 83 ``` | [Flag](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech) | Coverage Δ | | |---|---|---| | [dev-backend](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech) | `90.50% <28.07%> (-0.51%)` | :arrow_down: | | [dev-frontend](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech) | `95.34% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech) | Coverage Δ | | |---|---|---| | [...-backend/tdpservice/search\_indexes/admin/mixins.py](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162?src=pr&el=tree&filepath=tdrs-backend%2Ftdpservice%2Fsearch_indexes%2Fadmin%2Fmixins.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech#diff-dGRycy1iYWNrZW5kL3RkcHNlcnZpY2Uvc2VhcmNoX2luZGV4ZXMvYWRtaW4vbWl4aW5zLnB5) | `62.16% <40.00%> (+16.26%)` | :arrow_up: | | [tdrs-backend/tdpservice/search\_indexes/tasks.py](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162?src=pr&el=tree&filepath=tdrs-backend%2Ftdpservice%2Fsearch_indexes%2Ftasks.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech#diff-dGRycy1iYWNrZW5kL3RkcHNlcnZpY2Uvc2VhcmNoX2luZGV4ZXMvdGFza3MucHk=) | `25.92% <25.53%> (ø)` | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech). Last update [db12f08...e423b1b](https://app.codecov.io/gh/raft-tech/TANF-app/pull/3162?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=raft-tech).
ADPennington commented 2 months ago

when you get some time, can you fill in the ACs for this @jtimpe ?

jtimpe commented 2 months ago

when you get some time, can you fill in the ACs for this @jtimpe ?

@ADPennington apologies - the bug tickets didn't have any AC so i added some generic ones. the implementation for each is noted in the description

ADPennington commented 2 months ago

when you get some time, can you fill in the ACs for this @jtimpe ?

@ADPennington apologies - the bug tickets didn't have any AC so i added some generic ones. the implementation for each is noted in the description

@jtimpe no trouble; mostly just trying to get a better understanding of any possible constraints when testing. will keep you posted. thank you!

ADPennington commented 2 months ago

first round of testing results below cc: @jtimpe :

I'll continue testing tmor.

ADPennington commented 2 months ago

2nd round of testing results cc: @jtimpe

will continue testing.

jtimpe commented 2 months ago

top or htop while ssh'd into machine during csv export (no other concurrent operations) - if mem climbs, leak somewhere - celery DEBUG is on