Title: Spring integration test post minimization rerun with full context reset takes too long when minimization fails · Issue #2625 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Spring integration test post minimization rerun with full context reset takes too long when minimization fails · Issue #2625 · UnitTestBot/UTBotJava
X Title: Spring integration test post minimization rerun with full context reset takes too long when minimization fails · Issue #2625 · UnitTestBot/UTBotJava
Description: Description We rerun Spring integration tests after minimization (see #2574 for more context) with full context reset for each test. However, full context reset is slow, so when minimization outputs too many executions reruns can take to...
Open Graph Description: Description We rerun Spring integration tests after minimization (see #2574 for more context) with full context reset for each test. However, full context reset is slow, so when minimization output...
X Description: Description We rerun Spring integration tests after minimization (see #2574 for more context) with full context reset for each test. However, full context reset is slow, so when minimization output...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/2625
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Spring integration test post minimization rerun with full context reset takes too long when minimization fails","articleBody":"**Description**\r\n\r\nWe rerun Spring integration tests after minimization (see #2574 for more context) with full context reset for each test.\r\n\r\nHowever, full context reset is slow, so when minimization outputs too many executions reruns can take too long.\r\n\r\n**To Reproduce**\r\n\r\nGenerate integration tests for `PipelineController.deletePipelineJob()` method in `Medical-Web-App` project with `MedicalWebApp` configuration.\r\n\r\n**Expected behavior**\r\n\r\nTest generation finishes within a reasonable time.\r\n\r\n**Actual behavior**\r\n\r\nGeneration takes over 50 minute (still not finished for me).\r\n\r\n**Visual proofs**\r\n\r\n[utbot-engine-current.log](https://github.com/UnitTestBot/UTBotJava/files/12765664/utbot-engine-current.log)\r\n\r\n**Environment**\r\n\r\nSetup your environment as described in the [**Local Development** section of the Medical-Web-App project README](https://github.com/MathAndMedLab/Medical-Web-App/tree/63ed67c73466eacea25e1a6335091e0e261fd535#local-deployment). \r\n\r\n**Additional context**\r\n\r\n`PipelineController.deletePipelineJob()` is annotated with `@PreAuthorize(\"#username == authentication.principal.username\")`, which may be the cause of the issue.\r\n\r\nWhen this issue is fixed 50 almost identical tests with empty coverage are generated:\r\n```java\r\npublic void testDeletePipelineJobThrowsADE() {\r\n /* This test fails because method [com.app.medicalwebapp.controllers.PipelineController.deletePipelineJob] produces [org.springframework.security.access.AccessDeniedException: Access is denied] */\r\n pipelineController.deletePipelineJob(9223372036854513663L);\r\n}\r\n```\r\n","author":{"url":"https://github.com/IlyaMuravjov","@type":"Person","name":"IlyaMuravjov"},"datePublished":"2023-09-29T13:03:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2625/UTBotJava/issues/2625"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4e862ab5-23d4-3d60-b4ce-4dc6b37a60cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A112:1AD266:13CE8DE:1958D2F:6990DA6B |
| html-safe-nonce | 0988e464882c69384f105e937619dbddf8d93c1fc6d8b139c402c2e06beef32e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTEyOjFBRDI2NjoxM0NFOERFOjE5NThEMkY6Njk5MERBNkIiLCJ2aXNpdG9yX2lkIjoiNDAyOTMwNDc1ODU1Njc0NDI5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a1b5168336972e41460206c144b5785fb95cf13f196a572b588e1b717249ee3c |
| hovercard-subject-tag | issue:1919236479 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/2625/issue_layout |
| twitter:image | https://opengraph.githubassets.com/225d27bc6671a48ea39c1a15fcf6d22a0a3338592327b7e153cb24f80391f808/UnitTestBot/UTBotJava/issues/2625 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/225d27bc6671a48ea39c1a15fcf6d22a0a3338592327b7e153cb24f80391f808/UnitTestBot/UTBotJava/issues/2625 |
| og:image:alt | Description We rerun Spring integration tests after minimization (see #2574 for more context) with full context reset for each test. However, full context reset is slow, so when minimization output... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IlyaMuravjov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width