Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[travis] merge "same Symfony version" jobs in one #28114

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
Aug 3, 2018

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Aug 2, 2018

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

Allowing to consume fewer jobs and save the 1 to 2 minutes bootstrap time of workers.

@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Aug 2, 2018
@nicolas-grekas nicolas-grekas force-pushed the travis-merge branch 28 times, most recently from 9ae3cd6 to c9b85d2 Compare August 2, 2018 14:44
@nicolas-grekas
Copy link
Member Author

Should be ready:

  • uses PHP 7.1 to compute composer update on HHVM + PHP 5.*, saving ~1 minute per job
  • runs intermediary PHP versions in one single job (skipped for PRs as before)

This should relax the pressure on the CI, by reducing the number of jobs and making them faster to complete.

@nicolas-grekas nicolas-grekas force-pushed the travis-merge branch 2 times, most recently from 4d5fc62 to 29e9a25 Compare August 2, 2018 15:56
@@ -42,15 +40,26 @@ services: mongodb
before_install:
- |
# General configuration
set -e
Copy link
Member

Choose a reason for hiding this comment

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

I think this will impact the Travis build script, which might break it, as commands put in the .travis.yml (rather than in external script) are placed directly in the generated build script

Copy link
Member Author

Choose a reason for hiding this comment

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

so far so good, it works as expected in the various jobs I triggered

Copy link
Member

Choose a reason for hiding this comment

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

this will hurt on failure, not on success (set -e only impacts failures), as it would make the script end without the Travis logic running after the failed command to end things gracefully.

Copy link
Member Author

Choose a reason for hiding this comment

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

This issue set -e prevents is dealing with exit codes in the "for" loops. This is much simpler this way.

@stof
Copy link
Member

stof commented Aug 2, 2018

runs intermediary PHP versions in one single job (skipped for PRs as before)

wouldn't this make the build summary more confusing for contributors ?

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Aug 2, 2018

wouldn't this make the build summary more confusing for contributors ?

for contributors, these will be skipped with a message
for regular builds, the PHP version is displayed in the output
I invite you to check travis logs to figure out.

@stof
Copy link
Member

stof commented Aug 2, 2018

Skipping does not seems to work. It displays Intermediate PHP version 5.5 is skipped for pull requests. and then runs the tests.

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Aug 2, 2018

You're too impatient, I was running a job with skipping disabled so you could look at the output :)
So here is a job that runs tests for PHP version 5.4, 5.5, 5.6 and 7.0 in 10 minutes:
https://travis-ci.org/symfony/symfony/jobs/411366615

Ready now.

@stof
Copy link
Member

stof commented Aug 2, 2018

Well, you invited me to check the output, so I did it 😄

@nicolas-grekas
Copy link
Member Author

Thanks for doing it :) Here is a screenshot for others:
image

tfold ext.apcu tpecl apcu-5.1.6 apcu.so $INI
tfold ext.mongodb tpecl mongodb-1.5.0 mongodb.so $INI
fi
for PHP in $TRAVIS_PHP_VERSION $php_extra; do
Copy link
Member

Choose a reason for hiding this comment

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

if we skip extra versions, should we still install extensions for them ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The compilation is cached so skipping is not required (makes the logic a bit simpler here.)

@nicolas-grekas nicolas-grekas force-pushed the travis-merge branch 3 times, most recently from 04f0004 to 4a678f5 Compare August 3, 2018 09:34
@nicolas-grekas nicolas-grekas merged commit 9857ca0 into symfony:2.8 Aug 3, 2018
nicolas-grekas added a commit that referenced this pull request Aug 3, 2018
…as-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[travis] merge "same Symfony version" jobs in one

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

Allowing to consume fewer jobs and save the 1 to 2 minutes bootstrap time of workers.

Commits
-------

9857ca0 [travis] merge "same Symfony version" jobs in one
@nicolas-grekas nicolas-grekas deleted the travis-merge branch August 3, 2018 10:42
nicolas-grekas added a commit that referenced this pull request Aug 3, 2018
…as-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[travis] merge "same Symfony version" jobs in one

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

Allowing to consume fewer jobs and save the 1 to 2 minutes bootstrap time of workers.

Commits
-------

9857ca0 [travis] merge "same Symfony version" jobs in one
nicolas-grekas added a commit that referenced this pull request Aug 3, 2018
…as-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[travis] merge "same Symfony version" jobs in one

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

Allowing to consume fewer jobs and save the 1 to 2 minutes bootstrap time of workers.

Commits
-------

9857ca0 [travis] merge "same Symfony version" jobs in one
fabpot pushed a commit that referenced this pull request Dec 6, 2018
* 2.7:
  [Security\Http] detect bad redirect targets using backslashes
  [Form] Filter file uploads out of regular form types
  Fix CI
  minor #28258 [travis] fix composer.lock invalidation for deps=low (nicolas-grekas)
  [travis] fix composer.lock invalidation for PRs patching several components
  [travis] fix composer.lock invalidation for deps=low
  minor #28199 [travis][appveyor] use symfony/flex to accelerate builds (nicolas-grekas)
  [travis] ignore ordering when validating composer.lock files for deps=low
  minor #28146 [travis] cache composer.lock files for deps=low (nicolas-grekas)
  fix ci
  [travis] fix requiring mongodb/mongodb before composer up
  minor #28114 [travis] merge "same Symfony version" jobs in one (nicolas-grekas)
  [2.7] Make CI green
  updated VERSION for 2.7.49
  updated CHANGELOG for 2.7.49
  [HttpKernel] fix trusted headers management in HttpCache and InlineFragmentRenderer
  [HttpFoundation] Remove support for legacy and risky HTTP headers
  updated VERSION for 2.7.48
  update CONTRIBUTORS for 2.7.48
  updated CHANGELOG for 2.7.48
fabpot pushed a commit that referenced this pull request Dec 6, 2018
* 2.8:
  [Security\Http] detect bad redirect targets using backslashes
  [Form] Filter file uploads out of regular form types
  Fix CI
  minor #28258 [travis] fix composer.lock invalidation for deps=low (nicolas-grekas)
  [travis] fix composer.lock invalidation for PRs patching several components
  [travis] fix composer.lock invalidation for deps=low
  minor #28199 [travis][appveyor] use symfony/flex to accelerate builds (nicolas-grekas)
  [travis] ignore ordering when validating composer.lock files for deps=low
  minor #28146 [travis] cache composer.lock files for deps=low (nicolas-grekas)
  fix ci
  [travis] fix requiring mongodb/mongodb before composer up
  minor #28114 [travis] merge "same Symfony version" jobs in one (nicolas-grekas)
  [2.7] Make CI green
  updated VERSION for 2.7.49
  updated CHANGELOG for 2.7.49
  [HttpKernel] fix trusted headers management in HttpCache and InlineFragmentRenderer
  [HttpFoundation] Remove support for legacy and risky HTTP headers
  updated VERSION for 2.7.48
  update CONTRIBUTORS for 2.7.48
  updated CHANGELOG for 2.7.48
fabpot pushed a commit that referenced this pull request Dec 6, 2018
* 3.4:
  [Security\Http] detect bad redirect targets using backslashes
  [Form] Filter file uploads out of regular form types
  Fix CI
  minor #28258 [travis] fix composer.lock invalidation for deps=low (nicolas-grekas)
  [travis] fix composer.lock invalidation for PRs patching several components
  [travis] fix composer.lock invalidation for deps=low
  minor #28199 [travis][appveyor] use symfony/flex to accelerate builds (nicolas-grekas)
  [travis] ignore ordering when validating composer.lock files for deps=low
  minor #28146 [travis] cache composer.lock files for deps=low (nicolas-grekas)
  fix ci
  [travis] fix requiring mongodb/mongodb before composer up
  minor #28114 [travis] merge "same Symfony version" jobs in one (nicolas-grekas)
  [2.7] Make CI green
  updated VERSION for 2.7.49
  updated CHANGELOG for 2.7.49
  [HttpKernel] fix trusted headers management in HttpCache and InlineFragmentRenderer
  [HttpFoundation] Remove support for legacy and risky HTTP headers
  updated VERSION for 2.7.48
  update CONTRIBUTORS for 2.7.48
  updated CHANGELOG for 2.7.48
fabpot pushed a commit that referenced this pull request Dec 6, 2018
* 4.1:
  [Security\Http] detect bad redirect targets using backslashes
  [Form] Filter file uploads out of regular form types
  Fix CI
  minor #28258 [travis] fix composer.lock invalidation for deps=low (nicolas-grekas)
  [travis] fix composer.lock invalidation for PRs patching several components
  [travis] fix composer.lock invalidation for deps=low
  minor #28199 [travis][appveyor] use symfony/flex to accelerate builds (nicolas-grekas)
  [travis] ignore ordering when validating composer.lock files for deps=low
  minor #28146 [travis] cache composer.lock files for deps=low (nicolas-grekas)
  fix ci
  [travis] fix requiring mongodb/mongodb before composer up
  minor #28114 [travis] merge "same Symfony version" jobs in one (nicolas-grekas)
  [2.7] Make CI green
  updated VERSION for 2.7.49
  updated CHANGELOG for 2.7.49
  [HttpKernel] fix trusted headers management in HttpCache and InlineFragmentRenderer
  [HttpFoundation] Remove support for legacy and risky HTTP headers
  updated VERSION for 2.7.48
  update CONTRIBUTORS for 2.7.48
  updated CHANGELOG for 2.7.48
fabpot pushed a commit that referenced this pull request Dec 6, 2018
* 4.2:
  [Security\Http] detect bad redirect targets using backslashes
  [Form] Filter file uploads out of regular form types
  Fix CI
  minor #28258 [travis] fix composer.lock invalidation for deps=low (nicolas-grekas)
  [travis] fix composer.lock invalidation for PRs patching several components
  [travis] fix composer.lock invalidation for deps=low
  minor #28199 [travis][appveyor] use symfony/flex to accelerate builds (nicolas-grekas)
  [travis] ignore ordering when validating composer.lock files for deps=low
  minor #28146 [travis] cache composer.lock files for deps=low (nicolas-grekas)
  fix ci
  [travis] fix requiring mongodb/mongodb before composer up
  minor #28114 [travis] merge "same Symfony version" jobs in one (nicolas-grekas)
  [2.7] Make CI green
  updated VERSION for 2.7.49
  updated CHANGELOG for 2.7.49
  [HttpKernel] fix trusted headers management in HttpCache and InlineFragmentRenderer
  [HttpFoundation] Remove support for legacy and risky HTTP headers
  updated VERSION for 2.7.48
  update CONTRIBUTORS for 2.7.48
  updated CHANGELOG for 2.7.48
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.

3 participants