Skip to content

bugfix: don't redundantly print ChildErrors#17709

Merged
tgamblin merged 1 commit intodevelopfrom
bugfix/dont-print-child-errors
Jul 27, 2020
Merged

bugfix: don't redundantly print ChildErrors#17709
tgamblin merged 1 commit intodevelopfrom
bugfix/dont-print-child-errors

Conversation

@tgamblin
Copy link
Copy Markdown
Member

@tgamblin tgamblin commented Jul 27, 2020

A bug was introduced in #13100 where ChildErrors would be redundantly printed when raised during a build. We should eventually revisit error handling in builds and figure out what the right separation of responsibilities is for distributed builds, but for now just skip printing.

  • SpackErrors were designed to be printed by the forked process, not by the parent, so check if they've alreaady been printed.

@tldahlgren: FYI

@tgamblin tgamblin requested a review from becker33 July 27, 2020 04:17
@tgamblin tgamblin force-pushed the bugfix/dont-print-child-errors branch 3 times, most recently from 940cfc8 to ade8977 Compare July 27, 2020 04:23
A bug was introduced in #13100 where ChildErrors would be redundantly
printed when raised during a build. We should eventually revisit error
handling in builds and figure out what the right separation of
responsibilities is for distributed builds, but for now just skip
printing.

- [x] SpackErrors were designed to be printed by the forked process, not
      by the parent, so check if they've already been printed.
- [x] update tests
@tgamblin tgamblin force-pushed the bugfix/dont-print-child-errors branch from ade8977 to 5eead66 Compare July 27, 2020 05:03
@tgamblin tgamblin merged commit d351946 into develop Jul 27, 2020
tgamblin added a commit that referenced this pull request Jul 27, 2020
A bug was introduced in #13100 where ChildErrors would be redundantly
printed when raised during a build. We should eventually revisit error
handling in builds and figure out what the right separation of
responsibilities is for distributed builds, but for now just skip
printing.

- [x] SpackErrors were designed to be printed by the forked process, not
      by the parent, so check if they've already been printed.
- [x] update tests
@alalazo alalazo deleted the bugfix/dont-print-child-errors branch July 27, 2020 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants