Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ambiguous find_unsmry() #9300

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Fix ambiguous find_unsmry() #9300

merged 2 commits into from
Nov 22, 2024

Conversation

berland
Copy link
Contributor

@berland berland commented Nov 21, 2024

Issue
Resolves #9277

Approach
Solve old bug that old code tucked under the carpet.

To reproduce this problem you need to run Eclipse with more than 1 CPU and also leave a similar looking UNSMRY-file to the runpath.

  • 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 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

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: Create Backport PR to latest release

@berland berland self-assigned this Nov 21, 2024
@berland berland added the release-notes:bug-fix Automatically categorise as bug fix in release notes label Nov 21, 2024
Copy link
Contributor

@eivindjahren eivindjahren left a comment

Choose a reason for hiding this comment

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

🪚

Copy link
Contributor

@eivindjahren eivindjahren left a comment

Choose a reason for hiding this comment

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

Seems like the new test is flaky:

FAILED tests/ert/unit_tests/resources/test_ecl_run_new_config.py::test_find_unsmry[paths_to_touch11-SPE1-ValueError] - Failed: DID NOT RAISE <class 'ValueError'>

https://github.com/equinor/ert/actions/runs/11955842976/job/33364180931?pr=9300

@berland
Copy link
Contributor Author

berland commented Nov 22, 2024

Seems like the new test is flaky:

FAILED tests/ert/unit_tests/resources/test_ecl_run_new_config.py::test_find_unsmry[paths_to_touch11-SPE1-ValueError] - Failed: DID NOT RAISE <class 'ValueError'>

https://github.com/equinor/ert/actions/runs/11955842976/job/33364180931?pr=9300

Oh no, case insensitive filesystem on Mac.

This solves a bug where find_unsmry() would not be able to locate
the correct summary file even if it has the correct base for the
Eclipse deck
@berland berland enabled auto-merge (rebase) November 22, 2024 07:52
@berland berland requested a review from eivindjahren November 22, 2024 08:13
Copy link
Contributor

@eivindjahren eivindjahren left a comment

Choose a reason for hiding this comment

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

👍

@berland berland merged commit 8b4dc2a into equinor:main Nov 22, 2024
42 checks passed
@berland berland deleted the fix_ambig_unsmry branch December 27, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:bug-fix Automatically categorise as bug fix in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ecl100 fails when a case already exists on disk
2 participants