Skip to content

fix: close open things#5593

Merged
rjsparks merged 4 commits intoietf-tools:mainfrom
rjsparks:closefiles
May 10, 2023
Merged

fix: close open things#5593
rjsparks merged 4 commits intoietf-tools:mainfrom
rjsparks:closefiles

Conversation

@rjsparks
Copy link
Copy Markdown
Member

@rjsparks rjsparks commented May 9, 2023

No description provided.

@rjsparks rjsparks requested a review from jennifer-richards May 9, 2023 21:53
Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

One suggestion and a FYI. Re: the suggestion, it doesn't particularly bother me if a temp file gets left behind so feel free to leave it as-is.

Comment thread ietf/doc/tests_bofreq.py Outdated
Comment thread ietf/nomcom/management/commands/feedback_email.py
Comment thread ietf/doc/tests_bofreq.py Outdated
self.assertEqual(bofreq.latest_event(NewRevisionDocEvent).rev, '00')
self.assertEqual(bofreq.text_or_error(), 'some stuff')
self.assertEqual(len(outbox),1)
with open(file.name,'rb') as bofreq_fd:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same pattern as before, same comment about file potentially being left around

@codecov
Copy link
Copy Markdown

codecov Bot commented May 10, 2023

Codecov Report

Merging #5593 (63df0a1) into main (9fa5427) will increase coverage by 0.00%.
The diff coverage is 86.66%.

@@           Coverage Diff           @@
##             main    #5593   +/-   ##
=======================================
  Coverage   88.74%   88.74%           
=======================================
  Files         285      285           
  Lines       39807    39810    +3     
=======================================
+ Hits        35326    35329    +3     
  Misses       4481     4481           
Impacted Files Coverage Δ
ietf/person/views.py 77.77% <75.00%> (ø)
ietf/utils/pipe.py 86.95% <87.50%> (ø)
ietf/nomcom/test_data.py 100.00% <100.00%> (ø)
ietf/review/mailarch.py 95.83% <100.00%> (+0.05%) ⬆️
ietf/utils/validators.py 70.05% <100.00%> (ø)

... and 1 file with indirect coverage changes

@rjsparks rjsparks merged commit f8113cb into ietf-tools:main May 10, 2023
@rjsparks rjsparks deleted the closefiles branch May 10, 2023 16:23
rjsparks added a commit that referenced this pull request May 11, 2023
* feat: Easy extraction of qualified volunteer list for nomcom chair (#5578)

* feat: Easy extraction of qualified volunteer list for nomcom chair

* fix: tune test setup to years where eligibility calculations can return nonempty

* chore: revert unintended change

* feat: default string when no affiliation is provided

* chore: pin django-oidc-provider (#5588)

* fix: add a link to the simplified volunteer view (#5583)

* chore: add bibxml-ids dir to container build. (#5590)

* chore: add bibxml-ids dir to container build. (#5590)

* feat: Process uploaded submissions asynchronously (#5580)

* fix: Use relative URL for submission status link

* refactor: Refactor/rename process_uploaded_submission async task

* feat: Add async task to process but not accept a submission

* feat: Replace upload_submission() with an async implementation (WIP)

* fix: Do not put Submission in "uploaded" state if an error occured

* refactor: Improve text/XML draft processing flow

* feat: Extract authors from text in async processing

* fix: Fix call signatures and abort submission on failed validation

* feat: Validate submission name format

* fix: Correctly validate emails from text submission

* fix: Clean up submission validation

* fix: Better display errors on upload_submission page

* feat: Reload submission status page when awaiting validation

* test: Fix call signatures; remove unused imports

* chore: Add type hint

* test: Update tests to match renamed task

* fix: Fix typo in error message

* test: Fix failing Api- and AsyncSubmissionTests

* Rename process_uploaded_submission to process_and_accept_...
* Remove outdated tests

Does not yet test new behavior.

* refactor: Break up submission_file() helper

* test: Refactor tests to run the async processing (wip)

* test: Drop test of bad PDF submission

The PDF submission field was removed, so no need to test it.

* test: Update more tests

* test: Bring back create_and_post_submission() and fix more tests

* fix: Drop to manual, don't cancel, on revision inconsistency

Fixes remaining failing SubmitTest tests

* style: Restyle upload_submission() with black

* test: Verify that async submission processing is invoked on upload

* test: Bring back old do_submission and fix tests

Properly separating the upload and async processing stages of submission
is a bigger refactoring than will fit right now. This better exercises
the submission pipeline.

* fix: Accept only XML for API submissions

* test: Test submission processing utilities

* feat: Improve status display for "validating" submissions

* chore: Remove obsolete code

* test: Update test to match amended text

---------

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>

* chore(deps): update all Yarn dependencies (#5564)

* chore(deps): update all Yarn dependencies

* chore: fix yarn cache

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: NGPixel <github@ngpixel.com>

* chore(deps): update all npm dependencies for dev/deploy-to-container (#5587)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>

* chore: Remove mysqlclient dependency (#5589)

* fix: close open things (#5593)

* fix: close open things

* fix: clean up test created files

* fix: remove one close too many

* chore: add git safe directory to docker init script

* chore: move git safe directory command to top

* chore: remove debugging file write from test (#5598)

---------

Co-authored-by: NGPixel <github@ngpixel.com>
Co-authored-by: Jennifer Richards <jennifer@staff.ietf.org>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants