Skip to content

Commit c092e2c

Browse files
authored
Merge pull request #303 from cmu-delphi/release/7.3.0
Release 7.3.0
2 parents 92e8513 + 882f63f commit c092e2c

File tree

9 files changed

+46
-34
lines changed

9 files changed

+46
-34
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 = 7.2.0
2+
current_version = 7.3.0
33
commit = False
44
tag = False
55

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-20.04
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- uses: r-lib/actions/setup-r@v2
1111
with:
1212
use-public-rspm: true
@@ -26,11 +26,11 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Check out code
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3030
- name: Pull Image Data
3131
run: make pull_data
3232
- name: Login to GitHub Container Registry
33-
uses: docker/login-action@v1
33+
uses: docker/login-action@v2
3434
with:
3535
registry: ghcr.io
3636
username: cmu-delphi-deploy-machine
@@ -48,24 +48,24 @@ jobs:
4848
if [ "$imageTag" = "main" ] ; then
4949
imageTag="latest"
5050
fi
51-
echo "::set-output name=tag::$imageTag"
52-
echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
51+
echo "tag=$imageTag" >> "$GITHUB_OUTPUT"
52+
echo "repo=ghcr.io/${{ github.repository }}" >> "$GITHUB_OUTPUT"
5353
- name: Push Dev Tag
5454
run: |
5555
docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
5656
docker push ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
5757
- name: Set up Python 3.8
5858
if: startsWith(github.ref, 'refs/heads/main')
59-
uses: actions/setup-python@v2
59+
uses: actions/setup-python@v4
6060
with:
6161
python-version: 3.8
6262
- name: Extract version
6363
if: startsWith(github.ref, 'refs/heads/main')
6464
id: extract_version
6565
run: |
6666
python -m pip install bump2version
67-
echo -n "::set-output name=version::"
68-
bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,
67+
currentVersion=`bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,`
68+
echo "version=$currentVersion" >> "$GITHUB_OUTPUT"
6969
- name: Trigger Webhook
7070
run: |
7171
# trigger a webhook update

.github/workflows/create_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
git fetch origin dev:dev
2121
git reset --hard dev
2222
- name: Set up Python 3.8
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: 3.8
2626
- name: Change version number
2727
id: version
2828
run: |
2929
python -m pip install bump2version
30-
echo -n "::set-output name=next_tag::"
31-
bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",,
30+
newVersion=`bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",,`
31+
echo "next_tag=$newVersion" >> "$GITHUB_OUTPUT"
3232
- name: Create pull request into main
33-
uses: peter-evans/create-pull-request@v3
33+
uses: peter-evans/create-pull-request@v4
3434
with:
3535
branch: release/${{ steps.version.outputs.next_tag }}
3636
commit-message: "chore: release ${{ steps.version.outputs.next_tag }}"

.github/workflows/release_main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
- name: Check out code
2323
uses: actions/checkout@v3
2424
- name: Set up Python 3.8
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v4
2626
with:
2727
python-version: 3.8
2828
- name: Extract version
2929
id: extract_version
3030
run: |
3131
python -m pip install bump2version
32-
echo -n "::set-output name=version::"
33-
bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,
32+
currentVersion=`bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,`
33+
echo "version=$currentVersion" >> "$GITHUB_OUTPUT"
3434
- name: Create Release
3535
id: create_release
3636
uses: release-drafter/release-drafter@v5

.github/workflows/s3_upload_ec2.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,28 @@ jobs:
2525
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
2626

2727
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2929

3030
- name: Test AWS cli installation
3131
run: aws --version
3232

3333
- name: Configure AWS credentials
34-
uses: aws-actions/configure-aws-credentials@v1
34+
uses: aws-actions/configure-aws-credentials@v2
3535
with:
3636
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
3737
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
3838
aws-region: ${{ env.AWS_REGION_NAME }}
3939

4040
- name: Login to GitHub Container Registry
41-
uses: docker/login-action@v1
41+
uses: docker/login-action@v2
4242
with:
4343
registry: ghcr.io
4444
username: cmu-delphi-deploy-machine
4545
password: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_PAT }}
4646

4747
- name: Deploy score files to S3 bucket
48+
env:
49+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4850
run: |
4951
make deploy
5052

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: forecasteval
22
Title: Forecast Evaluation Dashboard
3-
Version: 7.2.0
3+
Version: 7.3.0
44
Authors@R: c(person("Kate", "Harwood", role = "aut"),
55
person("Chris", "Scott", role = "ctb"),
66
person("Jed", "Grabman", role = "ctb"),

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ PWD=$(shell pwd)
44
.DEFAULT_GOAL:=build
55
S3_URL=https://forecast-eval.s3.us-east-2.amazonaws.com
66
S3_BUCKET=s3://forecast-eval
7+
# If not already set in calling environment, set PAT to an empty value.
8+
GITHUB_PAT?=
79

810
# Change `imageTag` during `make` call via `make <command> imageTag=<tag name>`
911
#
@@ -46,6 +48,7 @@ score_forecast: r_build dist pull_data
4648
-v ${PWD}/Report:/var/forecast-eval \
4749
-v ${PWD}/dist:/var/dist \
4850
-w /var/forecast-eval \
51+
-e GITHUB_PAT \
4952
forecast-eval-build \
5053
Rscript create_reports.R --dir /var/dist
5154

Report/create_reports.R

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,29 @@ prediction_cards_filepath <- case_when(
3030

3131
options(warn = 1)
3232

33-
# Requested forecasters that do not get included in final scores:
34-
# Auquan-SEIR: Only predicts cumulative deaths
35-
# CDDEP-ABM: No longer on Forecast Hub. Causes some warnings when trying to download.
36-
# CDDEP-SEIR_MCMC: County-level predictions only
37-
# CUBoulder-COVIDLSTM: County-level predictions only
38-
# FAIR-NRAR: County-level predictions only
39-
# HKUST-DNN: Only predicts cumulative deaths
40-
# ISUandPKU-vSEIdR: Folder but no forecasts on Forecast Hub
41-
# PandemicCentral-COVIDForest: County-level predictions only
42-
# UT_GISAG-SPDM: County-level predictions only
43-
# WalmartLabsML-LogForecasting: Only predicts cumulative deaths
44-
# Yu_Group-CLEP: County-level predictions only
4533
forecasters <- unique(c(
4634
get_covidhub_forecaster_names(designations = c("primary", "secondary")),
4735
"COVIDhub-baseline", "COVIDhub-trained_ensemble", "COVIDhub-4_week_ensemble"
48-
))
36+
)) %>%
37+
# Drop invalid forecasters
38+
setdiff(c(
39+
# Forecasters that have no data on Forecast Hub
40+
"CDDEP-ABM", # No longer on Forecast Hub. Causes some warnings when trying to download.
41+
"ISUandPKU-vSEIdR", # Folder but no forecasts on Forecast Hub
42+
43+
# Forecasters that don't qualify for inclusion in the dashboard (wrong geo
44+
# level, wrong target variable)
45+
"Auquan-SEIR", # Only predicts cumulative deaths
46+
"CDDEP-SEIR_MCMC", # County-level predictions only
47+
"CUBoulder-COVIDLSTM", # County-level predictions only
48+
"FAIR-NRAR", # County-level predictions only
49+
"HKUST-DNN", # Only predicts cumulative deaths
50+
"PandemicCentral-COVIDForest", # County-level predictions only
51+
"UT_GISAG-SPDM", # County-level predictions only
52+
"WalmartLabsML-LogForecasting", # Only predicts cumulative deaths
53+
"Yu_Group-CLEP" # County-level predictions only
54+
))
55+
4956
locations <- covidHubUtils::hub_locations
5057

5158
# also includes "us", which is national level data

app/global.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ library(tsibble)
1010
library(covidcast)
1111
library(data.table)
1212

13-
appVersion <- "7.2.0"
13+
appVersion <- "7.3.0"
1414

1515
COVERAGE_INTERVALS <- c("10", "20", "30", "40", "50", "60", "70", "80", "90", "95", "98")
1616
CASES_DEATHS_TARGET_DAY <- "Saturday"

0 commit comments

Comments
 (0)