? Pending

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
20 Jun 2016

Summary of Changes

This PR updates bump.php to replace the string __DEPLOY_VERSION__ by the current release (if needed).

Testing Instructions

  1. Change a since tag in any php file to __DEPLOY_VERSION__.
  2. Run php build/bump.php -v 3.6.0-beta2 (or current version, if other)
  3. Check the since tag in the file you changed before is now 3.6.0.

Observations

This allow to not worry anymore about the since tag. Just but __DEPLOY_VERSION__ on the PR code and when a version bump is done it will be replaced by the release version.

avatar andrepereiradasilva andrepereiradasilva - open - 20 Jun 2016
avatar andrepereiradasilva andrepereiradasilva - change - 20 Jun 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jun 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 20 Jun 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 20 Jun 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 20 Jun 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 20 Jun 2016
The description was changed
avatar brianteeman brianteeman - change - 21 Jun 2016
Category Code style
avatar brianteeman brianteeman - test_item - 21 Jun 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 21 Jun 2016

I have tested this item ? unsuccessfully on c2407f9

## With Patch
brians-MacBook-Air:github-joomla-cms brian1$ php build/bump.php -v 3.6.0-beta2

Version data:

  • Main: 3.6
  • Release: 3.6.0
  • Full: 3.6.0-beta2
  • Build:
  • Dev Level: 0-beta2
  • Dev Status: Beta
  • Release date: 21-June-2016
  • Release time: 10:53
  • Release timezone: GMT
  • Creation date: June 2016

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 151553344 bytes) in /Applications/MAMP/htdocs/github-joomla-cms/build/bump.php on line 305

Without patch

brians-MacBook-Air:github-joomla-cms brian1$ php build/bump.php -v 3.6.0-beta2

Version data:

  • Main: 3.6
  • Release: 3.6.0
  • Full: 3.6.0-beta2
  • Build:
  • Dev Level: 0-beta2
  • Dev Status: Beta
  • Release date: 21-June-2016
  • Release time: 10:53
  • Release timezone: GMT
  • Creation date: June 2016

Version bump complete!
brians-MacBook-Air:github-joomla-cms brian1$


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10883.

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Jun 2016

i don't think it's a pre-requisite for bump.php to work on php memory limit of 128MB :)

avatar brianteeman
brianteeman - comment - 21 Jun 2016

Increased memory to 512M to remove that error
Changed

ran script - no error - no change in the edited file

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Jun 2016

no change ? are you sure? what is the output of the script?

avatar brianteeman
brianteeman - comment - 21 Jun 2016

brians-MacBook-Air:github-joomla-cms brian1$ /Applications/MAMP/bin/php/php5.5.26/bin/php build/bump.php -v 3.6.0-beta2

Version data:

  • Main: 3.6
  • Release: 3.6.0
  • Full: 3.6.0-beta2
  • Build:
  • Dev Level: 0-beta2
  • Dev Status: Beta
  • Release date: 21-June-2016
  • Release time: 11:53
  • Release timezone: GMT
  • Creation date: June 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Jun 2016

what is the file you changed?

avatar brianteeman
brianteeman - comment - 21 Jun 2016

Changed two
administrator/components/com_admin/controllers/profile.php
plugins/system/highlight/highlight.php

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Jun 2016

ok will test those

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Jun 2016
[user@host build]# php bump.php -v 3.6.0-beta2

Version data:
- Main:                 3.6
- Release:              3.6.0
- Full:                 3.6.0-beta2
- Build:
- Dev Level:            0-beta2
- Dev Status:           Beta
- Release date:         21-June-2016
- Release time:         12:03
- Release timezone:     GMT
- Creation date:        June 2016

- Since Version changed in 2 files.

Version bump complete!

Are you sure you added __DEPLOY_VERSION__?

avatar brianteeman
brianteeman - comment - 21 Jun 2016

yes and I just tried again with a copy paste

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Jun 2016

brian i can't reproduce your issue.

avatar brianteeman
brianteeman - comment - 21 Jun 2016

Just checked php error log and that still shows a memory error even though its not logged to the screen - weird - must be me

avatar roland-d roland-d - test_item - 16 Jul 2016 - Tested successfully
avatar roland-d
roland-d - comment - 16 Jul 2016

I have tested this item successfully on c2407f9

After applying the patch the DEPLOY_VERSION has been changed to 3.6.0 as expected. I did have to increase memory to 512MB to get the bump script to work though ;)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10883.

avatar wilsonge wilsonge - change - 16 Jul 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-16 22:22:50
Closed_By wilsonge
avatar wilsonge wilsonge - close - 16 Jul 2016
avatar wilsonge wilsonge - merge - 16 Jul 2016
avatar wilsonge wilsonge - reference | fd926b0 - 16 Jul 16
avatar wilsonge wilsonge - merge - 16 Jul 2016
avatar wilsonge wilsonge - close - 16 Jul 2016
avatar wilsonge wilsonge - change - 16 Jul 2016
Milestone Added:
avatar wilsonge wilsonge - change - 16 Jul 2016
Milestone Added:
avatar wilsonge wilsonge - change - 16 Jul 2016
Milestone Removed:
avatar andrepereiradasilva andrepereiradasilva - head_ref_deleted - 16 Jul 2016

Add a Comment

Login with GitHub to post a comment