Change in bazel[master]: Do not put PiperOrigin-RevId tak into relnotes

133 views
Skip to first unread message

Marcel Hlopko (Gerrit)

unread,
May 4, 2017, 8:17:22 AM5/4/17
to bazel-de...@googlegroups.com

Marcel Hlopko has uploaded this change for review.

View Change

Do not put PiperOrigin-RevId tak into relnotes

Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
---
M scripts/release/relnotes.sh
M scripts/release/relnotes_test.sh
2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/scripts/release/relnotes.sh b/scripts/release/relnotes.sh
index aed0b5c..817ea62 100755
--- a/scripts/release/relnotes.sh
+++ b/scripts/release/relnotes.sh
@@ -77,7 +77,13 @@
# RELNOTES_NEW for new features changes
# RELNOTES for other changes
function extract_release_note() {
- local relnote="$(git show -s $1 --pretty=format:%B | awk '/^RELNOTES(\[[^\]]+\])?:/,/^$/')"
+ local find_relnote_awk_script="
+ BEGIN { in_relnote = 0 }
+ /^$/ { in_relnote = 0 }
+ /^PiperOrigin-RevId:.*$/ { in_relnote = 0 }
+ /^RELNOTES(\[[^\]]+\])?:/ { in_relnote = 1 }
+ { if (in_relnote) { print } }"
+ local relnote="$(git show -s $1 --pretty=format:%B | awk "${find_relnote_awk_script}")"
local regex="^RELNOTES(\[([a-zA-Z]*)\])?:[[:space:]]*([^[:space:]].*[^[:space:]])[[:space:]]*$"
if [[ "$relnote" =~ $regex ]]; then
local relnote_kind=${BASH_REMATCH[2]}
diff --git a/scripts/release/relnotes_test.sh b/scripts/release/relnotes_test.sh
index 56278b1..0cf42b4 100755
--- a/scripts/release/relnotes_test.sh
+++ b/scripts/release/relnotes_test.sh
@@ -224,4 +224,18 @@
assert_equals "$expected" "$actual"
}

+function test_extract_release_note_for_pre_copybara_commits() {
+ local expected='added --with_aspect_deps to blaze query, that prints additional information about aspects of target when --output is set to {xml, proto, record}.'
+ extract_release_note 14d905b5cce9a1bbc2911331809b03679b23dad1
+ local actual=$(printf "%s\n" "${RELNOTES_NEW[@]}")
+ assert_equals "${expected}" "${actual}"
+}
+
+function test_extract_release_note_for_post_copybara_commits() {
+ local expected="'output_groups' and 'instrumented_files' cannot be specified in DefaultInfo."
+ extract_release_note e788964a6ebc2c4966456ac74044f4f44a126fe5
+ local actual=$(printf "%s\n" "${RELNOTES_[@]}")
+ assert_equals "${expected}" "${actual}"
+}
+
run_suite "Release notes generation tests"

To view, visit change 10793. To unsubscribe, visit settings.

Gerrit-Project: bazel
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
Gerrit-Change-Number: 10793
Gerrit-PatchSet: 1
Gerrit-Owner: Marcel Hlopko <hlo...@google.com>

Marcel Hlopko (Gerrit)

unread,
May 4, 2017, 8:17:56 AM5/4/17
to Damien Martin-guillerez

Marcel Hlopko posted comments on this change.

View Change

Patch set 1:

Ptal

    To view, visit change 10793. To unsubscribe, visit settings.

    Gerrit-Project: bazel
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
    Gerrit-Change-Number: 10793
    Gerrit-PatchSet: 1
    Gerrit-Owner: Marcel Hlopko <hlo...@google.com>
    Gerrit-Reviewer: Damien Martin-guillerez <dmar...@google.com>
    Gerrit-Reviewer: Marcel Hlopko <hlo...@google.com>
    Gerrit-Comment-Date: Thu, 04 May 2017 12:17:52 +0000
    Gerrit-HasComments: No
    Gerrit-HasLabels: No

    Damien Martin-guillerez (Gerrit)

    unread,
    May 4, 2017, 8:23:24 AM5/4/17
    to Marcel Hlopko

    Damien Martin-guillerez posted comments on this change.

    View Change

    Patch set 1:Verified +1Code-Review +2

      To view, visit change 10793. To unsubscribe, visit settings.

      Gerrit-Project: bazel
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
      Gerrit-Change-Number: 10793
      Gerrit-PatchSet: 1
      Gerrit-Owner: Marcel Hlopko <hlo...@google.com>
      Gerrit-Reviewer: Damien Martin-guillerez <dmar...@google.com>
      Gerrit-Reviewer: Marcel Hlopko <hlo...@google.com>
      Gerrit-Comment-Date: Thu, 04 May 2017 12:23:22 +0000
      Gerrit-HasComments: No
      Gerrit-HasLabels: Yes

      Marcel Hlopko (Gerrit)

      unread,
      May 4, 2017, 9:25:14 AM5/4/17
      to Damien Martin-guillerez, Bazel CI

      Marcel Hlopko uploaded patch set #2 to this change.

      View Change

      Do not put PiperOrigin-RevId tag into relnotes


      Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
      ---
      M scripts/release/relnotes.sh
      M scripts/release/relnotes_test.sh
      2 files changed, 21 insertions(+), 1 deletion(-)

      To view, visit change 10793. To unsubscribe, visit settings.

      Gerrit-Project: bazel
      Gerrit-Branch: master
      Gerrit-MessageType: newpatchset
      Gerrit-Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
      Gerrit-Change-Number: 10793
      Gerrit-PatchSet: 2
      Gerrit-Owner: Marcel Hlopko <hlo...@google.com>
      Gerrit-Reviewer: Damien Martin-guillerez <dmar...@google.com>
      Gerrit-Reviewer: Marcel Hlopko <hlo...@google.com>
      Gerrit-CC: Bazel CI <ci.b...@gmail.com>

      Damien Martin-guillerez (Gerrit)

      unread,
      May 4, 2017, 11:01:19 AM5/4/17
      to Marcel Hlopko, Bazel CI

      Damien Martin-guillerez uploaded patch set #3 to the change originally created by Marcel Hlopko.

      View Change

      Do not put PiperOrigin-RevId tag into relnotes

      Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
      PiperOrigin-RevId: 155075510

      ---
      M scripts/release/relnotes.sh
      M scripts/release/relnotes_test.sh
      2 files changed, 21 insertions(+), 1 deletion(-)

      To view, visit change 10793. To unsubscribe, visit settings.

      Gerrit-Project: bazel
      Gerrit-Branch: master
      Gerrit-MessageType: newpatchset
      Gerrit-Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
      Gerrit-Change-Number: 10793
      Gerrit-PatchSet: 3
      Gerrit-Owner: Marcel Hlopko <hlo...@google.com>
      Gerrit-Reviewer: Bazel CI <ci.b...@gmail.com>

      Damien Martin-guillerez (Gerrit)

      unread,
      May 4, 2017, 11:01:19 AM5/4/17
      to Marcel Hlopko, Bazel CI

      Damien Martin-guillerez merged this change.

      View Change

      Approvals: Damien Martin-guillerez: Looks good to me, approved; Verified Objections: Bazel CI: Fails
      Do not put PiperOrigin-RevId tag into relnotes

      Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
      PiperOrigin-RevId: 155075510
      Gerrit-MessageType: merged
      Gerrit-Change-Id: If79da71d2939517724d92cbe470173b5d68e3019
      Gerrit-Change-Number: 10793
      Reply all
      Reply to author
      Forward
      0 new messages