Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Jetty/Release Checklist

< Jetty
Revision as of 10:37, 5 September 2012 by Boulay.intalio.com (Talk | contribs)



Introduction

Complete these steps to determine whether a staged release is set to go.


Steps

Download the staged releases for jetty(x, x+1):

wget https://oss.sonatype.org/content/repositories/jetty-[reponumber]/org/eclipse/jetty/jetty-distribution/[jetty-version]/ jetty-distribution-7.[jetty-minor-version].tar.gz
wget https://oss.sonatype.org/content/repositories/jetty-[reponumber]/org/eclipse/jetty/jetty-distribution/[jetty-version]/jetty-distribution-8.[jetty-minor-version].tar.gz
Note.png
Note:
You must perform the following steps for each release that you are testing.


Testing Jetty

1. Extract the release(s) to a directory of your choice.

2. Start jetty.

cd [installdir] ; java -jar start.jar OPTIONS=rewrite etc/jetty-rewrite.xml etc/jetty-ssl.xml

No exceptions? Good. Proceed. Otherwise investigate.

3. Open http://localhost:8080/ in your favourite browser.

You should see the test.war webapp.

4. Go through ALL the tests and verify that everything works fine.

5. Verify that hot deployment works.

touch [pathToJettyDistribution]/contexts/test.xml

6. Verify that test.war is redeployed in STDOUT.

Testing CometD

1. clone git://github.com/cometd/cometd.git.

git clone git://github.com/cometd/cometd.git

<code 2. edit pom.xml and update jetty-version and repository URL to match the current staged release.

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <jetty-version>7.6.2.v20120308</jetty-version>
        <jetty-plugin-version>${jetty-version}</jetty-plugin-version>
        <slf4j-version>1.6.4</slf4j-version>
        <spring-version>3.1.0.RELEASE</spring-version>
    </properties>
 
  <repositories>
    <repository>
      <id>Jetty Staging</id>
      <url>https://oss.sonatype.org/content/repositories/jetty-988/</url>
    </repository>
  </repositories>

3. Build cometd.

<source="bash"> mvn clean install </source>

4. Be patient.

5. Run the loadtest as it is described here: http://cometd.org/documentation/2.x/howtos/loadtesting. Keep the default values, but make sure that you raise the client setting to 1000. We might change the default to 1000 (currently 100). Run the loadtest until JIT compilation time is close to zero value (after about 10k calls).

Make sure that performance results are reasonably fast.

6. Deploy cometd.war to the webapps directory of the jetty-distribution tested above.

<source="bash"> cp cometd-demo/target/cometd-demo-[version].war [pathToJetty]/jetty-distribution-[jetty-version]/webapps/ </source>

7. Start jetty and make sure there are no exceptions.

<source="bash"> cd [pathToJetty] && java -jar start.jar </source>

8. Go through all pages of the demo and test them.

<source="bash"> http://localhost:8080/cometd-demo-2.4.1-SNAPSHOT/ </source>

9. All tests green? Yeeeaaaaay!

Back to the top