Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TT-9493] Detect breaking changes with github action #5370

Merged
merged 25 commits into from
Aug 23, 2023

Conversation

titpetric
Copy link
Contributor

@titpetric titpetric commented Jul 27, 2023

TT-9493
Summary BE/Go: Detect breaking changes with go doc
Type Story Story
Status In Dev
Points N/A
Labels -

This PR creates a github action that compares the output of godoc for the PR, against base_ref. This surfaces any API change, including documentation changes.

As an example, log.Flatten was moved under internal/maps package, demonstrating the resulting comment.

The action only creates or updates 1 comment on the PR.

https://tyktech.atlassian.net/browse/TT-9493

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 27, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit:
Triggered by: pull_request (@titpetric)
Execution page

@TykTechnologies TykTechnologies deleted a comment from github-actions bot Jul 27, 2023
@TykTechnologies TykTechnologies deleted a comment from github-actions bot Jul 27, 2023
@TykTechnologies TykTechnologies deleted a comment from github-actions bot Jul 27, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 27, 2023

API Changes

--- prev.txt	2023-08-22 21:04:43.182448557 +0000
+++ current.txt	2023-08-22 21:04:36.866427018 +0000
@@ -9762,6 +9762,19 @@
 func TransferEncoding(req *http.Request) string
     TransferEncoding gets the header value from the request.
 
+# Package: ./internal/maps
+
+package maps // import "github.com/TykTechnologies/tyk/internal/maps"
+
+
+TYPES
+
+type FlatMap map[string]string
+    FlatMap is alias of map[string]string.
+
+func Flatten(data map[string]interface{}) (flatmap FlatMap, err error)
+    Flatten transforms deep map to flat map.
+
 # Package: ./internal/middleware
 
 package middleware // import "github.com/TykTechnologies/tyk/internal/middleware"
@@ -9890,12 +9903,6 @@
 
 TYPES
 
-type FlatMap map[string]string
-    FlatMap is alias of map[string]string
-
-func Flatten(data map[string]interface{}) (flatmap FlatMap, err error)
-    Flatten transform complex map to flatten map
-
 type RawFormatter struct{}
 
 func (f *RawFormatter) Format(entry *logrus.Entry) ([]byte, error)

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 27, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: c6edc8d
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 27, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 6b3c54c
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 27, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: d6fe061
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 27, 2023

API tests result: failure 🚫
Branch used: refs/pull/5370/merge
Commit: 6a91aca
Triggered by: pull_request (@titpetric)
Execution page

@titpetric titpetric changed the title Detect breaking changes with github action [TT-9493] Detect breaking changes with github action Jul 27, 2023
@TykTechnologies TykTechnologies deleted a comment from github-actions bot Jul 27, 2023
@TykTechnologies TykTechnologies deleted a comment from Tyk-ITS Jul 27, 2023
@TykTechnologies TykTechnologies deleted a comment from Tyk-ITS Jul 27, 2023
@TykTechnologies TykTechnologies deleted a comment from Tyk-ITS Jul 27, 2023
@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 27, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 4aa216f
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 28, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: a1dc7a1
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jul 28, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 8815c6d
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS Tyk-ITS added the Story label Aug 22, 2023
@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

5 similar comments
@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 579daab
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: ebdb6d9
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: b8feff8
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 92d502e
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: b0f454d
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 7e8c51f
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 971290a
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 59c47c1
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

I'm a bot and I 👍 this PR title. 🤖

@sonarcloud
Copy link

sonarcloud bot commented Aug 22, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 388b501
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 22, 2023

API tests result: success
Branch used: refs/pull/5370/merge
Commit: 43dda95
Triggered by: pull_request (@titpetric)
Execution page

@titpetric titpetric merged commit 863f695 into master Aug 23, 2023
16 of 22 checks passed
@titpetric titpetric deleted the improvement/detect-go-api-changes branch August 23, 2023 08:48
@titpetric
Copy link
Contributor Author

/release to release-5.2

@titpetric
Copy link
Contributor Author

/release to release-5-lts

@tykbot
Copy link

tykbot bot commented Aug 23, 2023

Working on it! Note that it can take a few minutes.

tykbot bot pushed a commit that referenced this pull request Aug 23, 2023
<details open>
<summary><a href="https://tyktech.atlassian.net/browse/TT-9493"
title="TT-9493" target="_blank">TT-9493</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
      <td>BE/Go: Detect breaking changes with go doc</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Story"
src="https://tyktech.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium"
/>
        Story
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>In Dev</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
  do not remove this marker as it will break jira-lint's functionality.
  added_by_jira_lint
-->

---

This PR creates a github action that compares the output of godoc for
the PR, against base_ref. This surfaces any API change, including
documentation changes.

As an example, `log.Flatten` was moved under `internal/maps` package,
demonstrating the resulting comment.

The action only creates or updates 1 comment on the PR.

https://tyktech.atlassian.net/browse/TT-9493

---------

Co-authored-by: Tit Petric <tit@tyk.io>

(cherry picked from commit 863f695)
@tykbot
Copy link

tykbot bot commented Aug 23, 2023

@titpetric Succesfully merged PR

@titpetric
Copy link
Contributor Author

/release to release-5.2

@tykbot
Copy link

tykbot bot commented Aug 23, 2023

Working on it! Note that it can take a few minutes.

@tykbot
Copy link

tykbot bot commented Aug 23, 2023

@titpetric Succesfully merged PR

tykbot bot pushed a commit that referenced this pull request Aug 23, 2023
<details open>
<summary><a href="https://tyktech.atlassian.net/browse/TT-9493"
title="TT-9493" target="_blank">TT-9493</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
      <td>BE/Go: Detect breaking changes with go doc</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Story"
src="https://tyktech.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium"
/>
        Story
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>In Dev</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
  do not remove this marker as it will break jira-lint's functionality.
  added_by_jira_lint
-->

---

This PR creates a github action that compares the output of godoc for
the PR, against base_ref. This surfaces any API change, including
documentation changes.

As an example, `log.Flatten` was moved under `internal/maps` package,
demonstrating the resulting comment.

The action only creates or updates 1 comment on the PR.

https://tyktech.atlassian.net/browse/TT-9493

---------

Co-authored-by: Tit Petric <tit@tyk.io>

(cherry picked from commit 863f695)
buger added a commit that referenced this pull request Aug 23, 2023
…ub action (#5370)

[TT-9493] Detect breaking changes with github action (#5370)

<details open>
<summary><a href="https://tyktech.atlassian.net/browse/TT-9493"
title="TT-9493" target="_blank">TT-9493</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
      <td>BE/Go: Detect breaking changes with go doc</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Story"
src="https://tyktech.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium"
/>
        Story
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>In Dev</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
  do not remove this marker as it will break jira-lint's functionality.
  added_by_jira_lint
-->

---

This PR creates a github action that compares the output of godoc for
the PR, against base_ref. This surfaces any API change, including
documentation changes.

As an example, `log.Flatten` was moved under `internal/maps` package,
demonstrating the resulting comment.

The action only creates or updates 1 comment on the PR.

https://tyktech.atlassian.net/browse/TT-9493

---------

Co-authored-by: Tit Petric <tit@tyk.io>
buger added a commit that referenced this pull request Aug 23, 2023
… action (#5370)

[TT-9493] Detect breaking changes with github action (#5370)

<details open>
<summary><a href="https://tyktech.atlassian.net/browse/TT-9493"
title="TT-9493" target="_blank">TT-9493</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
      <td>BE/Go: Detect breaking changes with go doc</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Story"
src="https://tyktech.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium"
/>
        Story
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>In Dev</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
  do not remove this marker as it will break jira-lint's functionality.
  added_by_jira_lint
-->

---

This PR creates a github action that compares the output of godoc for
the PR, against base_ref. This surfaces any API change, including
documentation changes.

As an example, `log.Flatten` was moved under `internal/maps` package,
demonstrating the resulting comment.

The action only creates or updates 1 comment on the PR.

https://tyktech.atlassian.net/browse/TT-9493

---------

Co-authored-by: Tit Petric <tit@tyk.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants