Skip to content

Commit 5f4ce23

Browse files
authored
Merge branch 'main' into prepare-contingency-historical-backfill
2 parents 271f702 + 9394955 commit 5f4ce23

37 files changed

+965
-415
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.2.10
2+
current_version = 0.2.17
33
commit = True
44
message = chore: bump covidcast-indicators to {new_version}
55
tag = False

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,33 @@ Each indicator pipeline includes its own documentation.
2626
* Consult REVIEW.md for the checklist to use for code reviews.
2727
* Consult DETAILS.md (if present) for implementation details, including handling of corner cases.
2828

29+
## Development
30+
31+
`prod` reflects what is currently in production. `main` is the staging branch for the next release.
32+
33+
1. Branch from `main` to develop a new change
34+
2. PR into `main` and assign a reviewer (or tag someone) to get feedback on your change. List the issue number under `Fixes` if your change resolves an existing [GitHub Issue](https://github.com/cmu-delphi/covidcast-indicators/issues).
35+
3. Add new commits to your branch in response to feedback.
36+
4. When approved, tag an admin to merge the PR. Let them know if this change should be released immediately, at a set future date, or if it can just go along for the ride whenever the next release happens.
37+
38+
## Release Process
39+
40+
The release process consists of multiple steps which can all be done via the GitHub website:
41+
42+
1. Go to [create_release GitHub Action](https://github.com/cmu-delphi/covidcast-indicators/actions/workflows/create-release.yml) and click the `Run workflow` dropdown button. Leave branch as `main` unless you know what you're doing. Enter the type of release (patch: bugfixes, params file changes, new signals for existing indicators; minor: new indicators, new utilities; major: backwards-incompatible changes requiring substantial refactoring) and GitHub will automatically compute the next version number for you; alternately, specify the version number by hand. Hit the green `Run workflow` button.
43+
2. The action will prepare a new release and generate an associated [Pull Request](https://github.com/cmu-delphi/covidcast-indicators/pulls).
44+
3. Edit the PR description and **list all pull requests included in this release**. This is a manual step to make sure you are aware of 100% of the changes that will be deployed. You can use `#xxx` notation and GitHub will automatically render the title of each PR in Preview mode and when the edit is saved.
45+
4. Verify that CI passes for the PR as a whole and for the most-recent/bottom-most commit in the PR. We're currently having problems where [python-ci does not run on release PRs](https://github.com/cmu-delphi/covidcast-indicators/issues/1310), but if you see a green check next to the most-recent commit you should be fine.
46+
5. Approve the PR, merge it, and delete the branch.
47+
6. Jenkins will automatically deploy the most-recently-built indicator packages to the pipeline servers
48+
7. Another GitHub action will automatically
49+
1. Create a git tag
50+
2. Create another [Pull Request](https://github.com/cmu-delphi/covidcast-indicators/pulls) to merge the changes back into the `main` branch
51+
3. (if `delphi-utils` was updated) Upload the new version of `delphi-utils` to PyPI
52+
8. Approve the sync PR, merge it, and delete the branch
53+
9. Done
54+
55+
You may need to be an admin to perform some of the steps above.
2956

3057
## License
3158

_delphi_utils_python/.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.2.6
2+
current_version = 0.2.7
33
commit = True
44
message = chore: bump delphi_utils to {new_version}
55
tag = False

_delphi_utils_python/delphi_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
from .nancodes import Nans
1616
from .weekday import Weekday
1717

18-
__version__ = "0.2.6"
18+
__version__ = "0.2.7"

_delphi_utils_python/delphi_utils/validator/dynamic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def pad_reference_api_df(self, reference_api_df, geo_sig_df, reference_end_date)
309309
Returns:
310310
- reference_api_df: Supplemented version of original
311311
"""
312-
reference_api_df_max_date = reference_api_df.time_value.max()
312+
reference_api_df_max_date = reference_api_df.time_value.max().date()
313313
if reference_api_df_max_date < reference_end_date:
314314
# Querying geo_sig_df, only taking relevant rows
315315
geo_sig_df_supplement = geo_sig_df.query(

_delphi_utils_python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="delphi_utils",
29-
version="0.2.6",
29+
version="0.2.7",
3030
description="Shared Utility Functions for Indicators",
3131
long_description=long_description,
3232
long_description_content_type="text/markdown",

ansible/templates/covid_act_now-params-prod.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"data_source": "covid-act-now",
2121
"span_length": 14,
2222
"min_expected_lag": {"all": "3"},
23-
"max_expected_lag": {"all": "6"},
23+
"max_expected_lag": {"all": "9"},
2424
"dry_run": true,
2525
"suppressed_errors": [
2626
{"check_name": "check_se_many_missing",

ansible/templates/facebook-params-prod.json.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"Survey of COVID-Like Illness - Wave 10": "fb-survey",
3838
"Survey of COVID-Like Illness - Wave 11": "fb-survey",
3939
"Survey of COVID-Like Illness - Wave 12": "fb-survey",
40+
"Survey of COVID-Like Illness - Wave 12 - Full Launch": "fb-survey",
4041
"Survey of COVID-Like Illness - Wave 4": "fb-survey",
4142
"Survey of COVID-Like Illness - Wave 5": "fb-survey",
4243
"Survey of COVID-Like Illness - Wave 6": "fb-survey",
@@ -55,5 +56,6 @@
5556
"start_date": "2021-08-16",
5657
"static_dir": "./static",
5758
"weights_in_dir": "./fb-incoming",
58-
"weights_out_dir": "./fb-outgoing"
59+
"weights_out_dir": "./fb-outgoing",
60+
"experimental_weights_out_dir": "./exp-fb-outgoing"
5961
}

0 commit comments

Comments
 (0)