Skip to content

Re-enable users of {expr,nondet}_initializer to do their own error reporting #3057

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

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

tautschnig
Copy link
Collaborator

With d5535a9 {expr,nondet}_initializer would
fail an invariant when an expression of the chosen type could not be generated.
As user input code can reasonably trigger this case (see included regression
test), the caller should be able to do error handling as appropriate in a given
context.

  • Each commit message has a non-empty body, explaining why the change was made.
  • My contribution is formatted in line with CODING_STANDARD.md.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • [n/a] My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • [n/a] White-space or formatting changes outside the feature-related changed lines are in commits of their own.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

This PR failed Diffblue compatibility checks (cbmc commit: eaf1402).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/86285654
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

@thk123
Copy link
Contributor

thk123 commented Sep 28, 2018

Creating a bump for this now.

Copy link
Contributor

@thk123 thk123 left a comment

Choose a reason for hiding this comment

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

Reviewed java_bytecode changes but I don't really have much visibility of what this change is about - only looking at it since it failed the bump

@thk123
Copy link
Contributor

thk123 commented Sep 28, 2018

@thk123
Copy link
Contributor

thk123 commented Oct 1, 2018

I have a working TG bump 👍

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

This PR failed Diffblue compatibility checks (cbmc commit: ac26fe2).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87126628
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

This PR failed Diffblue compatibility checks (cbmc commit: b2db7ea).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88747686
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

…porting

With d5535a9 {expr,nondet}_initializer would
fail an invariant when an expression of the chosen type could not be generated.
As user input code can reasonably trigger this case (see included regression
test), the caller should be able to do error handling as appropriate in a given
context.
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

This PR failed Diffblue compatibility checks (cbmc commit: c2dbb57).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88785946
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.

Common spurious failures:

  • the cbmc commit has disappeared in the mean time (e.g. in a force-push)
  • the author is not in the list of contributors (e.g. first-time contributors).

The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.

@tautschnig
Copy link
Collaborator Author

@peterschrammel @thk123 @allredj Could you please let me know whether the TG failure is a genuine one? There was a past bump (see above), but that's 25 days ago...

@thk123
Copy link
Contributor

thk123 commented Oct 23, 2018

The bump did require code changes so I'm not surprised Joel-bot is unhappy - I see Peter has just rebased it but I suppose once that passes this will be good to go

@tautschnig
Copy link
Collaborator Author

@thk123 @peterschrammel thanks a lot for the immediate support!

@peterschrammel
Copy link
Member

Unfortunately, it's not passing.

@tautschnig
Copy link
Collaborator Author

Unfortunately, it's not passing.

Please let me know if there is anything I can do to help!

@peterschrammel
Copy link
Member

This PR is fine. It's due to an earlier merge causing the failure. All subsequent PRs based on cbmc/develop:HEAD are then reported as conflicting.

@tautschnig
Copy link
Collaborator Author

This PR is fine. It's due to an earlier merge causing the failure. [...]

I guess I should still wait before merging this PR to avoid even more chaos on the TG side?

@tautschnig tautschnig merged commit 10df746 into diffblue:develop Oct 29, 2018
@tautschnig tautschnig deleted the expr_init-fix branch October 29, 2018 17:25
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.

6 participants