diff options
author | Henri Sara <henri.sara@gmail.com> | 2016-12-02 11:19:20 +0200 |
---|---|---|
committer | Artur <artur@vaadin.com> | 2016-12-02 11:19:20 +0200 |
commit | 0f044db997a4d4a1ea41d10bfd8999c5b0affbaa (patch) | |
tree | 97b68cb2c8de48e517af34b120d5c3a980063b43 | |
parent | 5b77adc6b763ec86dc164633ca75066656ec3010 (diff) | |
download | vaadin-framework-0f044db997a4d4a1ea41d10bfd8999c5b0affbaa.tar.gz vaadin-framework-0f044db997a4d4a1ea41d10bfd8999c5b0affbaa.zip |
Remove obsolete release scripts (#74)
-rw-r--r-- | scripts/GenerateBuildReport.py | 111 | ||||
-rw-r--r-- | scripts/GeneratePublishReport.py | 65 |
2 files changed, 0 insertions, 176 deletions
diff --git a/scripts/GenerateBuildReport.py b/scripts/GenerateBuildReport.py deleted file mode 100644 index e812ac899e..0000000000 --- a/scripts/GenerateBuildReport.py +++ /dev/null @@ -1,111 +0,0 @@ -#coding=UTF-8 - -from BuildArchetypes import archetypes, getDeploymentContext -from BuildDemos import demos -import argparse, subprocess, cgi - -parser = argparse.ArgumentParser(description="Build report generator") -parser.add_argument("version", type=str, help="Vaadin version that was just built") -parser.add_argument("deployUrl", type=str, help="Base url of the deployment server") -parser.add_argument("buildResultUrl", type=str, help="URL for the build result page") - -parser.add_argument("stagingRepo", type=str, help="URL for the staging repository") -parser.add_argument("pluginRepo", type=str, help="URL for the maven plugin staging repository") -parser.add_argument("tbapiUrl", type=str, help="URL for the TestBench API build") - -parser.add_argument("frameworkRevision", type=str, default="[fill in framework repository revision]", nargs="?") -parser.add_argument("screenshotRevision", type=str, default="[fill in screenshot repository revision]", nargs="?") -parser.add_argument("archetypeRevision", type=str, default="[fill in maven-integration repository revision]", nargs="?") -parser.add_argument("mavenPluginRevision", type=str, default="[fill in maven-plugin repository revision]", nargs="?") - -args = parser.parse_args() - -content = """<html> -<head></head> -<body> -<table> -<tr><td><h2>Checks that might need a second build</h2></td></tr> -<tr><td><a href="https://dev.vaadin.com/milestone?action=new">Create milestone for next release</a></td></tr> -<tr><td><a href="https://dev.vaadin.com/query?status=closed&component=Core+Framework&resolution=fixed&milestone=!Vaadin {version}&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone&order=priority">Closed fixed tickets without milestone {version}</a></td></tr> -<tr><td><a href="https://dev.vaadin.com/query?status=closed&component=Core+Framework&resolution=fixed&milestone=Vaadin {version}&col=id&col=summary&col=component&col=milestone&col=status&col=type">Closed tickets with milestone {version}</a></td></tr> -<tr><td><a href="https://dev.vaadin.com/query?status=pending-release&component=Core+Framework&resolution=fixed&milestone=Vaadin {version}&col=id&col=summary&col=component&col=milestone&col=status&col=type">Pending-release tickets with milestone {version}</a></td></tr> -<tr><td><a href="https://dev.vaadin.com/query?status=pending-release&milestone=">Pending-release tickets without milestone</a></td></tr> -<tr><td><a href="apidiff/changes.html">API Diff</a></td></tr> -<tr><td><a href="release-notes/release-notes.html">Release Notes</a></td></tr> -""".format(version=args.version) - -try: - p1 = subprocess.Popen(['find', '.', '-name', '*.java'], stdout=subprocess.PIPE) - p2 = subprocess.Popen(['xargs', 'egrep', '-n', '@since ?$'], stdin=p1.stdout, stdout=subprocess.PIPE) - missing = subprocess.check_output(['egrep', '-v', '/(test|tests|target)/'], stdin=p2.stdout) - content += "<tr><td>Empty @since:<br>\n<pre>%s</pre></td></tr>\n" % (missing) -except subprocess.CalledProcessError as e: - if e.returncode == 1: - content += "<tr><td>No empty @since</td></tr>\n" - else: - raise e - -content += "<tr><td>Try demos<ul>" - -for demo in demos: - content += "<li><a href='{url}/{demoName}-{version}'>{demoName}</a></li>\n".format(url=args.deployUrl, demoName=demo, version=args.version) - -content += "</ul></td></tr>\n<tr><td>Try archetype demos<ul>" - -for archetype in archetypes: - content += "<li><a href='{url}/{context}'>{demo}</a></li>\n".format(url=args.deployUrl, demo=archetype, context=getDeploymentContext(archetype, args.version)) - -content += """</ul></td></tr> - <tr><td><a href="{repoUrl}">Staging repository</a></td></tr> - <tr><td><a href="{pluginRepoUrl}">Maven Plugin Staging repository</a></td></tr> - <tr><td>Eclipse Ivy Settings:<br><pre>""".format(repoUrl=args.stagingRepo, pluginRepoUrl=args.pluginRepo) -content += cgi.escape(""" <ibiblio name="vaadin-staging" usepoms="true" m2compatible="true" - root="{repoUrl}" />""".format(repoUrl=args.stagingRepo)) -content += """</pre> - </td></tr> - <tr><td><h2>Preparations before publishing</h2></td></tr> - <tr><td><a href="https://dev.vaadin.com/milestone/Vaadin {version}">Close Trac Milestone</a></td></tr> - <tr><td><a href="https://dev.vaadin.com/query?status=pending-release&component=Core+Framework&resolution=fixed&col=id&col=summary&col=component&col=milestone&col=status&col=type">Verify pending release tickets still have milestone {version}</a></td></tr> - <tr><td><a href="https://dev.vaadin.com/admin/ticket/versions">Add version {version} to Trac</td></tr> - <tr><td><a href="{url}">Result page (See test results, pin and tag build and dependencies)</a></td></tr> - <tr><td>Commands to tag all repositories (warning: do not run as a single script but set variables and check before any push commands - this has not been tested yet and the change IDs are missing)</td></tr> - <tr><td><pre> - GERRIT_USER=[fill in your gerrit username] - - VERSION={version} - FRAMEWORK_REVISION={frameworkRevision} - SCREENSHOTS_REVISION={screenshotRevision} - ARCHETYPES_REVISION={archetypeRevision} - PLUGIN_REVISION={mavenPluginRevision} - - git clone ssh://$GERRIT_USER@dev.vaadin.com:29418/vaadin - cd vaadin - git tag -a -m"$VERSION" $VERSION $FRAMEWORK_REVISION - git push --tags - cd .. - - git clone ssh://$GERRIT_USER@dev.vaadin.com:29418/vaadin-screenshots - cd vaadin-screenshots - git tag -a -m"$VERSION" $VERSION $SCREENSHOTS_REVISION - git push --tags - cd .. - - git clone ssh://$GERRIT_USER@dev.vaadin.com:29418/maven-integration - cd maven-integration - git tag -a -m"$VERSION" $VERSION $ARCHETYPES_REVISION - git push --tags - cd .. - - git clone ssh://$GERRIT_USER@dev.vaadin.com:29418/maven-plugin - cd maven-plugin - git tag -a -m"$VERSION" $VERSION $PLUGIN_REVISION - git push --tags - cd .. - </pre></td></tr> - <tr><td><a href="{tbapi}">Build and publish TestBench API for version {version} if proceeding</a></td></tr> -</table> -</body> -</html>""".format(url=args.buildResultUrl, repoUrl=args.stagingRepo, version=args.version, tbapi=args.tbapiUrl, frameworkRevision=args.frameworkRevision, screenshotRevision=args.screenshotRevision, archetypeRevision=args.archetypeRevision, mavenPluginRevision=args.mavenPluginRevision) - -f = open("result/report.html", 'w') -f.write(content) diff --git a/scripts/GeneratePublishReport.py b/scripts/GeneratePublishReport.py deleted file mode 100644 index 6cd0791f24..0000000000 --- a/scripts/GeneratePublishReport.py +++ /dev/null @@ -1,65 +0,0 @@ -#coding=UTF-8 - -import argparse, cgi -from os.path import exists, isdir -from os import makedirs - -parser = argparse.ArgumentParser(description="Post-publish report generator") -parser.add_argument("version", type=str, help="Vaadin version that was just built") -parser.add_argument("buildResultUrl", type=str, help="URL for the build result page") - -args = parser.parse_args() - -resultPath = "result" -if not exists(resultPath): - makedirs(resultPath) -elif not isdir(resultPath): - print("Result path is not a directory.") - sys.exit(1) - -(major, minor, maintenance) = args.version.split(".", 2) -prerelease = "." in maintenance -if prerelease: - maintenance = maintenance.split('.')[0] - -content = """<html> -<head></head> -<body> -<table> -""" - -if not prerelease: - content += "<tr><td><a href='http://vaadin.com/download/release/{maj}.{min}/{ver}/'>Check {ver} is published to vaadin.com/download</td></tr>".format(maj=major, min=minor, ver=args.version) - content += "<tr><td><a href='http://repo1.maven.org/maven2/com/vaadin/vaadin-server/{ver}'>Check {ver} is published to maven.org (might take a while)</td></tr>".format(ver=args.version) -else: - content += "<tr><td><a href='http://vaadin.com/download/prerelease/{maj}.{min}/{maj}.{min}.{main}/{ver}'>Check {ver} is published as prerelease to vaadin.com/download</td></tr>".format(maj=major, min=minor, main=maintenance, ver=args.version) - content += "<tr><td><a href='http://maven.vaadin.com/vaadin-prereleases/com/vaadin/vaadin-server/{ver}'>Check {ver} is published as prerelease to maven.vaadin.com</td></tr>".format(ver=args.version) - - -content += """ -<tr><td>Verify Latest Vaadin 7: <iframe src="http://vaadin.com/download/LATEST7"></iframe></td></tr> -<tr><td>Verify Vaadin 7 Version List: <iframe src="http://vaadin.com/download/VERSIONS_7"></iframe></td></tr> -<tr><td>Verify Latest Vaadin 7.5: <iframe src="http://vaadin.com/download/release/7.5/LATEST"></iframe></td></tr> -<tr><td>Verify Latest Vaadin 7.6: <iframe src="http://vaadin.com/download/release/7.6/LATEST"></iframe></td></tr> -<tr><td>Verify Latest Vaadin 6: <iframe src="http://vaadin.com/download/LATEST"></iframe></td></tr> -<tr><td>Verify Latest Vaadin 7 Prerelease: <iframe src="http://vaadin.com/download/PRERELEASES"></iframe></td></tr>""" - -if not prerelease: - content += '<tr><td><a href="https://dev.vaadin.com/admin/ticket/versions">Set latest version to default</a></td></tr>' - -content += """ -<tr><td><a href="http://test.vaadin.com/{version}/run/LabelModes?restartApplication">Verify uploaded to test.vaadin.com</a></td></tr> -<tr><td><a href="https://github.com/vaadin/vaadin/tags">Verify tags pushed to GitHub</a></td></tr>""".format(version=args.version) - -if not prerelease: - content += '<tr><td><a href="http://vaadin.com/api">Verify API version list updated</a></td></tr>' - -content += """ -<tr><td><a href="https://dev.vaadin.com/query?status=pending-release&component=Core+Framework&resolution=fixed&milestone=Vaadin {version}&col=id&col=summary&col=component&col=milestone&col=status&col=type">Batch update tickets in Trac</a></td></tr> -<tr><td><a href="{url}">Publish result page (See test results, pin and tag build and dependencies)</a></td></tr> -</table> -</body> -</html>""".format(url=args.buildResultUrl, version=args.version) - -f = open("result/report.html", 'w') -f.write(content) |