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

Can't get tag to deploy via Travis CI #1137

Closed
geerlingguy opened this issue Feb 27, 2017 · 1 comment
Closed

Can't get tag to deploy via Travis CI #1137

geerlingguy opened this issue Feb 27, 2017 · 1 comment
Labels
Bug Something isn't working

Comments

@geerlingguy
Copy link
Contributor

My system information:

  • Operating system type: macOS
  • Operating system version: 10.12.3
  • BLT version: 8.6.13

Output of blt doctor:

blt > doctor:
Changed current directory to /home/vagrant/.composer
+----------------------+---------------------------------------------------------------------------------+
| Property             | Value                                                                           |
+----------------------+---------------------------------------------------------------------------------+
| %paths               |                                                                                 |
|  - %root             | /var/www/projectname/docroot                                                    |
|  - %site             | sites/default                                                                   |
|  - %modules          | modules                                                                         |
|  - %themes           | themes                                                                          |
|  - %config-sync      | /var/www/projectname/config/default                                             |
|  - %files            | sites/default/files                                                             |
|  - %private          | /var/www/projectname/files-private                                              |
|  - %temp             | /tmp                                                                            |
| admin-theme          | seven                                                                           |
| blt-version          | 8.6.13                                                                          |
| bootstrap            | Successful                                                                      |
| config-sync          | /var/www/projectname/config/default                                             |
| db-driver            | mysql                                                                           |
| db-hostname          | localhost                                                                       |
| db-name              | drupal                                                                          |
| db-password          | drupal                                                                          |
| db-port              | 3306                                                                            |
| db-status            | Connected                                                                       |
| db-username          | drupal                                                                          |
| drupal-settings-file | sites/default/settings.php                                                      |
| drupal-version       | 8.2.6                                                                           |
| drush-alias-files    | /var/www/projectname/docroot/../drush/site-aliases/aliases.drushrc.php               |
|                      | /var/www/projectname/docroot/../drush/site-aliases/example.acsf.aliases.drushrc.php  |
|                      | /var/www/projectname/docroot/../drush/site-aliases/example.local.aliases.drushrc.php |
| drush-conf           | /var/www/projectname/drush/drushrc.php                                               |
| drush-script         | /var/www/projectname/vendor/drush/drush/drush.php                                    |
| drush-temp           | /tmp                                                                            |
| drush-version        | 8.1.9                                                                           |
| files                | sites/default/files                                                             |
| install-profile      | lightning                                                                       |
| local-settings       | /var/www/projectname/docroot/sites/default/settings/local.settings.php          |
| modules              | modules                                                                         |
| php-bin              | /usr/bin/php                                                                    |
| php-conf             | /etc/php/5.6/cli/php.ini                                                        |
| php-os               | Linux                                                                           |
| private              | /var/www/projectname/files-private                                              |
| root                 | /var/www/projectname/docroot                                                    |
| site                 | sites/default                                                                   |
| temp                 | /tmp                                                                            |
| theme                | projectname_theme                                                               |
| themes               | themes                                                                          |
| uri                  | http://local.projectname.com                                                    |
| user                 |                                                                                 |
+----------------------+---------------------------------------------------------------------------------+
+--------------------------+---------------------------------------------------------------------------------+
| Check                    | Outcome                                                                         |
+--------------------------+---------------------------------------------------------------------------------+
| checkDocrootExists       | Found docroot.                                                                  |
| checkCoreExists          | Drupal core exists                                                              |
| checkSettingsFile        | BLT settings are included in settings file.                                     |
| checkLocalSettingsFile   | Found your local settings file.                                                 |
| checkLocalDrushFile      | Local drushrc file does not exist.                                              |
|                          | Create /var/www/projectname/docroot/sites/default/local.drushrc.php.            |
|                          | Run `blt setup:drush:settings` to generate it automatically, or run `blt setup` |
|                          | to run the entire setup process.                                                |
| checkFileSystem:%files   | Public files directory is writable.                                             |
| checkFileSystem:%private | Private files directory is writable.                                            |
| checkFileSystem:%temp    | Temporary files directory is writable.                                          |
| checkDbConnection        | Connected to database.                                                          |
| checkDrupalBootstrapped  | Bootstrapped Drupal via drush.                                                  |
| checkDrupalInstalled     | Drupal is installed.                                                            |
| checkCaching:page        | Drupal cache is disabled.                                                       |
| checkCaching:css         | CSS preprocessing is disabled.                                                  |
| checkCaching:js          | JS preprocessing is disabled.                                                   |
| checkNvmExists           | NVM does not exist.                                                             |
|                          |                                                                                 |
|                          | It is recommended that you use NVM to manage multiple versions of NodeJS on one |
|                          | machine.                                                                        |
|                          | Instructions for installing NVM can be found at:                                |
|                          |   https://github.com/creationix/nvm#installation                                |
| checkCiConfig            | Git remotes are set in project.yml.                                             |
| checkComposer:require    | acquia/blt is in composer.json's require object.                                |
| checkComposer:plugins    | hirak/prestissimo plugin for composer is installed.                             |
| checkBehat:exists        | Behat local settings file exists.                                               |
| checkProjectYml:keys     | project.yml has no deprecated keys.                                             |
| checkAcsfConfig          | BLT settings are included in your pre-settings-php include.                     |
| checkPhpDateTimezone     | PHP setting for date.timezone is correctly set                                  |
+--------------------------+---------------------------------------------------------------------------------+

BUILD FINISHED; 6.3077 seconds

When I run this command:

  • Tag source repo and push tag (from the master branch).

I get the following output:

Travis CI runs normally, then outputs:

Skipping a deployment with the script provider because this branch is not permitted

And I expected this to happen:

  • The tag would be deployed to the artifact repository.
@geerlingguy geerlingguy changed the title Can't get Can't get tag to deploy via Travis CI Feb 27, 2017
@geerlingguy
Copy link
Contributor Author

Ah... nevermind—it looks like Travis got confused after we upgraded BLT to the latest version. Somehow it built multiple tags at the same time and caused a race condition—our 1.4.0 tag was somehow built as 1.5.0-build, and pushed to the artifact repo. When the 1.5.0 tag was built, it was deployed as 1.5.0-build as well, but then it failed to push because that tag already existed in the artifact repo.

And looking back in my logs, it looks like I had two tags in my fork that were pushed at the same time, causing this race condition... oops! So no bug here, just a weird behavior if you push two tags at once.

@grasmash grasmash added the Bug Something isn't working label Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants