You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2015/07/02 05:23:22 UTC

[1/2] trafficserver git commit: TS-3732: Add changelog make target to rel-candidate and improve error handling

Repository: trafficserver
Updated Branches:
  refs/heads/master a2eb53553 -> 7b0a57f43


TS-3732: Add changelog make target to rel-candidate and improve error handling


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/29b439c1
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/29b439c1
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/29b439c1

Branch: refs/heads/master
Commit: 29b439c19b20f851df42de20007dd0ea76b572dd
Parents: a2eb535
Author: Phil Sorber <so...@apache.org>
Authored: Wed Jul 1 21:17:57 2015 -0600
Committer: Phil Sorber <so...@apache.org>
Committed: Wed Jul 1 21:17:57 2015 -0600

----------------------------------------------------------------------
 Makefile.am        |  4 ++--
 tools/changelog.pl | 13 +++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/29b439c1/Makefile.am
----------------------------------------------------------------------
diff --git a/Makefile.am b/Makefile.am
index ac1cf04..078cfc1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,7 +55,7 @@ doxygen:
 
 changelog:
 	./tools/changelog.pl $(VERSION) > CHANGELOG-$(VERSION)
-	git add CHANGELOG-$(VERSION) && git commit -m "Adding CHANGELOG-$(VERSION)"
+	-git add CHANGELOG-$(VERSION) && git commit -m "Adding CHANGELOG-$(VERSION)"
 
 asf-dist: asf-distdir
 	tardir=$(distdir) && $(am__tar) --mtime=./configure.ac | bzip2 -9 -c >$(distdir).tar.bz2
@@ -84,7 +84,7 @@ asf-dist-sign-rc: asf-dist-rc
 release: changelog asf-dist-sign
 	git tag -fs -m "Release $(VERSION)" $(VERSION)
 
-rel-candidate: asf-dist-sign-rc
+rel-candidate: changelog asf-dist-sign-rc
 	git tag -fs -m "Release Candidate $(VERSION)-rc$(RC)" $(VERSION)-rc$(RC)
 
 examples: all

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/29b439c1/tools/changelog.pl
----------------------------------------------------------------------
diff --git a/tools/changelog.pl b/tools/changelog.pl
index c3d0173..2b400a4 100755
--- a/tools/changelog.pl
+++ b/tools/changelog.pl
@@ -52,8 +52,7 @@ sub jira_search
   $curl->setopt(CURLOPT_WRITEDATA, \$resp_body);
   $curl->setopt(CURLOPT_URL, $url . $endpoint);
   my $retcode = $curl->perform();
-  if ($retcode == 0) {
-    my $response_code = $curl->getinfo(CURLINFO_HTTP_CODE);
+  if ($retcode == 0 && $curl->getinfo(CURLINFO_HTTP_CODE) == 200) {
     return from_json($resp_body);
   }
 
@@ -68,6 +67,11 @@ do
 {
   $issues = jira_search($url, $jql, $count);
 
+  if (!defined($issues))
+  {
+    exit 1;
+  }
+
   foreach my $issue (@{ $issues->{issues} })
   {
     if (defined($issue))
@@ -79,6 +83,11 @@ do
 }
 while ($count < $issues->{total});
 
+if (!defined($changelog))
+{
+  exit 1;
+}
+
 print "                                                         -*- coding: utf-8 -*-\n\n";
 print "Changes with Apache Traffic Server $fixversion\n";
 


[2/2] trafficserver git commit: TS-3730: Fix changelog.pl for backward compatibility

Posted by so...@apache.org.
TS-3730: Fix changelog.pl for backward compatibility


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/7b0a57f4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7b0a57f4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7b0a57f4

Branch: refs/heads/master
Commit: 7b0a57f434a9d64ce2eb81a04eef1ebc3402ccc7
Parents: 29b439c
Author: Gota Adachi <ad...@iij.ad.jp>
Authored: Wed Jul 1 21:22:08 2015 -0600
Committer: Phil Sorber <so...@apache.org>
Committed: Wed Jul 1 21:22:08 2015 -0600

----------------------------------------------------------------------
 tools/changelog.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7b0a57f4/tools/changelog.pl
----------------------------------------------------------------------
diff --git a/tools/changelog.pl b/tools/changelog.pl
index 2b400a4..93ed023 100755
--- a/tools/changelog.pl
+++ b/tools/changelog.pl
@@ -49,7 +49,8 @@ sub jira_search
   $curl->setopt(CURLOPT_POST, 1);
   $curl->setopt(CURLOPT_POSTFIELDS, $req_body);
   $curl->setopt(CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
-  $curl->setopt(CURLOPT_WRITEDATA, \$resp_body);
+  open(my $fileb, ">", \$resp_body);
+  $curl->setopt(CURLOPT_WRITEDATA, $fileb);
   $curl->setopt(CURLOPT_URL, $url . $endpoint);
   my $retcode = $curl->perform();
   if ($retcode == 0 && $curl->getinfo(CURLINFO_HTTP_CODE) == 200) {