Skip to content

Confusing indentation for bl_mynn_closure in README.namelist#2218

Closed
kkeene44 wants to merge 4 commits intowrf-model:release-v4.7.1from
kkeene44:readme_nl_mynn_closure
Closed

Confusing indentation for bl_mynn_closure in README.namelist#2218
kkeene44 wants to merge 4 commits intowrf-model:release-v4.7.1from
kkeene44:readme_nl_mynn_closure

Conversation

@kkeene44
Copy link
Collaborator

@kkeene44 kkeene44 commented May 1, 2025

TYPE: text only

KEYWORDS: README.namelist, bl_mynn_closure, bl_pbl_physics, indent

SOURCE: internal

DESCRIPTION OF CHANGES:
Problem:
In README.namelist, the options for bl_mynn_closure were indented in a way that made it seem they were part of the above bl_pbl_physics options and descriptions.

Solution:
Corrected the indentation so that bl_mynn_closure is now its own entry.

LIST OF MODIFIED FILES:
M run/README.namelist

TESTS CONDUCTED:

  1. No tests needed - text only
  2. Are the Jenkins tests all passing?

saneku and others added 4 commits April 1, 2025 15:17
wrf-model#2185)

TYPE: bug fix

KEYWORDS: WRF-Chem, dry air density

SOURCE: NOAA GSL, Alexander Ukhov (KAUST)

DESCRIPTION OF CHANGES:
Problem:
It was found that dry air density was miscalculated.

Solution:
Removed unnecessary factor. Simulations before and after did not show any significant difference, as expected.

LIST OF MODIFIED FILES:
M chem/module_chem_utilities.F

TESTS CONDUCTED: 
The Jenkins tests are all passing.

RELEASE NOTE: Fixed calculation of dry air density in module_chem_utilities.F. The bug had a very minor effect.
…-model#2143)

TYPE: enhancement

KEYWORDS: testing, devops, github, workflow

SOURCE: internal

DESCRIPTION OF CHANGES:
Problem:
The CI/CD testing framework using github actions is set to trigger on PR
label events. However, labels are not just used for testing and will
trigger the workflow. While the workflow does have checks in place to
skip any labels that aren't meant to trigger testing, this skipped
workflow status will override any previous actual test status. This can
be confusing if two labels are applied at the same time, one being a
test label, and only one status appears showing a skipped workflow.
Unique naming of workflow runs does not mitigate this problem as the
posted status is tied to the workflow internal id and not the run name.

Solution:
Convert the main workflow that hosts the test sets into a dispatch
workflow, meaning it must manually be triggered. This has the intended
effect of decoupling the workflow id from any PR and will not normally
show up as a status at the bottom of PRs solving the issue of
independent labels overriding each other. To solve the workflow no
longer appearing within PR statuses, the github REST API is used to
create a commit status pointing to its respective workflow run via
`target_url` along with the current state of the job.

As the main workflow must manually be triggered, a new entry point proxy
workflow is used to filter test labels and request a test run if needed.
This paradigm allows events to be triggered within a PR context,
simplifying gathering the data necessary to run the correct PR branch.
Furthermore, the entry point will still suffer the initial problem of
status override on multiple labels, but this should be acceptable as
actual test labels will create their own commit statuses once queued.

The dispatch workflow is unable to be run within the context of PR merge
refs, nor the head of the branch from a fork (as that would run the
workflow in _that_ fork). Thus, the dispatch workflow is run using the
base ref of the PR if from a fork, or the head ref *ONLY IF* originating
from the parent repo of the workflow. This means testing of the
immediate changes to the workflow can only be observed within the PR of
an internal repo branch, limiting development slightly. The benefits,
however, are a cleaned up status reporting AND increased security as no
runner code that isn't already within a branch of the repository will be
executed. One should still ensure the underlying tests are okay to run

TESTS CONDUCTED: 
1. Testing was done in independent fork to demonstrate initial issue and
feasibility of this solution.
@kkeene44 kkeene44 requested a review from dudhia May 1, 2025 16:06
@kkeene44 kkeene44 requested a review from a team as a code owner May 1, 2025 16:06
@joeolson42
Copy link
Contributor

Thank you, Kelly!

@islas islas changed the base branch from develop to release-v4.7.1 May 5, 2025 21:13
@islas islas requested review from a team as code owners May 5, 2025 21:13
@islas islas changed the base branch from release-v4.7.1 to develop May 5, 2025 21:14
@islas
Copy link
Collaborator

islas commented May 5, 2025

@kkeene44 I tried to change this to go into v4.7.1 but it looks like there are a few things it would pull in from develop. I'll leave it up to you if you want to shift this into the bug fix branch

Copy link
Collaborator

@dudhia dudhia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole section should be moved after all the PBL options with the other bl_mynn options.

weiwangncar
weiwangncar previously approved these changes May 29, 2025
bl_mynn_closure = 2.5: level 2.5
2.6: level 2.6
3.0: level 3.0
= 7, ACM2 (Pleim) PBL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkeene44 Can we move these three lines to after tke_budget where other bl_mynn_* options are listed?

@weiwangncar weiwangncar changed the base branch from develop to release-v4.7.1 May 30, 2025 18:27
@weiwangncar weiwangncar dismissed their stale review May 30, 2025 18:27

The base branch was changed.

@weiwangncar
Copy link
Collaborator

This PR is replaced by PR-2230 and closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants