diff options
author | Henri Sara <henri.sara@gmail.com> | 2016-12-20 10:40:31 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2016-12-20 10:40:31 +0200 |
commit | c76f217ff0fc09b8bd4ab4645b416ed3e55d93f8 (patch) | |
tree | b1fbf51725c5b5e9702e4490f4cb08c039704609 /scripts | |
parent | 54df589b2006587798748fe1502af44b1f7fd831 (diff) | |
download | vaadin-framework-c76f217ff0fc09b8bd4ab4645b416ed3e55d93f8.tar.gz vaadin-framework-c76f217ff0fc09b8bd4ab4645b416ed3e55d93f8.zip |
Update build report for GitHub and removed widgets module (#8037)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/GenerateBuildTestAndStagingReport.py | 14 | ||||
-rw-r--r-- | scripts/GeneratePostPublishReport.py | 14 | ||||
-rw-r--r-- | scripts/GeneratePublishReportPart1.py | 8 |
3 files changed, 16 insertions, 20 deletions
diff --git a/scripts/GenerateBuildTestAndStagingReport.py b/scripts/GenerateBuildTestAndStagingReport.py index 16abd340ae..c5c31b09cd 100644 --- a/scripts/GenerateBuildTestAndStagingReport.py +++ b/scripts/GenerateBuildTestAndStagingReport.py @@ -125,7 +125,7 @@ def completeArtifactNames(artifactIds, version): allowedPluginArtifacts = completeArtifactNames([ 'vaadin-maven-plugin' ], args.version) allowedArchetypeArtifacts = completeArtifactNames([ 'vaadin-archetype-application', 'vaadin-archetype-application-multimodule', 'vaadin-archetype-application-example', 'vaadin-archetype-widget', 'vaadin-archetype-liferay-portlet' ], args.version) -allowedFrameworkArtifacts = completeArtifactNames([ 'vaadin-root', 'vaadin-bom', 'vaadin-shared', 'vaadin-server', 'vaadin-client', 'vaadin-client-compiler', 'vaadin-client-compiled', 'vaadin-push', 'vaadin-themes', 'vaadin-widgets', 'vaadin-compatibility-shared', 'vaadin-compatibility-server', 'vaadin-compatibility-client', 'vaadin-compatibility-client-compiled', 'vaadin-compatibility-themes' ], args.version) +allowedFrameworkArtifacts = completeArtifactNames([ 'vaadin-root', 'vaadin-bom', 'vaadin-shared', 'vaadin-server', 'vaadin-client', 'vaadin-client-compiler', 'vaadin-client-compiled', 'vaadin-push', 'vaadin-themes', 'vaadin-compatibility-shared', 'vaadin-compatibility-server', 'vaadin-compatibility-client', 'vaadin-compatibility-client-compiled', 'vaadin-compatibility-themes' ], args.version) content = "<html><head></head><body><table>" traffic_light = "<svg width=\"20px\" height=\"20px\" style=\"padding-right:5px\"><circle cx=\"10\" cy=\"10\" r=\"10\" fill=\"{color}\"/></svg>" @@ -163,16 +163,12 @@ content += createTableRow("", "<a href=\"http://{}/repository/download/{}/{}:id/ # link to api diff content += createTableRow("", getApiDiffHtml()) -# check that trac tickets are in the correct status -content += createTableRow("", "<a href=\"https://dev.vaadin.com/query?status=closed&status=pending-release&component=Core+Framework&resolution=fixed&group=milestone&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone&order=priority\">Check that trac tickets have correct status</a>") -# pending release tickets without milestone -content += createTableRow("", "<a href=\"https://dev.vaadin.com/query?status=pending-release&milestone=\">Pending-release tickets without milestone</a>") +# check that GitHub issues are in the correct status +content += createTableRow("", "<a href=\"https://github.com/vaadin/framework/issues?q=is%3Aclosed+sort%3Aupdated-desc\">Check that closed GitHub issues have correct milestone</a>") content += createTableRow("", "<h2>Preparations before publishing</h2>") -# close trac milestone -content += createTableRow("", "<a href=\"https://dev.vaadin.com/milestone/Vaadin {version}\">Close Trac Milestone (deselect \"retarget tickets\")</a>".format(version=args.version)) -# verify pending release tickets still have milestone -content += createTableRow("", "<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>".format(version=args.version)) +# close GitHub milestone +content += createTableRow("", "<a href=\"https://github.com/vaadin/framework/milestones\">Close GitHub Milestone</a>" # link to build dependencies tab to initiate publish step content += createTableRow("", "<a href=\"http://{}/viewLog.html?buildId={}&buildTypeId={}&tab=dependencies\"><h2>Start Publish Release from dependencies tab</h2></a>".format(args.teamcityUrl, args.buildId, args.buildTypeId)) diff --git a/scripts/GeneratePostPublishReport.py b/scripts/GeneratePostPublishReport.py index a8fbbb705f..c496debb61 100644 --- a/scripts/GeneratePostPublishReport.py +++ b/scripts/GeneratePostPublishReport.py @@ -13,6 +13,10 @@ buildResultUrl = "http://{}/viewLog.html?buildId={}&tab=buildResultsDiv&buildTyp (major, minor, maintenance) = args.version.split(".", 2) prerelease = "." in maintenance +def checkUrlStatus(url): + r = requests.get(url) + return r.status_code == 200 + def createTableRow(*columns): html = "<tr>" for column in columns: @@ -21,13 +25,13 @@ def createTableRow(*columns): traffic_light = "<svg width=\"20px\" height=\"20px\" style=\"padding-right:5px\"><circle cx=\"10\" cy=\"10\" r=\"10\" fill=\"{color}\"/></svg>" -content = "<html><head></head><body><table>" +def getTrafficLight(b): + return traffic_light.format(color="green") if b else traffic_light.format(color="red") -# Batch update tickets in trac -content += createTableRow("", "<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>") +content = "<html><head></head><body><table>" -# Create milestone for next release -content += createTableRow("", "<a href=\"https://dev.vaadin.com/milestone?action=new\">Create milestone for next release</a>") +tagOk = checkUrlStatus("https://github.com/vaadin/framework/releases/tag/{ver}".format(ver=args.version)) +content += createTableRow(getTrafficLight(tagOk), "Tag ok on github.com") # Tag and pin build content += createTableRow("", "<a href=\"{url}\">Tag and pin build</a>".format(url=buildResultUrl)) diff --git a/scripts/GeneratePublishReportPart1.py b/scripts/GeneratePublishReportPart1.py index 7cb0e7989d..d3eda80284 100644 --- a/scripts/GeneratePublishReportPart1.py +++ b/scripts/GeneratePublishReportPart1.py @@ -65,9 +65,8 @@ content = """<html> <body> <table> <tr><td>{metadataOk}</td><td>Metadata ok on vaadin.com</td></tr> -<tr><td>{tagOk}</td><td>Tag ok on github.com</td></tr> <tr><td>{downloadPageOk}</td><td>Download folder on vaadin.com contains the version</td></tr> -""".format(metadataOk=getTrafficLight(metadataOk), tagOk=getTrafficLight(tagOk), downloadPageOk=getTrafficLight(downloadPageOk)) +""".format(metadataOk=getTrafficLight(metadataOk), downloadPageOk=getTrafficLight(downloadPageOk)) mavenUrl = "" if not prerelease: @@ -77,10 +76,7 @@ else: mavenUrl = "http://maven.vaadin.com/vaadin-prereleases/com/vaadin/vaadin-server/{ver}".format(ver=args.version) content += "<tr><td></td><td><a href='{mvnUrl}'>Check {ver} is published as prerelease to maven.vaadin.com</td></tr>".format(ver=args.version, mvnUrl=mavenUrl) -content += "<tr><td></td><td><a href=\"https://dev.vaadin.com/admin/ticket/versions\">Add version {version} to Trac</a></td></tr>".format(version=args.version) - -if not prerelease: - content += '<tr><td></td><td><a href="https://dev.vaadin.com/admin/ticket/versions">Set latest version to default</a></td></tr>' +content += "<tr><td></td><td><a href=\"https://github.com/vaadin/framework/milestones\">Create milestone for next version in GitHub</a></td></tr>" content += """ <tr><td></td><td><a href="http://test.vaadin.com/{version}/run/LabelModes?restartApplication">Verify uploaded to test.vaadin.com</a></td></tr> |