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

Adm-897 [frontend]: hide retry button #111

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
7d7e852
ADM-898[backend][frontend]: feat: block' in board mapping is mutually…
yulongcai Apr 12, 2024
6b43c85
ADM-919[backend] : Speed up the generating of pipeline data in repor…
yulongcai Apr 12, 2024
26a2bbb
chore(deps): update dependency node to v20 (#1375)[docs]
renovate[bot] Apr 14, 2024
598975e
fix(deps): update dependency @emotion/styled to v11.11.5 (#1363)
renovate[bot] Apr 14, 2024
c6f64b1
fix(deps): update dependency @reduxjs/toolkit to v2.2.3 (#1364)
renovate[bot] Apr 14, 2024
578e1c4
fix(deps): update dependency org.springframework:spring-core to v6.1.…
renovate[bot] Apr 14, 2024
26af590
fix(deps): update dependency typescript to v5.4.5 (#1366)
renovate[bot] Apr 15, 2024
221a062
fix(deps): update dependency vite to v5.2.8 (#1367)
renovate[bot] Apr 15, 2024
d223672
ADM-898: [frontend] fix: fix flag card logic (#1377)
TingyuDong Apr 15, 2024
2e9711d
ADM-878:[frontend]feature: add chart API ability for metrics board co…
weiraneve Apr 15, 2024
9411cd9
ADM-919:[backend] feat: delete fetch author from GitHub (#1379)
yulongcai Apr 15, 2024
d8c3fea
ADM-878:[frontend]refactor: rename date range (#1381)
weiraneve Apr 15, 2024
22590c5
ADM-919:[backend] fix: set code committer is null when author is null…
yulongcai Apr 15, 2024
f465952
fix(deps): update dependency org.yaml:snakeyaml to v2.2 (#1373)[backend]
renovate[bot] Apr 15, 2024
05ad6a7
chore(deps): update dependency prettier-plugin-sort-imports to v1.8.5…
renovate[bot] Apr 15, 2024
aa9a2d2
fix(deps): update material-ui monorepo (#1368)
renovate[bot] Apr 15, 2024
c59344e
Adm 889 - remove some 'name' column in DORA Metrics Detail page (#1380)
Rui7ing Apr 16, 2024
f8c0323
chore(deps): bump gradle/wrapper-validation-action from 2 to 3 (#1384)
dependabot[bot] Apr 17, 2024
aebbd87
fix(deps): [backend]update dependency org.springframework.cloud:sprin…
renovate[bot] Apr 18, 2024
cf74ad2
chore(deps): update plugin com.github.jk1.dependency-license-report t…
renovate[bot] Apr 18, 2024
de335b1
fix(deps): update dependency org.springdoc:springdoc-openapi-starter-…
renovate[bot] Apr 18, 2024
935faf2
Revert "fix(deps): [backend]update dependency org.springframework.clo…
guzhongren Apr 18, 2024
fea3c9a
ADM-898:[backend] fix: fix bug for exist block column when choose fla…
yulongcai Apr 18, 2024
7ea514e
Adm-909[frontend] sort time range (#1378)
pfpatrick Apr 18, 2024
409a892
Revert "Adm-909[frontend] sort time range (#1378)"
pfpatrick Apr 18, 2024
b9f0ea8
Adm-909[frontend] sort time range (#1394)
pfpatrick Apr 19, 2024
6984484
ADM-913 [frontend]:receive multiple time ranges in metrics page- pipe…
Leiqiuhong Apr 19, 2024
bb3e0b9
ADM-914:[backend][frontend] feat: set file name with time range when …
yulongcai Apr 19, 2024
50289f0
fix(e2e): fix e2e case
guzhongren Apr 19, 2024
4c4750a
chore(deps): bump gradle/gradle-build-action from 3.2.1 to 3.3.0 (#1383)
dependabot[bot] Apr 20, 2024
f643b86
ADM-913: [frontend] fix: improve test covarage (#1395)
neomgb Apr 21, 2024
5bd7e1b
chore(deps): update plugin org.sonarqube to v5 (#1400)[backend]
renovate[bot] Apr 21, 2024
6a04175
fix security issue according sonar (#1405)
yulongcai Apr 22, 2024
5628bea
chore(deps): update dependency license-compliance to v3 (#1399)[front…
renovate[bot] Apr 22, 2024
a1254fb
AMD-902 [frontend] feat: pipeline configuration need to retain modifi…
neomgb Apr 23, 2024
99274b4
fix(deps): update dependency org.awaitility:awaitility to v4 (#1402)[…
renovate[bot] Apr 23, 2024
6a20213
fix(trivy):ignore trivy[backend]
guzhongren Apr 23, 2024
527e16d
fix(playwright): update e2e base image
guzhongren Apr 24, 2024
79a8ee4
fix(deps): update dependency pmd to v7 (#1403)[backend]
renovate[bot] Apr 24, 2024
9462ea9
chore(deps): bump gradle/gradle-build-action from 3.3.0 to 3.3.1 (#1406)
dependabot[bot] Apr 25, 2024
76932ad
fix(deps): update dependency remark-smartypants to v3 (#1404)[docs]
renovate[bot] Apr 25, 2024
4017224
fix(deps): update dependency @astrojs/check to v0.5.10 (#1397)[docs]
renovate[bot] Apr 25, 2024
7fa4296
chore(deps): update pnpm to v9 (#1401) [docs]
renovate[bot] Apr 26, 2024
87705ba
ADM-927:[frontend]feat: add metrics board and pipeline failed status …
weiraneve Apr 26, 2024
dca98d2
Feat/form management config (#1409)
mrcuriosity-tw Apr 26, 2024
7db10fc
[ADM-887] fix: adjust the aria-label selector to fix the e2e test. (#…
mrcuriosity-tw Apr 26, 2024
b4e7b53
[ADM-887]: adjust unique selector to fix the e2e. (#1412)
mrcuriosity-tw Apr 26, 2024
94f7fd2
chore(deps): update dependency @astrojs/sitemap to v3.1.4 (#1413)[docs]
renovate[bot] Apr 27, 2024
aa00ead
chore(deps): update dependency eslint-plugin-n to v17 (#1398)[frontend]
renovate[bot] Apr 27, 2024
4bfb189
ADM-926:[frontend]feat: add e2e test for charting (#1419)
yulongcai Apr 28, 2024
faf9ede
ADM 927: [frontend] Fix code smell and message text color (#1420)
PengxiWPix Apr 28, 2024
8760abf
ADM-926-fix:[frontend] fix: add two time range to test (#1421)
yulongcai Apr 29, 2024
a0c4367
ADM-926-fix:[frontend] fix: add mapping in generate config file (#1422)
yulongcai Apr 29, 2024
d112ac8
ci(e2e): speedup e2e
guzhongren Apr 29, 2024
6c7b877
fix(e2e): format
guzhongren Apr 29, 2024
4386632
Adm 937[backend][frontend]: Pipeline crew setting could filter out de…
zhou-yinyuan Apr 30, 2024
0684495
chore(deps): update gradle/gradle-build-action action to v3.3.2 (#1416)
renovate[bot] Apr 30, 2024
3f82e95
fix(deps): update dependency @emotion/styled to v11.11.5 (#1417)[fron…
renovate[bot] Apr 30, 2024
6f99b2c
chore(deps): update dependency prettier-plugin-sort-imports to v1.8.5…
renovate[bot] Apr 30, 2024
d3e5697
ADM-879 [frontend] Generate data reports for multiple time ranges (#1…
Leiqiuhong Apr 30, 2024
79fe2d6
Adm-879-fix [frontend]: fix the notification close logic (#1426)
Leiqiuhong Apr 30, 2024
dae9844
chore(deps): update dependency msw to v2 (#1374)[frontend]
renovate[bot] May 3, 2024
bf12a13
Upgrade[frontend] (#1428)
guzhongren May 3, 2024
702a3ae
ADM-879-hide-retry feat: hide retry button
Leiqiuhong May 6, 2024
44ff987
ADM-879-hide-retry feat: add image into trivyignore
Leiqiuhong May 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
java-version: ${{ vars.JAVA_VERSION || 19 }}
distribution: "adopt"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
uses: gradle/wrapper-validation-action@v3
- name: Set up Gradle
uses: gradle/gradle-build-action@v3.2.1
uses: gradle/gradle-build-action@v3.3.2
- name: Build
run: ./gradlew clean build
- uses: actions/upload-artifact@v4
Expand Down
167 changes: 140 additions & 27 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ jobs:
java-version: ${{ vars.JAVA_VERSION }}
distribution: "adopt"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
uses: gradle/wrapper-validation-action@v3
- name: Set up Gradle
uses: gradle/gradle-build-action@v3.2.1
uses: gradle/gradle-build-action@v3.3.2
- name: Test and check
run: ./gradlew clean check
- name: Build
Expand All @@ -118,9 +118,9 @@ jobs:
java-version: ${{ vars.JAVA_VERSION }}
distribution: "adopt"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
uses: gradle/wrapper-validation-action@v3
- name: Set up Gradle
uses: gradle/gradle-build-action@v3.2.1
uses: gradle/gradle-build-action@v3.3.2
- name: License check
run: ./gradlew clean checkLicense
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -446,59 +446,172 @@ jobs:
# export SPRING_PROFILES_ACTIVE="e2e"
# docker-compose up -d frontend

e2e:
runs-on: ubuntu-latest
buildkite-check:
runs-on: macos-latest
needs:
- deploy-e2e
container:
image: mcr.microsoft.com/playwright:latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
node-version: ${{ vars.NODE_VERSION }}
- name: Install
run: |
npm install -g pnpm
- name: Set env
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Install shell deps
run: |
apt-get update && apt-get install -y jq
jq --version
- name: Check e2e deployment
env:
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
COMMIT_SHA: ${{ github.sha }}
run: ./ops/check.sh buildkite-e2e-deployed

e2e-google-chrome:
runs-on: macos-latest
needs:
- buildkite-check
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install
run: |
npm install -g pnpm
- name: Run E2E
env:
APP_ORIGIN: ${{ vars.APP_HTTP_SCHEDULE }}://${{ secrets.AWS_EC2_IP_E2E }}:${{ secrets.AWS_EC2_IP_E2E_FRONTEND_PORT }}
E2E_TOKEN_JIRA: ${{ secrets.E2E_TOKEN_JIRA }}
E2E_TOKEN_BUILD_KITE: ${{ secrets.E2E_TOKEN_BUILD_KITE }}
E2E_TOKEN_GITHUB: ${{ secrets.E2E_TOKEN_GITHUB }}
E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE: ${{ secrets.E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE }}
E2E_PROJECT: "Google Chrome"
shell: bash {0}
run: ./ops/check.sh e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
name: playwright-report-google-chrome
path: frontend/e2e/reports/
retention-days: 30
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2

e2e-microsoft-edge:
runs-on: macos-latest
env:
E2E_PLATFORM: "Microsoft Edge"
needs:
- buildkite-check
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install
run: |
npm install -g pnpm
- name: Run E2E
env:
APP_ORIGIN: ${{ vars.APP_HTTP_SCHEDULE }}://${{ secrets.AWS_EC2_IP_E2E }}:${{ secrets.AWS_EC2_IP_E2E_FRONTEND_PORT }}
E2E_TOKEN_JIRA: ${{ secrets.E2E_TOKEN_JIRA }}
E2E_TOKEN_BUILD_KITE: ${{ secrets.E2E_TOKEN_BUILD_KITE }}
E2E_TOKEN_GITHUB: ${{ secrets.E2E_TOKEN_GITHUB }}
E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE: ${{ secrets.E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE }}
E2E_PROJECT: ${{ env.E2E_PLATFORM }}
shell: bash {0}
run: ./ops/check.sh e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ env.E2E_PLATFORM }}
path: frontend/e2e/reports/
retention-days: 30

e2e-webkit:
runs-on: macos-latest
env:
E2E_PLATFORM: webkit
needs:
- buildkite-check
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install
run: |
npm install -g pnpm

- name: Run E2E
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON_EMOJI: ":heart-beat:"
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: "Heartbeat E2E Status"
APP_ORIGIN: ${{ vars.APP_HTTP_SCHEDULE }}://${{ secrets.AWS_EC2_IP_E2E }}:${{ secrets.AWS_EC2_IP_E2E_FRONTEND_PORT }}
E2E_TOKEN_JIRA: ${{ secrets.E2E_TOKEN_JIRA }}
E2E_TOKEN_BUILD_KITE: ${{ secrets.E2E_TOKEN_BUILD_KITE }}
E2E_TOKEN_GITHUB: ${{ secrets.E2E_TOKEN_GITHUB }}
E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE: ${{ secrets.E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE }}
E2E_PROJECT: ${{ env.E2E_PLATFORM }}
shell: bash {0}
run: ./ops/check.sh e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ env.E2E_PLATFORM }}
path: frontend/e2e/reports/
retention-days: 30

e2e-firefox:
runs-on: macos-latest
env:
E2E_PLATFORM: firefox
needs:
- buildkite-check
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install
run: |
npm install -g pnpm

- name: Run E2E
env:
APP_ORIGIN: ${{ vars.APP_HTTP_SCHEDULE }}://${{ secrets.AWS_EC2_IP_E2E }}:${{ secrets.AWS_EC2_IP_E2E_FRONTEND_PORT }}
E2E_TOKEN_JIRA: ${{ secrets.E2E_TOKEN_JIRA }}
E2E_TOKEN_BUILD_KITE: ${{ secrets.E2E_TOKEN_BUILD_KITE }}
E2E_TOKEN_GITHUB: ${{ secrets.E2E_TOKEN_GITHUB }}
E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE: ${{ secrets.E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE }}
E2E_PROJECT: ${{ env.E2E_PLATFORM }}
shell: bash {0}
run: ./ops/check.sh e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ env.E2E_PLATFORM }}
path: frontend/e2e/reports/
retention-days: 30

e2e-chromium:
runs-on: macos-latest
env:
E2E_PLATFORM: chromium
needs:
- buildkite-check
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install
run: |
npm install -g pnpm
- name: Run E2E
env:
APP_ORIGIN: ${{ vars.APP_HTTP_SCHEDULE }}://${{ secrets.AWS_EC2_IP_E2E }}:${{ secrets.AWS_EC2_IP_E2E_FRONTEND_PORT }}
E2E_TOKEN_JIRA: ${{ secrets.E2E_TOKEN_JIRA }}
E2E_TOKEN_BUILD_KITE: ${{ secrets.E2E_TOKEN_BUILD_KITE }}
E2E_TOKEN_GITHUB: ${{ secrets.E2E_TOKEN_GITHUB }}
E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE: ${{ secrets.E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILDKITE }}
E2E_PROJECT: ${{ env.E2E_PLATFORM }}
shell: bash {0}
run: ./ops/check.sh e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ env.E2E_PLATFORM }}
path: frontend/e2e/reports/
retention-days: 30

deploy:
runs-on: ubuntu-latest
needs:
- e2e
- e2e-chromium
- e2e-webkit
- e2e-firefox
- e2e-microsoft-edge
- e2e-google-chrome
steps:
- name: Checkout repo
# uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ CVE-2024-0567
CVE-2024-22201
CVE-2024-22259
CVE-2024-28085
CVE-2024-22262
CVE-2024-2961
CVE-2024-33599
CVE-2019-10744
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ _Image 3-19,Settings for Pipeline_
They are sharing the similar settings which you need to specify the pipeline step so that Heartbeat will know in which pipeline and step, team consider it as deploy to PROD. So that we could use it to calculate metrics.

| Items | Description |
| ------------- --|----------------------------------------------------------------- |
|---------------|---------------------------------------------------|
| Organization | The organization for your pipelines |
| Pipeline Name | Your pipeline name |
| Steps | The pipeline step that consider as deploy to PROD || Branches | Your selected branches |
| Steps | The pipeline step that consider as deploy to PROD |
| Branches | Your selected branches |
| Crew setting | Your selected author from github |

## 3.3 Export and import config info

Expand Down
11 changes: 6 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,12 @@ _Image 3-6,Classification Settings_
![Image 3-7](https://user-images.githubusercontent.com/995849/89784260-f6a08800-db4a-11ea-8ce2-87983363aa18.png)\
_Image 3-7,Settings for Pipeline_

| Items | Description |
| ------------- | ------------------------ |
| Organization | 您的部署流水线所属的组织 |
| Pipeline Name | 您的流水线名 |
| Steps | 流水线步骤名 |
| Items | Description |
| ------------- |--------------|
| Organization | 你的部署流水线所属的组织 |
| Pipeline Name | 你的流水线名 |
| Steps | 流水线步骤名 |
| Crew setting | 代码提交者 |

## 3.2 导入导出配置信息

Expand Down
14 changes: 7 additions & 7 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {
id 'org.springframework.boot' version '3.1.9'
id 'io.spring.dependency-management' version '1.1.4'
id "io.spring.javaformat" version "0.0.41"
id 'com.github.jk1.dependency-license-report' version '2.6'
id "org.sonarqube" version "4.4.1.3373"
id 'com.github.jk1.dependency-license-report' version '2.7'
id "org.sonarqube" version "5.0.0.4638"
}

group = 'com.tw'
Expand All @@ -29,15 +29,15 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework:spring-core:6.1.5'
implementation 'org.springframework:spring-core:6.1.6'
implementation("org.springframework.cloud:spring-cloud-starter-openfeign:4.0.2") {
exclude group: 'commons-fileupload', module: 'commons-fileupload'
}
implementation ("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.4") {
implementation ("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0") {
exclude group: 'org.yaml', module: 'snakeyaml'
}
implementation 'commons-fileupload:commons-fileupload:1.5'
implementation 'org.yaml:snakeyaml:2.0'
implementation 'org.yaml:snakeyaml:2.2'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.ehcache:ehcache:3.10.8'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
Expand All @@ -51,7 +51,7 @@ dependencies {
testAnnotationProcessor 'org.projectlombok:lombok:1.18.32'
implementation 'com.opencsv:opencsv:5.9'
implementation 'org.apache.commons:commons-text:1.11.0'
implementation 'org.awaitility:awaitility:3.1.6'
implementation 'org.awaitility:awaitility:4.2.1'
}

tasks.named('test') {
Expand All @@ -63,7 +63,7 @@ tasks.named('test') {
}

pmd {
toolVersion = '6.55.0'
toolVersion = '7.0.0'
ruleSets = ['java-basic']
ruleSetConfig = resources.text.fromFile("src/main/resources/pmd.xml")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,19 @@ public class LeadTime {

private long jobFinishTime;

private long jobStartTime;

@Nullable
private Long noPRCommitTime;

@Nullable
private Long firstCommitTime;

private long pipelineCreateTime;

@Nullable
private Boolean isRevert;

@Nullable
private Long prLeadTime;

Expand Down
Loading
Loading