Skip to content

Backup - #13989

Draft
SAKavli wants to merge 3 commits into
equinor:mainfrom
SAKavli:backup
Draft

Backup#13989
SAKavli wants to merge 3 commits into
equinor:mainfrom
SAKavli:backup

Conversation

@SAKavli

@SAKavli SAKavli commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Issue
Resolves #my_issue

Approach
Short description of the approach

(Screenshot of new behavior in GUI if applicable)

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Add backport label to latest release (format: 'backport release-branch-name')

SAKavli added 2 commits July 10, 2026 16:43
Replace the separate export_observations and convert_observations
commands with a single convert_observations command that uses a
--format flag to select the target format.

The converter functions now take a config path string directly
instead of an argparse Namespace, making them easier to call
programmatically and test in isolation.

Removes the ERT_FEATURE_GATHER_OBS feature gate and the async
API-based observation fetching code, which is superseded by
reading directly from ErtConfig in the next commit.
@codecov-commenter

codecov-commenter commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.45%. Comparing base (eea2fa3) to head (47c2229).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13989      +/-   ##
==========================================
+ Coverage   91.34%   91.45%   +0.10%     
==========================================
  Files         476      482       +6     
  Lines       34044    34114      +70     
==========================================
+ Hits        31099    31200     +101     
+ Misses       2945     2914      -31     
Flag Coverage Δ
cli-tests 35.52% <39.58%> (-0.43%) ⬇️
fuzz 43.69% <39.58%> (+0.18%) ⬆️
gui-tests 59.38% <39.58%> (+0.19%) ⬆️
performance-and-unit-tests 79.68% <100.00%> (+0.31%) ⬆️
test 46.15% <0.00%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/ert/__main__.py 88.30% <100.00%> (+0.71%) ⬆️
src/ert/observation_converters/__init__.py 100.00% <100.00%> (ø)
...ert/observation_converters/convert_observations.py 100.00% <100.00%> (ø)
...c/ert/observation_converters/history_to_summary.py 100.00% <100.00%> (ø)
...t/observation_converters/summary_to_bulk_config.py 98.07% <100.00%> (ø)

... and 42 files with indirect coverage changes

@codspeed-hq

codspeed-hq Bot commented Jul 10, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 36 untouched benchmarks


Comparing SAKavli:backup (47c2229) with main (e39daae)

Open in CodSpeed

BulkConfigConverter now accepts a list of observations and an
optional ShapeRegistry directly, removing the need to spin up a
storage API server to fetch data.

Localization is resolved via ShapeRegistry lookup on each
observation's shape_id, replacing the old dict-of-lists approach.

Rewrite unit tests to construct observation model objects directly.
Add a test verifying BPR observations populate i,j,k columns.
Remove the old UI test that depended on the storage API flow.
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.

2 participants