Skip to content

Add missing factory test for WGTFACQ_C in test_metrics_factory.py#1181

Open
Copilot wants to merge 3 commits intomainfrom
copilot/remove-duplication-test-files
Open

Add missing factory test for WGTFACQ_C in test_metrics_factory.py#1181
Copilot wants to merge 3 commits intomainfrom
copilot/remove-duplication-test-files

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

test_compute_weight_factors.py tested weight factor computations directly, with most already having factory equivalents in test_metrics_factory.py. The unit tests are kept as-is since they follow the same pattern used elsewhere and only integration (factory) tests run in CI.

  • Added test_factory_wgtfacq_c to test_metrics_factory.py — the only weight factor computation that lacked a factory-level test
  • Kept test_compute_weight_factors.py unchanged — unit tests remain alongside factory tests per project convention

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

@jenkins-apn
Copy link
Copy Markdown

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

1 similar comment
@jenkins-apn
Copy link
Copy Markdown

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

…trics_factory.py

- Add test_factory_wgtfacq_c to test_metrics_factory.py for WGTFACQ_C coverage
- Remove test_compute_weight_factors.py (all tests now covered by factory tests)

Agent-Logs-Url: https://github.com/C2SM/icon4py/sessions/c16da518-be23-48a9-ac02-71b17d5f861d

Co-authored-by: jcanton <5622559+jcanton@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove duplication between test_compute_weight_factors and test_metrics_factory Remove duplication between test_compute_weight_factors.py and test_metrics_factory.py Mar 30, 2026
Copilot AI requested a review from jcanton March 30, 2026 10:25
Keep unit tests alongside factory tests as per project convention.
The new test_factory_wgtfacq_c in test_metrics_factory.py is retained.

Agent-Logs-Url: https://github.com/C2SM/icon4py/sessions/55dca839-2064-48c4-a45b-0b98091f5cad

Co-authored-by: msimberg <42977+msimberg@users.noreply.github.com>
Copilot AI changed the title Remove duplication between test_compute_weight_factors.py and test_metrics_factory.py Add missing factory test for WGTFACQ_C in test_metrics_factory.py Apr 14, 2026
Copilot AI requested a review from msimberg April 14, 2026 15:07
@github-actions
Copy link
Copy Markdown

Mandatory Tests

Please make sure you run these tests via comment before you merge!

  • cscs-ci run default
  • cscs-ci run distributed

Optional Tests

To run benchmarks you can use:

  • cscs-ci run benchmark-bencher

To run tests and benchmarks with the DaCe backend you can use:

  • cscs-ci run dace

To run test levels ignored by the default test suite (mostly simple datatest for static fields computations) you can use:

  • cscs-ci run extra

For more detailed information please look at CI in the EXCLAIM universe.

Copy link
Copy Markdown
Contributor

@msimberg msimberg left a comment

Choose a reason for hiding this comment

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

To me this looks ok. @jcanton can you check if you had other plans for this?

@msimberg
Copy link
Copy Markdown
Contributor

cscs-ci run default

@msimberg
Copy link
Copy Markdown
Contributor

cscs-ci run distributed

@msimberg msimberg marked this pull request as ready for review April 15, 2026 08:14
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.

Remove duplication between test_compute_weight_factors.py and test_metrics_factory.py

4 participants