Skip to content

Conversation

hsoh-u
Copy link
Collaborator

@hsoh-u hsoh-u commented Jan 19, 2024

Expected Differences

pb2nc.cc and tmp_file_use.rst are for this issue.

The other files are for SonarQube findings (mostly code smells).

  • move down the namespace declaration after include statements

  • replace 0 to nullptr

  • removed unused variables

  • removed always true condition

  • Changed the same variable name at the lower scope (shadowed variable)

  • Do these changes introduce new tools, command line arguments, or configuration file options? [No]

    If yes, please describe:

  • Do these changes modify the structure of existing or add new output data types (e.g. statistic line types or NetCDF variables)? [No]

    If yes, please describe:

Pull Request Testing

  • Describe testing already performed for these changes:

Ran the unit tests and compared the output with nightly build
The temp files are deleted by MET. I checked the temporary files by modifying pb2nc.cc temporarily.

The feature branch build is available at /d1/personal/hsoh/git/pull_request/MET_feature_2697_pb2nc_temp_file.
The unit test output is available at /d1/personal/hsoh/git/pull_request/MET_feature_2697_pb2nc_temp_file/unit_test_output

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

N/A

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [No]

  • Do these changes include sufficient testing updates? [No]

  • Will this PR result in changes to the test suite? [No]

    If yes, describe the new output and/or changes to the existing output:

  • Please complete this pull request review by [Fill in date].

Pull Request Checklist

See the METplus Workflow for details.

  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    Select: Reviewer(s) and Development issue
    Select: Milestone as the version that will include these changes
    Select: Coordinated METplus-X.Y Support project for bugfix releases or MET-X.Y.Z Development project for official releases
  • After submitting the PR, select the ⚙️ icon in the Development section of the right hand sidebar. Search for the issue that this PR will close and select it, if it is not already selected.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

@hsoh-u hsoh-u added this to the MET 12.0.0 milestone Jan 19, 2024
@hsoh-u hsoh-u requested a review from jprestop January 19, 2024 16:29
@hsoh-u hsoh-u linked an issue Jan 19, 2024 that may be closed by this pull request
21 tasks
Copy link
Collaborator

@jprestop jprestop left a comment

Choose a reason for hiding this comment

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

I reviewed the files that were changed and ensured the tests passed. Thanks for taking the time to move "using namespace std;" in the files you touched. Thanks for all of your work on this task.

@hsoh-u hsoh-u merged commit edeb415 into develop Jan 19, 2024
@hsoh-u hsoh-u deleted the feature_2697_pb2nc_temp_file branch January 19, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🏁 Done
Development

Successfully merging this pull request may close these issues.

Revise the use of temporary files in PB2NC
2 participants