8000 [travis] Revert tests cancellations and don't fail if memcached is not avail by nicolas-grekas · Pull Request #14141 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[travis] Revert tests cancellations and don't fail if memcached is not avail #14141

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
Apr 1, 2015

Conversation

nicolas-grekas
Copy link
Member
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

I don't understand how travis gets its $TRAVIS_COMMIT, but this should make things stable again.

@nicolas-grekas nicolas-grekas force-pushed the fix-travis branch 4 times, most recently from 4e27187 to 709494f Compare March 31, 2015 21:11
@nicolas-grekas nicolas-grekas changed the title [travis] Fix tests cancellations [travis] Revert tests cancellations and don't fail if memcached is not avail Mar 31, 2015
@nicolas-grekas
Copy link
Member Author

So, I reverted #14047 and added a check to not fail if memcached can't be installed.
If someone has a better idea, I'd close this PR happily.
For now, I'm stuck with this.

@@ -26,15 +26,12 @@ env:
- SYMFONY_DEPRECATIONS_HELPER=weak

before_install:
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then git fetch origin "refs/pull/$TRAVIS_PULL_REQUEST/merge"; else git fetch origin "$TRAVIS_BRANCH"; fi;
- if [[ "$TRAVIS_COMMIT" != `git rev-parse FETCH_HEAD` ]]; then echo "Pull request or branch commit hash has changed, aborting!"; exit 1; fi;
Copy link
Member

Choose a reason for hiding this comment

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

Did you figure out what actually happened on Travis to make this fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

Somehow: they have $TRAVIS_COMMIT hash that do not exist anymore in the main repos. I suspect this is related to github doing merges all the time in refs/pull/*/merge, eveytime we merge something in the target branch.

@nicolas-grekas nicolas-grekas merged commit 7441955 into symfony:2.3 Apr 1, 2015
nicolas-grekas added a commit that referenced this pull request Apr 1, 2015
…mcached is not avail (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[travis] Revert tests cancellations and don't fail if memcached is not avail

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

I don't understand how travis gets its $TRAVIS_COMMIT, but this should make things stable again.

Commits
-------

7441955 [travis] Fix tests cancellations
@nicolas-grekas nicolas-grekas deleted the fix-travis branch April 1, 2015 07:26
@nicolas-grekas
Copy link
Member Author

Travis should be back to green now that this is merged, please rebase your PRs pull-requesters

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.

2 participants
0