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

Update all non-major dependencies, optimized token refresh decision logic according to newly discovered mutation test scenarios #543

Merged
merged 2 commits into from
Oct 31, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 31, 2022

Mend Renovate

This PR contains the following updates:

Package Type Update Change
laminas/laminas-diactoros (source) require-dev minor ^2.19.0 -> ^2.20.0
laminas/laminas-httphandlerrunner (source) require-dev minor ^2.3.0 -> ^2.4.0
phpunit/phpunit (source) require-dev patch ^9.5.25 -> ^9.5.26

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

Read more about the use of Renovate Bot within ocramius/* projects.

| datasource | package                           | from   | to     |
| ---------- | --------------------------------- | ------ | ------ |
| packagist  | laminas/laminas-diactoros         | 2.19.0 | 2.20.0 |
| packagist  | laminas/laminas-httphandlerrunner | 2.3.0  | 2.4.0  |
| packagist  | phpunit/phpunit                   | 9.5.25 | 9.5.26 |
@renovate renovate bot added the renovate label Oct 31, 2022
@renovate
Copy link
Contributor Author

renovate bot commented Oct 31, 2022

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

… token needs refresh

 * an empty or invalid token will produce an empty session container
   * an empty session container, if not changed, will not be refreshed
 * a valid token with an empty session will be left to expire anyway
 * a valid token with a non-empty session will be refreshed

This also removes a mutation that caused our CI to fail:

```
1) /home/ocramius/Documents/psr7-sessions/storageless/src/Storageless/Http/SessionMiddleware.php:215    [M] NotIdentical

--- Original
+++ New
@@ @@
     {
         $refreshTime = $this->clock->now()->sub(new DateInterval(sprintf('PT%sS', $this->refreshTime)));
         assert($refreshTime !== false);
-        return $token !== null && $token->hasBeenIssuedBefore($refreshTime);
+        return $token === null && $token->hasBeenIssuedBefore($refreshTime);
     }
     /** @throws BadMethodCallException */
     private function getTokenCookie(SessionInterface $sessionContainer) : SetCookie
[warning] Dashboard report has not been sent: The current process is not executed in a CI build

Time: 9s. Memory: 0.10GB

 [ERROR] The minimum required MSI percentage should be 100%, but actual is 97.3%. Improve your tests!
```
@Ocramius Ocramius added this to the 8.9.0 milestone Oct 31, 2022
@Ocramius Ocramius self-assigned this Oct 31, 2022
@Ocramius Ocramius merged commit 32b34ef into 8.9.x Oct 31, 2022
@Ocramius Ocramius deleted the renovate/all-minor-patch branch October 31, 2022 17:16
@Ocramius Ocramius changed the title Update all non-major dependencies Update all non-major dependencies, optimized token refresh decision logic according to newly discovered mutation test scenarios Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant