8000 invalidate stale commits for PRs too by xabbuh · Pull Request #28788 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

invalidate stale commits for PRs too #28788

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 10, 2018

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Oct 9, 2018
Q A
Branch? 2.8
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

@xabbuh xabbuh added this to the 2.8 milestone Oct 9, 2018
@@ -104,8 +104,7 @@ function getContentHash(array $composerJson)
}
}

if (!$referencedCommits || (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' !== $_SERVER['TRAVIS_PULL_REQUEST'])) {
// cached commits cannot be stale for PRs
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

That's good: now than we use flex as an accelerator, this is not really slow anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks

@fabpot
Copy link
Member
fabpot commented Oct 10, 2018

Thank you @xabbuh.

@fabpot fabpot merged commit aee63f5 into symfony:2.8 Oct 10, 2018
fabpot added a commit that referenced this pull request Oct 10, 2018
This PR was merged into the 2.8 branch.

Discussion
----------

invalidate stale commits for PRs too

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

aee63f5 invalidate stale commits for PRs too
@xabbuh xabbuh deleted the lowest-lock-file-invalidation branch October 10, 2018 09:32
@xabbuh
Copy link
Member Author
xabbuh commented Oct 10, 2018

@nicolas-grekas Can you please check this change nonetheless? It makes build pass again, but I am not fully sure that I did not break any legitimate use case (i.e. maybe we now invalidate too often and thus slowing builds down again).

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.

4 participants
0