Skip to content

Release 7.3.0 #303

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

Merged
merged 21 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8f24a93
bump actions/checkout version to use new node
nmdefries Jun 30, 2023
6358f44
bump pipeline aws config and login actions version to use new node
nmdefries Jun 30, 2023
06b6ff4
bump CI login action version to use new node
nmdefries Jun 30, 2023
cc8a27d
bump create_release PR action version
nmdefries Jun 30, 2023
463e373
put tag, repo, and version vars into env files for ci.yaml
nmdefries Jul 3, 2023
39ea25d
put tag var into env file for create_release.yaml
nmdefries Jul 3, 2023
37e6911
put version var into env file for release_main.yaml
nmdefries Jul 3, 2023
af5a97f
drop forecasters that don't exist
nmdefries Jul 10, 2023
6b9a20f
drop forecasters that don't qualify for inclusion
nmdefries Jul 10, 2023
ae8d904
styler
nmdefries Jul 10, 2023
60fd30d
pass GITHUB_PAT from workflow to docker
nmdefries Jul 11, 2023
68a4571
Merge pull request #296 from cmu-delphi/ndefries/drop-unused-forecasters
nmdefries Jul 11, 2023
7c13d7c
Merge pull request #297 from cmu-delphi/ndefries/authenticate-pipeline
nmdefries Jul 11, 2023
7ed8881
Merge pull request #295 from cmu-delphi/ndefries/workflow-warnings
nmdefries Jul 11, 2023
d205b09
bump setup-python action version to use new node
nmdefries Jul 12, 2023
f0d3cc4
Merge pull request #299 from cmu-delphi/ndefries/bump-python-action-v…
nmdefries Jul 12, 2023
9ac6d15
bump setup-python action version to use new node in release process
nmdefries Jul 12, 2023
80551e0
Merge pull request #301 from cmu-delphi/ndefries/bump-python-action-v…
nmdefries Jul 12, 2023
32820fa
add v back to python action version tag
nmdefries Jul 13, 2023
b540022
Merge pull request #302 from cmu-delphi/ndefries/add-v-python-action-…
nmdefries Jul 13, 2023
882f63f
chore: release 7.3.0
nmdefries Jul 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 7.2.0
current_version = 7.3.0
commit = False
tag = False

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
Expand All @@ -26,11 +26,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Pull Image Data
run: make pull_data
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: cmu-delphi-deploy-machine
Expand All @@ -48,24 +48,24 @@ jobs:
if [ "$imageTag" = "main" ] ; then
imageTag="latest"
fi
echo "::set-output name=tag::$imageTag"
echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
echo "tag=$imageTag" >> "$GITHUB_OUTPUT"
echo "repo=ghcr.io/${{ github.repository }}" >> "$GITHUB_OUTPUT"
- name: Push Dev Tag
run: |
docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
docker push ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
- name: Set up Python 3.8
if: startsWith(github.ref, 'refs/heads/main')
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Extract version
if: startsWith(github.ref, 'refs/heads/main')
id: extract_version
run: |
python -m pip install bump2version
echo -n "::set-output name=version::"
bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,
currentVersion=`bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,`
echo "version=$currentVersion" >> "$GITHUB_OUTPUT"
- name: Trigger Webhook
run: |
# trigger a webhook update
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
git fetch origin dev:dev
git reset --hard dev
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Change version number
id: version
run: |
python -m pip install bump2version
echo -n "::set-output name=next_tag::"
bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",,
newVersion=`bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",,`
echo "next_tag=$newVersion" >> "$GITHUB_OUTPUT"
- name: Create pull request into main
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
with:
branch: release/${{ steps.version.outputs.next_tag }}
commit-message: "chore: release ${{ steps.version.outputs.next_tag }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Extract version
id: extract_version
run: |
python -m pip install bump2version
echo -n "::set-output name=version::"
bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,
currentVersion=`bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,`
echo "version=$currentVersion" >> "$GITHUB_OUTPUT"
- name: Create Release
id: create_release
uses: release-drafter/release-drafter@v5
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/s3_upload_ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,28 @@ jobs:
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE

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

- name: Test AWS cli installation
run: aws --version

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ${{ env.AWS_REGION_NAME }}

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

- name: Deploy score files to S3 bucket
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
make deploy

Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: forecasteval
Title: Forecast Evaluation Dashboard
Version: 7.2.0
Version: 7.3.0
Authors@R: c(person("Kate", "Harwood", role = "aut"),
person("Chris", "Scott", role = "ctb"),
person("Jed", "Grabman", role = "ctb"),
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ PWD=$(shell pwd)
.DEFAULT_GOAL:=build
S3_URL=https://forecast-eval.s3.us-east-2.amazonaws.com
S3_BUCKET=s3://forecast-eval
# If not already set in calling environment, set PAT to an empty value.
GITHUB_PAT?=

# Change `imageTag` during `make` call via `make <command> imageTag=<tag name>`
#
Expand Down Expand Up @@ -46,6 +48,7 @@ score_forecast: r_build dist pull_data
-v ${PWD}/Report:/var/forecast-eval \
-v ${PWD}/dist:/var/dist \
-w /var/forecast-eval \
-e GITHUB_PAT \
forecast-eval-build \
Rscript create_reports.R --dir /var/dist

Expand Down
33 changes: 20 additions & 13 deletions Report/create_reports.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,29 @@ prediction_cards_filepath <- case_when(

options(warn = 1)

# Requested forecasters that do not get included in final scores:
# Auquan-SEIR: Only predicts cumulative deaths
# CDDEP-ABM: No longer on Forecast Hub. Causes some warnings when trying to download.
# CDDEP-SEIR_MCMC: County-level predictions only
# CUBoulder-COVIDLSTM: County-level predictions only
# FAIR-NRAR: County-level predictions only
# HKUST-DNN: Only predicts cumulative deaths
# ISUandPKU-vSEIdR: Folder but no forecasts on Forecast Hub
# PandemicCentral-COVIDForest: County-level predictions only
# UT_GISAG-SPDM: County-level predictions only
# WalmartLabsML-LogForecasting: Only predicts cumulative deaths
# Yu_Group-CLEP: County-level predictions only
forecasters <- unique(c(
get_covidhub_forecaster_names(designations = c("primary", "secondary")),
"COVIDhub-baseline", "COVIDhub-trained_ensemble", "COVIDhub-4_week_ensemble"
))
)) %>%
# Drop invalid forecasters
setdiff(c(
# Forecasters that have no data on Forecast Hub
"CDDEP-ABM", # No longer on Forecast Hub. Causes some warnings when trying to download.
"ISUandPKU-vSEIdR", # Folder but no forecasts on Forecast Hub

# Forecasters that don't qualify for inclusion in the dashboard (wrong geo
# level, wrong target variable)
"Auquan-SEIR", # Only predicts cumulative deaths
"CDDEP-SEIR_MCMC", # County-level predictions only
"CUBoulder-COVIDLSTM", # County-level predictions only
"FAIR-NRAR", # County-level predictions only
"HKUST-DNN", # Only predicts cumulative deaths
"PandemicCentral-COVIDForest", # County-level predictions only
"UT_GISAG-SPDM", # County-level predictions only
"WalmartLabsML-LogForecasting", # Only predicts cumulative deaths
"Yu_Group-CLEP" # County-level predictions only
))

locations <- covidHubUtils::hub_locations

# also includes "us", which is national level data
Expand Down
2 changes: 1 addition & 1 deletion app/global.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ library(tsibble)
library(covidcast)
library(data.table)

appVersion <- "7.2.0"
appVersion <- "7.3.0"

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