-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update main_v5.1-ref after dtcenter/MET#2960 (#2683)
* added new use case that was missing * Bugfix #2279 main_v5.1 - buoy station file from 2022 (#2281) * Fix typo in pull_request_template.md * added notes to make it clear that upgrade instructions are not needed if upgrading from 5.0 to 5.1 * New issue template: Update Truth (#2332) Co-authored-by: John Halley Gotway <[email protected]> (cherry picked from commit 44335f3) * add GitHub Actions workflow that is used to create Docker images that hold the conda environment used for the automated tests -- adding this to the default main_v5.1 branch so that it will become available to run for other branches as a workflow_dispatch workflow * add argument to workflow dispatch event so that MET DockerHub repo used for tests can be easily overridden to test changes in a MET PR before merging * Feature dtcenter/MET#2796 main_v5.1 GHA Node20 deprecation warnings (#2474) * per dtcenter/MET#2796, update versions of actions to prevent deprecated node warnings in GHA runs - main_v5.1 * fix ReadTheDocs requirements to include pillow which is a dependency of sphinx-gallery: see https://blog.readthedocs.com/defaulting-latest-build-tools/ for more info on why this was necessary * install python packages via apk instead of pip to prevent GHA failures that were fixed in develop but not in main_v5.1 * per dtcenter/MET#2796, fix error log merging for main_v5.1 same as develop * Bump pillow from 10.0.1 to 10.2.0 in /docs (#2477) Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.0.1 to 10.2.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@10.0.1...10.2.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Create 5.1.0_casper * Update update_truth.md Fix typo in the update_truth issue template. * Update update_truth.md Clarify wording on the update_truth issue template. * Feature #2537 main_v5.1 sonarqube_gha (#2542) * Per #2537, add SonarQube workflow for METplus * Per #2537, update nightly build email list. * Per #2537, fix cut/paste error configure_sonarqube.sh * Per #2537, exclude test code from code coverage statistics. * update link to METplus Components Python Requirements table in PR template * update pillow version based on recommendation from dependabot: https://github.com/dtcenter/METplus/security/dependabot/5 * Fix main_v5.1 GHA - disk space and METviewer version (#2561) * added more commands to free up disk space as suggested in https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh, ci-run-all-cases * update location of METviewer docker-compose.yml file that moved from PR dtcenter/METviewer#525 * turn on use cases to test * use main_v5.1 tag of METviewer on DockerHub * turn off use case groups after confirming that they now run successfully * Feature #2537 main_v5.1 single_sq_project (#2559) * Feature 2346 main v5.1 update templates (#2588) * Per #2346, modifying issue templates * Per #2346, modifying the pull request template * Per #2346, modifying entries based on suggestions by @georgemccabe * Feature 2346 main v5.1 update templates (#2595) * Per #2346, modifying issue templates * Per #2346, modifying the pull request template * Per #2346, modifying entries based on suggestions by @georgemccabe * Per 2346, making updates based on feedback at last MET Eng. Meeting * fix broken link * Bump certifi from 2023.7.22 to 2024.7.4 (#2632) Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.7.22 to 2024.7.4. - [Commits](certifi/python-certifi@2023.07.22...2024.07.04) --- updated-dependencies: - dependency-name: certifi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * main_v5.1 - Enhance update truth data workflow to create a uniquely named branch... (#2678) * Enhance update truth data workflow to create a uniquely named branch to update *-ref branches and commit/append to a log file that tracks the reasons for updating the truth data. This is done to ensure that the *-ref branch testing workflow run that actually updates the truth data is always run even if there are no other changes to the METplus branch since the last update, e.g. when a change to another component like MET warrants the truth data update * git add change log file in case it doesn't already exist * changed logic to no longer push changes to develop/main_vX.Y, but instead merge changes from -ref into the update branch * retain update truth history file from *-ref * prevent failure when changelog does not exist in -ref branch * added entry to update truth change log: main_v5.1 dtcenter/MET#2960 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: George McCabe <[email protected]> Co-authored-by: John Halley Gotway <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julie Prestopnik <[email protected]> Co-authored-by: metplus-bot <[email protected]>
- Loading branch information
1 parent
38aa827
commit 5efcdc2
Showing
31 changed files
with
879 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: Update Truth | ||
about: Review use case differences that are caused by changes in an external repository and update truth dataset if necessary. | ||
title: 'Update Truth: ' | ||
labels: 'alert: NEED ACCOUNT KEY, alert: NEED MORE DEFINITION, alert: NEED CYCLE ASSIGNMENT, type: update truth, priority: blocker, component: CI/CD, requestor: METplus Team' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Describe Expected Changes ## | ||
|
||
*Write a short summary of the differences that will likely be found in the GitHub Actions testing workflow that was triggered by the pull request that warranted this issue* | ||
|
||
- [ ] Link to relevant issue(s): | ||
- [ ] Link to relevant pull request(s): | ||
|
||
## Define the Metadata ## | ||
|
||
### Title ### | ||
- [ ] Define the **Title** of this issue as **Update Truth: For dtcenter/{REPO}#{PR_NUMBER}** to indicate the repository and pull request that warranted this issue. | ||
|
||
### Assignee ### | ||
|
||
*Assign this issue to the author of the pull request that warranted this issue. Optionally assign anyone else who should review the differences in the output.* | ||
|
||
- [ ] Select **engineer(s)** or **no engineer** required | ||
- [ ] Select **scientist(s)** or **no scientist** required | ||
|
||
### Milestone and Projects ### | ||
- [ ] Select **Milestone** as the next official version if updating truth data for the `develop` branch **OR** select next **METplus-Wrappers-X.Y.Z bugfix** version if updating truth data for a `main_vX.Y` branch. | ||
- [ ] If updating truth data for the `develop` branch, select the **METplus-Wrappers-X.Y.Z Development** project **OR** if updating truth for a `main_vX.Y` branch, select the **Coordinated METplus-X.Y Support** project | ||
|
||
|
||
## Update Truth Checklist ### | ||
- [ ] Review the GitHub Actions workflow that was triggered by the PR merge | ||
- If no differences were found, note this in a comment. | ||
- If all of the differences are expected, note this in a comment. | ||
Include any details of how the review was performed. | ||
- If unexpected differences are found, the following instructions can | ||
help uncover potential explanations. If none of these apply and the | ||
source of the differences cannot be determined, contact the | ||
METplus wrappers lead engineer (@georgemccabe) for assistance. | ||
- Search for other open issues that have the label `type: update truth` | ||
applied by clicking on the label on this issue. Coordinate with the | ||
author of these issues to ensure all diffs are properly reviewed. | ||
- Check if any additional GitHub Actions testing workflows have been | ||
triggered since the workflow that corresponds to this issue was run. | ||
Review the latest run to ensure that there are no diffs that are | ||
unrelated to this issue. | ||
- If the incorrect differences are caused by the changes from the | ||
issue that warranted this issue, consider reverting the PR and | ||
re-opening the issue. | ||
- Iterate until one of the above conditions apply. | ||
- [ ] Approve the update of the truth data | ||
- Contact the METplus wrappers lead engineer (@georgemccabe) or | ||
backup lead (@jprestop) to let them know that the truth data can | ||
be updated. | ||
- [ ] Update the truth data. | ||
This should be handled by a METplus wrappers engineer. | ||
See the [instructions to update the truth data](https://metplus.readthedocs.io/en/develop/Contributors_Guide/continuous_integration.html#update-truth-data-update-truth-yml) | ||
for more info. | ||
- [ ] Close this issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
DOCKER_ENV_DIR=${GITHUB_WORKSPACE}/internal/scripts/docker_env | ||
cmd="docker build \ | ||
-t dtcenter/metplus-envs:${ENV_NAME}.${METPLUS_ENV_VERSION} \ | ||
--build-arg METPLUS_ENV_VERSION \ | ||
--build-arg BASE_ENV \ | ||
--build-arg ENV_NAME \ | ||
-f ${DOCKER_ENV_DIR}/${DOCKERFILE} ${DOCKER_ENV_DIR}" | ||
echo $cmd | ||
$cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/bash | ||
|
||
# Constants | ||
SONAR_PROPERTIES_DIR=internal/scripts/sonarqube | ||
SONAR_PROPERTIES=sonar-project.properties | ||
|
||
# Check that this is being run from the top-level METplus directory | ||
if [ ! -e $SONAR_PROPERTIES_DIR/$SONAR_PROPERTIES ]; then | ||
echo "ERROR: ${0} -> must be run from the top-level METplus directory" | ||
exit 1 | ||
fi | ||
|
||
# Check required environment variables | ||
if [ -z ${SOURCE_BRANCH+x} ]; then | ||
echo "ERROR: ${0} -> \$SOURCE_BRANCH not defined!" | ||
exit 1 | ||
fi | ||
if [ -z ${WD_REFERENCE_BRANCH+x} ]; then | ||
echo "ERROR: ${0} -> \$WD_REFERENCE_BRANCH not defined!" | ||
exit 1 | ||
fi | ||
if [ -z ${SONAR_HOST_URL+x} ]; then | ||
echo "ERROR: ${0} -> \$SONAR_HOST_URL not defined!" | ||
exit 1 | ||
fi | ||
if [ -z ${SONAR_TOKEN+x} ]; then | ||
echo "ERROR: ${0} -> \$SONAR_TOKEN not defined!" | ||
exit 1 | ||
fi | ||
|
||
# Define the version string | ||
SONAR_PROJECT_VERSION=$(cat metplus/VERSION) | ||
|
||
# | ||
# Define the $SONAR_REFERENCE_BRANCH as the | ||
# - Target of any requests | ||
# - Manual setting for workflow dispatch | ||
# - Source branch for any pushes (e.g. develop) | ||
# | ||
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then | ||
export SONAR_REFERENCE_BRANCH=$GITHUB_BASE_REF | ||
elif [ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]; then | ||
export SONAR_REFERENCE_BRANCH=$WD_REFERENCE_BRANCH | ||
else | ||
export SONAR_REFERENCE_BRANCH=$SOURCE_BRANCH | ||
fi | ||
|
||
# Configure the sonar-project.properties | ||
[ -e $SONAR_PROPERTIES ] && rm $SONAR_PROPERTIES | ||
sed -e "s|SONAR_PROJECT_VERSION|$SONAR_PROJECT_VERSION|" \ | ||
-e "s|SONAR_HOST_URL|$SONAR_HOST_URL|" \ | ||
-e "s|SONAR_TOKEN|$SONAR_TOKEN|" \ | ||
-e "s|SONAR_BRANCH_NAME|$SOURCE_BRANCH|" \ | ||
$SONAR_PROPERTIES_DIR/$SONAR_PROPERTIES > $SONAR_PROPERTIES | ||
|
||
# Define new code when the source and reference branches differ | ||
if [ "$SOURCE_BRANCH" != "$SONAR_REFERENCE_BRANCH" ]; then | ||
echo "sonar.newCode.referenceBranch=${SONAR_REFERENCE_BRANCH}" >> $SONAR_PROPERTIES | ||
fi | ||
|
||
echo "Contents of the $SONAR_PROPERTIES file:" | ||
cat $SONAR_PROPERTIES | ||
|
Oops, something went wrong.