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

Adjust automation re: make_v2021_runoff_file #185

Merged
merged 4 commits into from
Jun 5, 2023

Conversation

douglatornell
Copy link
Member

We need to ensure that make_v202111_runoff_file runs
after all the river discharge observations have been collected.
This PR implements a practical solution of launching make_runoff_file and make_v2021_runoff_file
after make_ssh_files.
We're forced into this solution because the race condition handling can't deal with ensuring that multiple
instances of the same worker (collect_river_data) have completed.

The relative path to the grid/ clone is different in Doug's test automation for
the full test suite compared to what it is for just the test_daily_river_flows
module. We're done with running the test for that module in isolation, so
change the relative path to the value for the full test suite automation because
it is how it will be used most often now.
This is the practical solution to ensuring that `make_v202111_runoff_file` runs
after all the river discharge obs have been collected. We're forced into
this because the race condition handling can't deal with ensuring that multiple
instances of the same worker (`collect_river_data`) have completed.

`make_runoff_file` and `make_v2021_runoff_file` are added to the
`download_weather` race condition set to ensure that runoff forcing has been
calculated before `upload_forcing` is launched after `grib_to_netcdf` in the
early morning (06Z weather), or after `make_live_ocean_files` before the nowcast
runs (12Z weather).
Having `make_ssh_files` (whose after function launches `make_runoff_file` and
`make_v202111_runoff_file`) with those 2 workers results in an irresolvable
condition for race condition management. The `make*_runoff_file` workers are now
the end of one of the potential race condition paths.
@codecov
Copy link

codecov bot commented Jun 3, 2023

Codecov Report

Merging #185 (2370597) into main (f33044b) will decrease coverage by 0.02%.
The diff coverage is 63.63%.

❗ Current head 2370597 differs from pull request most recent head 1ce88b7. Consider uploading reports for the commit 1ce88b7 to get more accurate results

@@            Coverage Diff             @@
##             main     #185      +/-   ##
==========================================
- Coverage   77.42%   77.41%   -0.02%     
==========================================
  Files         133      133              
  Lines       18491    18481      -10     
  Branches     1952     1953       +1     
==========================================
- Hits        14317    14307      -10     
  Misses       4119     4119              
  Partials       55       55              
Flag Coverage Δ
unittests 77.41% <63.63%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nowcast/daily_river_flows.py 82.18% <0.00%> (ø)
nowcast/workers/make_runoff_file.py 28.45% <0.00%> (ø)
nowcast/next_workers.py 98.00% <100.00%> (ø)
tests/test_next_workers.py 99.74% <100.00%> (-0.01%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@douglatornell douglatornell merged commit 3303469 into main Jun 5, 2023
@douglatornell douglatornell deleted the move-make_runoff_file branch June 5, 2023 16:33
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.

1 participant