Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

This page is prepared and maintained

...

for/by

...

Nutch

...

committers.

...

You

...

need

...

committer

...

rights

...

to

...

create

...

a

...

new

...

Nutch

...

release.


Contents

  1. Introduction
  2. Prepping the Release Candidate
  3. Making the Release
  4. Preparing for new development


Prepping the Release Candidate

  1. Create a new release in JIRA. If you do not already have these privileges ask your PMC Chair.
  2. Push off all open issues to the next release; any critical or blocker issues should be resolved on mailing list. Discuss any issues that you are unsure of on the mailing list.
  3. Create a branch branch-x.x,

...

  1. from

...

  1. now

...

  1. on,

...

  1. use

...

  1. the

...

  1. branch

...

  1. created

...

  1. above.

...

  1. Update

...

  1. version

...

  1. numbers

...

  1. (from

...

  1. X.Y-SNAPSHOT

...

  1. to

...

  1. X.Y)

...

  1. for

...

  1. release

...

  1. in:

...

    • conf/nutch-default.xml

...

    • -

...

    • http.agent.version

...

    • property

...

    • default.properties

...

    • -

...

    • version

...

    • property

...

    • and

...

    • year

...

    • property

...

    • src/bin/nutch

...

    • -

...

    • version

...

    • number

...

    • in echo "nutch X.Y"

...

  1. Check the copyright year in NOTICE.txt,

...

  1. update

...

  1. to

...

  1. current

...

  1. year

...

  1. if

...

  1. necessary

...

  1. Update

...

  1. CHANGES.txt

...

  1. with

...

  1. release

...

  1. date

...

  1. and

...

  1. (if

...

  1. needed)

...

  1. add

...

  1. additional

...

  1. changelog

...

  1. entries

...

  1. (from

...

  1. Jira

...

  1. Report).

...

  1. It's

...

  1. also

...

  1. good

...

  1. practice

...

  1. to

...

  1. include

...

  1. a

...

  1. link

...

  1. to

...

  1. the

...

  1. Jira

...

  1. report.

...

  1. Check if documentation needs an update. Although this may be a huge task at any given time, any minor contribution is better than nothing at all.
  2. Commit all these changes to the branch you are releasing.
  3. To avoid that "forgotten" files in your development environment are packaged, make a clean checkout for the release branch or tag:

    • cd ...
      git clone --branch branch-x.x https://github.com/apache/nutch.git branch-x.x
      cd branch-x.x

...

  1. Run unit tests.
    • ant test

  2. Do basic test to see if release looks ok - e.g.

...

  1. install

...

  1. it

...

  1. and

...

  1. run

...

  1. example

...

  1. from

...

  1. tutorial.

...

  1. Run the docker containers as per the guidance for trunk and 2.x HBase and 2.x Cassandra

  2. Get hold of maven-ant-tasks-2.X.X.jar

...

  1. from

...

  1. http://search.maven.org/#search|gav|1|g%3A%22org.apache.maven%22%20AND%20a%3A%22maven-ant-tasks%22

...

  1. and

...

  1. put

...

  1. it

...

  1. in

...

  1. the

...

  1. ivy

...

  1. directory

  2. Execute ant -lib ivy deploy from $NUTCH_HOME,

...

  1. this

...

  1. will

...

  1. sign

...

  1. the

...

  1. Maven

...

  1. artifacts

...

  1. (sources,

...

  1. javadoc,

...

  1. .jar)

...

  1. and

...

  1. send

...

  1. them

...

  1. to

...

  1. a

...

  1. Apache

...

  1. Nexus

...

  1. staging

...

  1. repository.

...

  1. Details

...

  1. of

...

  1. how

...

  1. to

...

  1. set

...

  1. this

...

  1. up

...

  1. can

...

  1. be

...

  1. found

...

  1. here

...

  1. .

...

  1. N.B.

...

  1. Ensure

...

  1. that

...

  1. you

...

  1. have

...

  1. an

...

  1. apache-release

...

  1. profile

...

  1. contained

...

  1. within

...

  1. ~/.m2/settings.xml

...

  1. Once you've

...

  1. read,

...

  1. and

...

  1. are

...

  1. happy

...

  1. with

...

  1. the

...

  1. staging

...

  1. repos

...

  1. ,

...

  1. close

...

  1. it.

...

  1. Run ant -lib ivy restdocs this builds us some kick ass REST documentation courtesy of our good friends over at Miredot which we can post along with the release. If all builds well then the REST documentation can be located within $NUTCH_HOME/target/miredot

...

  1. Remove the maven-ant-tasks

...

  1. jar

...

  1. from

...

  1. the

...

  1. ivy

...

  1. directory
  2. If you do git status, you will see that a pom.xml (and it's associated signature) has been created. Delete this. It is not required and just confuses users.
  3. Tag the release candidate.
    • git tag -a release-X -m "Apache Nutch X RC#X Tag"

  4. Push it to the remote host.
    • git push origin release-X

  5. run the ant targets for zip-bin, tar-bin, zip-src and tar-src (if releasing trunk) and only the latter two if releasing 2.X (this is because 2.x is only released as source). The generated artifacts can be found in $NUTCH_HOME/dist.

  6. Sign it all of the generated artifacts - Step-By-Step Guide to Signing Releases ' - Consider using Chris Mattmann's Apache Utility Scripts. After the signing each release package must be accompanied by the *.asc and the *.sha512 signature file.

  7. Check out the release management area at https://dist.apache.org/repos/dist/dev/nutch/{release.version}

...

  1. and

...

  1. copy

...

  1. all

...

  1. artifacts

...

  1. and

...

  1. the

...

  1. CHANGES.txt

...

  1. to

...

  1. here

...

  1. then

...

  1. commit

...

  1. this.

...

  1. Make sure your pgp key is listed in the Nutch KEYS file located at http://www.apache.org/dist/nutch/KEYS

...

  1. or

...

  1. better

...

  1. yet,

...

  1. use

...

  1. https://id.apache.org/

...

  1. and

...

  1. add

...

  1. your

...

  1. PGP

...

  1. there,

...

  1. and

...

  1. it

...

  1. will

...

  1. then

...

  1. appear

...

  1. in

...

  1. Apache

...

  1. Nutch's

...

  1. Automatically

...

  1. Generated

...

  1. Keys

  2. Create and open a VOTE thread on user@ and dev@nutch.apache.org.

...

  1. The

...

  1. VOTE

...

  1. must

...

  1. pass

...

  1. with

...

  1. 3

...

  1. +1

...

  1. binding

...

  1. VOTE's

...

  1. before

...

  1. any

...

  1. release

...

  1. can

...

  1. take

...

  1. place.

...

  1. A

...

  1. VOTE

...

  1. thread

...

  1. usually

...

  1. takes

...

  1. the

...

  1. form



{{{
Hi Folks,

A first candidate for the Nutch X.Y release is available at:

  https://dist.apache.org/repos/dist/dev/nutch/X.Y/

The release candidate is a zip and tar.gz archive of the sources in:
(select tag from options below)
https://git-wip-us.apache.org/repos/asf?p=nutch.git;a=tags

The SHA512 checksum of the archive is
<<<fill in>>>

In addition, a staged maven repository is available here:

<<<fill in>>>

Please vote on releasing this package as Apache Nutch X.Y.
The vote is open for the next 72 hours and passes if a majority of at
least three +1 Nutch PMC votes are cast.

[ ] +1 Release this package as Apache Nutch X.Y.
[ ] -1 Do not release this package because…

Cheers,
<<<fill in>>>

P.S. Of course here is my +1.
}}}
        1. Once the 72 hour period expires it is time to close the VOTE thread with a RESULT thread. This should simply state the outcome of VOTE'ing (including how many binding VOTE's were received. Finally it should included whether the VOTE passed and if the released can be made.
        1. In the instance where the VOTE does not pass, the release manager should roll bak all of the work above as well as '''DROP''' the staging artifacts.  

= Making the Release =
        1. head back over to the [[https://repository.apache.org/|staging repos]] and '''RELEASE''' them into the wild.
        1. Move the artifacts from the release management area to the release area as follows {{{svn mv 
  1. Once the 72 hour period expires it is time to close the VOTE thread with a RESULT thread. This should simply state the outcome of VOTE'ing (including how many binding VOTE's were received. Finally it should included whether the VOTE passed and if the released can be made.
  2. In the instance where the VOTE does not pass, the release manager should roll bak all of the work above as well as DROP the staging artifacts.


Making the Release

  1. head back over to the staging repos and RELEASE them into the wild.

  2. Move the artifacts from the release management area to the release area as follows svn mv https://dist.apache.org/repos/dist/dev/nutch/$release.version

...

  1.  https://dist.apache.org/repos/dist/release/nutch/$release.version

...

  1.  --

...

  1. message "Release Apache Nutch $release.version"

...

  1.  

  2. Wait 24 hours for release to propagate to mirrors.
  3. Add the new release info to the doap.rdf file, and double check for any other updates that should be made to the doap file as well if it hasn't been updated in a while. If this is the case please see here

  4. Publish new site as per the documentation within the site readme

    1. copy the Java API doc folder into the svn directory cms_site/content/apidocs/apidoc-X.X

...

    1. and

...

    1. commit

...

    1. it

    2. copy the Miredot REST API doc folder (remember this can be located in $NUTCH_HOME/target/miredot)

...

    1. into

...

    1. the

...

    1. svn

...

    1. directory

...

    1. cms_site/content/miredot/X.Y

...

    1. and

...

    1. commit

...

    1. it

    2. update the links to the new Java API doc in javadoc.html and the wiki FrontPage

    3. place a note about the new release on the main page

  1. Release the version on Jira
  2. Send announcements to the user and developer lists as well as announce@apache.org

  3. Finally, don't forget to remove the previous release from dist.apache.org to reduce the load on ASF mirrors, see when-to-archive and NUTCH-1742.


Preparing for new development

  1. Update version numbers to A.B-dev (assuming A.B is next release number) in:
    • conf/nutch-default.xml

...

    • -

...

    • http.agent.version

...

    • property

...

    • default.properties

...

    • -

...

    • version

...

    • property

...

    • and

...

    • year

...

    • property

...

    • src/bin/nutch

...

    • -

...

    • version

...

    • number

...

    • in echo "nutch X.Y"

...

  1. Update CHANGES.txt

...

  1. with

...

  1. header

...

  1. for

...

  1. new

...

  1. changes.

...

  1. Ensure

...

  1. that

...

  1. a

...

  1. new

...

  1. version

...

  1. in

...

  1. JIRA

...

  1. exists

...

  1. for

...

  1. development

...

  1. snapshots

...

  1. (A.B-dev).

...

  1. If

...

  1. this

...

  1. is

...

  1. not

...

  1. there

...

  1. then

...

  1. create

...

  1. one.

...

Good

...

Luck Image Added

<<<FrontPage