Commit Graph

62 Commits

Author SHA1 Message Date
Michael Gibney 832552e0ac
buildAndPushRelease should optionally pause before assembleRelease (#12095) 2023-01-23 16:39:10 -05:00
Adrien Grand f605b4a692
LUCENE-10253: Remove the BadApple annotation. (#468) 2021-12-01 18:03:02 +01:00
Dawid Weiss 0544819b78
LUCENE-10200: store git revision in the release folder and read it back from buildAndPushRelease (#419) 2021-11-01 09:29:06 +01:00
Dawid Weiss d23f37d02d LUCENE-10200: The branch does not have to be on origin remote. Replace this logic with a check whether the branch is up to date with the remote. 2021-10-31 10:41:32 +01:00
Jan Høydahl 5b8f0a5eb5
LUCENE-10174 Speed up 'pushLocal' by using uncompressed tar (#401) 2021-10-20 14:41:24 +02:00
Tomoko Uchida 54418cef45
LUCENE-9997: write release revision to system temp dir (#394) 2021-10-20 07:06:30 +09:00
Jan Høydahl f5486d13e6
LUCENE-10174 BuildAndPushRelease additional improvements (#396) 2021-10-19 19:48:44 +02:00
Jan Høydahl cdfa11b158
LUCENE-10174 Update buildAndPushRelease.py for new gradle build (#382)
Co-authored-by: Tomoko Uchida <tomoko.uchida.1111@gmail.com>
2021-10-17 01:17:34 +02:00
Jan Høydahl ae956db41c
LUCENE-9997 Revisit smoketester for 9.0 build (#355)
* LUCENE-9997 Revisit smoketester for 9.0 build

* Remove checkBrokenLinks

* Add back checkBrokenLinks

* Review feedback. Remove traces of solr-specific testNotice() method
Move backCompat test up to other "if isSrc" block

* Review feedback. Bring back the 'checkMaven()' method, as it checks lucene maven artifacts.
But since we dont have pom template files anymore, no need to compare with templates

* Review feedback. Fix script compatibility by comparing against X.Y instead of X.Y.Z

* Review feedback. Remove unnecessary if lucene test
Convert some ant commands to gradle

* Update MANIFEST tests to match the gradle-produced manifest

* LUCENE-10107 Read multi-line commit from Manifest
Backport from branch_8x

* Collapse for project in 'lucene' loops and methods taking 'project' as argument
Disable checkJavadocLinks, as this dependency no longer exists in 'scripts' folder

* Review feedback - fix more ant stuff, convert to gradle equivalent

* Review feedback: Refactor file open

* Comment out javadoc generation - was only used to check broken links?

* Fix charset of gpg console output to always be utf-8
Fix two more places to use with open()

* Accept 'LICENSE' without txt or md suffix in top-level

* Disable vector dictionary abuse exception if started with -Dsmoketester

* Reformat code

* Use -Dsmoketester flag when invoking IndexFiles
2021-10-13 15:24:14 +02:00
Jan Høydahl 674b66dd16
LUCENE-9809 Adapt Release Wizard to only release Lucene (#344)
* Update wording in README and poll-mirrors.py
* First pass at updating wizard
- lucene/solr -> lucene
- removed solr-only tasks and python functions
* Update addVersion to remove Solr parts
- fixes bug with a regex and missing String qualifier for gradle baseVersion
* buildAndPushRelease - remove solr parts
* githubPRs.py report on PRs from new lucene repo and lucene JIRA only
* update smokeTestRelease.py example in README.md (but not smokeTestRelease.py itself)
* remove Solr references in releasedJirasRegex.py
* Update releasedJirasRegex.py
* Add gpg release signing to buildAndPushRelease.py

Co-authored-by: Christine Poerschke <cpoerschke@apache.org>
2021-10-05 23:33:59 +02:00
Mike Drob 08e38d3452
LUCENE-9488 Create Release Artifacts with Gradle (#1905)
* Build Lucene binary distribution using Gradle
* Generate SHA-512 checksums for all release artifacts
* Update documentation artifacts included in binaries
* Delete some additional Ant relics

Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2020-10-08 14:25:51 -05:00
Mike Drob 3134f10a42
LUCENE-9488 Update release process to work with gradle (#1860)
* Restore lucene/version.properties
* Switch release wizard commands from ant to gradle equivalents
* Remove remaining checks for ant
* Remove checks for Java 8
* Update Copyright year
* Minor bug fixes around determining next version for a major release
2020-09-15 10:10:17 -05:00
Simon Willnauer 75e15497ec
Run tests last to fail fast on missing license and doc issues (#1788) 2020-08-26 12:55:25 +02:00
Alan Woodward daf149817a Correctly pass gpg_key to release script 2020-03-12 10:52:21 +00:00
Alan Woodward 26a32d79cc Changes to release scripts for 8.5 release
* Warning message in releaseWizard about setting GPG_TTY
* Download GPG keys from new location
* Correct git commands in release wizard
2020-03-12 09:10:28 +00:00
Jan Høydahl 87c131baa7
LUCENE-8852 ReleaseWizard tool (#710) 2019-06-20 14:45:17 +02:00
Jan Høydahl 44287d4206
LUCENE-8837 smokeTestRelease.py option --download-only (#702)
* LUCENE-8837: smokeTestRelease.py option --download-only
Move download() and check_and() functions to scriptutil
Add cwd param to run() function in scriptutil
Move the check_ant function from buildAndPushRelease into scriptutil.py, and let it return the version.
2019-06-11 10:17:10 +02:00
Jan Høydahl df1775ffd3
LUCENE-8802: buildAndPushRelease --logfile arg (#679) 2019-06-06 21:47:50 +02:00
Alan Woodward 55c061770e Allow GPG keys with no spaces 2019-02-12 09:02:03 +00:00
Adrien Grand c074b97e79 LUCENE-8579: Don't run bad apples when building a release. 2018-11-30 09:42:20 +01:00
Jan Høydahl 5b96f89d2b LUCENE-5143: Fix smoketester, fix RM PGP key check, fix solr DOAP file, add CHANGES entry
Remove unused/stale 'copy-to-stage' and '-dist-keys' targets from ant build
2018-09-11 22:39:19 +02:00
Jan Høydahl 982ee3931b LUCENE-5143: rm or formalize dealing with "general" KEYS files in our dist dir 2018-09-04 13:24:24 +02:00
Alan Woodward f2e3b109e6 LUCENE-8224: Allow releases to be built with ant 1.10
Also adds a check to common-build.xml to fail early with ant 1.10.2, which
has a bug that prevents lucene from building.
2018-03-26 14:06:54 +01:00
Shalin Shekhar Mangar b8e50f3824 Use the right root dir with the --no-prepare option 2017-10-11 12:53:23 +05:30
Steve Rowe 2a13e783f9 buildAndPushRelease.py: use wait() instead of poll() to check for process completion 2017-10-02 13:34:56 -04:00
Anshum Gupta 47e7fbc4dc GPG Password checker throws error only when process has not been terminated 2017-08-28 14:46:27 -07:00
Steve Rowe 929126a489 LUCENE-7794: buildAndPushRelease.py should run validate and documentation-lint 2017-04-28 10:14:38 -04:00
Steve Rowe d60849f377 LUCENE-7748: buildAndPushRelease.py should fail if the project DOAP files are missing releases that are less than the release being produced 2017-03-18 15:09:43 -04:00
Ishan Chattopadhyaya a6e14ec6d2 LUCENE-7718: buildAndPushRelease.py script should refer to working tree instead of directory 2017-03-08 01:49:13 +05:30
Mike McCandless ca1ce0b255 allow ant 1.9.x as well 2016-08-20 04:32:13 -04:00
Steve Rowe a4de634aaf fix smokeTestRelease.py directory interpolation 2016-05-24 00:18:57 -04:00
Steve Rowe 532d07f1f5 Hide 'git --version' output 2016-05-24 00:18:47 -04:00
Steve Rowe dbb1fc688f - In help text, show default RC number.
- In help text, state that the default --root value is '.' (the current directory)
2016-05-24 00:18:18 -04:00
Steve Rowe 6c85a1d759 When there are unpushed commits, print out the full command used to show the commits 2016-05-24 00:17:48 -04:00
Steve Rowe 51f7574d2f Fix current branch detection 2016-05-24 00:17:31 -04:00
Steve Rowe ed893b3d7a Check for unpushed commits only on the current branch 2016-05-24 00:17:15 -04:00
Steve Rowe 54143f5dcb os.isdir => os.path.isdir 2016-05-24 00:16:54 -04:00
Steve Rowe 8cb2773dc7 - Fail if there are unpushed commits in the Git working tree
- Drop obsolete "--push-remote" param
- Drop obsolete "--smoke-test" param
- Update example RM cmdline usage
- Support relative working tree root directory
- Convert "root" positional cmdline arg into an optional "--root" arg defaulting to '.'
- Use sys.executable instead of $PYTHON_EXEC when printing smoke tester cmdline
- Add new fail-fast checks:
   - Check for a functional "git" executable
   - Ensure "ant" version is 1.8.X
   - Ensure working tree is under Git control, and contains 'lucene/', 'solr/' and 'dev-tools/' dirs
2016-05-24 00:16:10 -04:00
nknize 7263491d8e replace svn up with git pull in buildAndPushRelease.py 2016-03-31 13:40:04 -05:00
Uwe Schindler 6ce6c01318 Update URL to Lucene's KEYS file 2016-03-07 11:21:12 +01:00
Mike McCandless 83ebd1bb71 fix usage line 2016-02-11 10:24:09 -05:00
Mike McCandless 7509b9c969 LUCENE-6938: add TODO that we should also detect unpushed commits 2016-02-11 10:24:09 -05:00
Mike McCandless de9d4ac3b7 LUCENE-6938: fix buggy detection of dirty git checkout 2016-02-11 10:24:09 -05:00
Mike McCandless f8be973b94 LUCENE-6938: switch from svn to git 2016-02-11 09:55:54 -05:00
Anshum Gupta 22a358ffbd Fix buildAndPushRelease.py to echo the correct command for running smokeTester after completion
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684739 13f79535-47bb-0310-9956-ffa450edef68
2015-06-10 19:04:43 +00:00
Anshum Gupta 753fd599d0 SOLR-7028: Fix buildAndPushRelease.py to use the correct variables
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1654569 13f79535-47bb-0310-9956-ffa450edef68
2015-01-24 19:12:00 +00:00
Uwe Schindler 9cba8eb45f LUCENE-5909: Smoke tester now has better command line parsing and optionally also runs on Java 8
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1621473 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 15:48:16 +00:00
Ryan Ernst 80e6000296 Change buildAndPushRelease and smokeTestRelease scripts to use argparse
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1621085 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 08:01:50 +00:00
Uwe Schindler 2234d02205 Create staging URL without https, because it makes smoketester take much longer. Also remove obsolete extra changes dir
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1589105 13f79535-47bb-0310-9956-ffa450edef68
2014-04-22 12:19:37 +00:00
Simon Willnauer 322e35bb99 Update example line in release script
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1569284 13f79535-47bb-0310-9956-ffa450edef68
2014-02-18 11:39:24 +00:00