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

Uat #131

Merged
merged 127 commits into from
Feb 7, 2024
Merged

Uat #131

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
f10823c
changing url database
SMANUM Nov 22, 2023
4e6d26c
changing url database
SMANUM Nov 22, 2023
1b2541a
changing url database
SMANUM Nov 22, 2023
ec737ab
changing deploy
SMANUM Nov 22, 2023
e0def8f
unit and integration tests (#55)
LuciaM1 Nov 24, 2023
3ae7d7f
rollback workflow resource (#56)
LuciaM1 Nov 24, 2023
acb6f5e
feat: 3ae7d7f0682d8ec74005c5bea743765e9c1766dc
actions-user Nov 24, 2023
ba6f7e2
feat: docker-image: v1.0.0-dev.1, chart: v1.0.0-dev.1
actions-user Nov 24, 2023
69a7f46
pom.xml updated with new version 1.0.0-dev.1
actions-user Nov 24, 2023
1213fa4
Chart.yaml updated with new version v1.0.0-dev.1
actions-user Nov 24, 2023
5ace1b8
rollback exception handling (#57)
LuciaM1 Nov 24, 2023
3049db1
feat: 5ace1b87c1a90f59ad85df3f0573d46e39bb7e22
actions-user Nov 24, 2023
e70d322
feat: docker-image: v1.0.0-dev.2, chart: v1.0.0-dev.2
actions-user Nov 24, 2023
0963a88
pom.xml updated with new version 1.0.0-dev.2
actions-user Nov 24, 2023
24a7afb
Chart.yaml updated with new version v1.0.0-dev.2
actions-user Nov 24, 2023
13ecd83
feat: 24a7afb96e19845fa4f7caa358f1757f4c7667e4
actions-user Nov 27, 2023
d8c7576
feat: docker-image: v1.0.0-dev.3, chart: v1.0.0-dev.3
actions-user Nov 27, 2023
fccdf71
pom.xml updated with new version 1.0.0-dev.3
actions-user Nov 27, 2023
e768d70
Chart.yaml updated with new version v1.0.0-dev.3
actions-user Nov 27, 2023
1f7bb0b
fixed deploy (#58)
LuciaM1 Nov 27, 2023
aea0cbc
feat: 1f7bb0b9333d9be5ba19699601136467d4a712e1
actions-user Nov 27, 2023
cee7437
feat: docker-image: v1.0.0-dev.3, chart: v1.0.0-dev.3
actions-user Nov 27, 2023
c1901b0
feat: cee74377d3cbc39365d54e403a1abba91650c39c
actions-user Nov 27, 2023
225cb78
feat: docker-image: v1.0.0-dev.4, chart: v1.0.0-dev.4
actions-user Nov 27, 2023
0e69167
pom.xml updated with new version 1.0.0-dev.4
actions-user Nov 27, 2023
648d200
Chart.yaml updated with new version v1.0.0-dev.4
actions-user Nov 27, 2023
5272594
changing test command
SMANUM Nov 27, 2023
299b32b
changing prod db url
SMANUM Nov 27, 2023
2c6bcb3
changing prod db url
SMANUM Nov 27, 2023
5a84c00
Test rollback (#59)
LuciaM1 Nov 27, 2023
8c934c3
Dev branch 27nov (#60)
ElisKina-dev Nov 27, 2023
8c9656c
adding jacoco
SMANUM Nov 27, 2023
0cb75be
testing jacoco
SMANUM Nov 28, 2023
d5d3043
testing jacoco
SMANUM Nov 28, 2023
1154dba
testing jacoco reportt
SMANUM Nov 28, 2023
88b8ad0
testing jacoco path
SMANUM Nov 28, 2023
c7c8708
testing jacoco after build
SMANUM Nov 28, 2023
4d77948
testing jacoco in a new pipe
SMANUM Nov 28, 2023
40e8a31
adding jacoco coverage report
SMANUM Nov 28, 2023
5d415a8
general refactor (#66)
LuciaM1 Nov 28, 2023
3797696
changing path in pr jacoco
SMANUM Nov 28, 2023
dfe1fb4
testing path in pr jacoco
SMANUM Nov 28, 2023
79d61cb
testing pr jacoco
SMANUM Nov 28, 2023
d849f46
testing pr jacoco
SMANUM Nov 28, 2023
67f84de
testing jacoco
SMANUM Nov 28, 2023
8ad63a3
testing jacoco on pr
SMANUM Nov 28, 2023
f98ae5f
testing jacoco on pr adding jdk
SMANUM Nov 28, 2023
f2b32bb
testing jacoco on pr adding failiture if coverage is less than 90
SMANUM Nov 28, 2023
c93af44
testing jacoco on pr removing failiture if coverage is less than 90
SMANUM Nov 28, 2023
0723644
testing jacoco on pr with 100 of coverage
SMANUM Nov 28, 2023
4709084
testing jacoco on push with 100 of coverage
SMANUM Nov 28, 2023
fd858fb
testing jacoco faild build and pr
SMANUM Nov 28, 2023
5e4a783
jacoco with 90 of coverage
SMANUM Nov 28, 2023
b519526
Feature/check extension (#74)
EmanueleValentini1 Nov 28, 2023
3ab295d
feat: b5195264397b0d3fb92d59235bdbb2f8598e58c6
actions-user Nov 28, 2023
a191685
feat: docker-image: v1.0.0-dev.5, chart: v1.0.0-dev.5
actions-user Nov 28, 2023
b001ac4
pom.xml updated with new version 1.0.0-dev.5
actions-user Nov 28, 2023
52483a1
Chart.yaml updated with new version v1.0.0-dev.5
actions-user Nov 28, 2023
29c2ab1
adding jacoco name
SMANUM Nov 28, 2023
5d760f4
testing build
SMANUM Nov 28, 2023
754470a
testing build
SMANUM Nov 28, 2023
8bf0a27
Logical delete (#75)
LuciaM1 Nov 29, 2023
2273fa6
add tests into WFResourceServiceImplTest
GiacomoBrancazi Nov 29, 2023
9e18d07
removing environmnet input in create pre-release
SMANUM Nov 29, 2023
2235461
Fix bpmn, dmn and form extension check (#76)
EmanueleValentini1 Nov 30, 2023
e9ed7c4
add test into WFResourceMapper
GiacomoBrancazi Nov 30, 2023
97cb322
Merge branch 'dev' of https://github.com/pagopa/atm-layer-model into dev
GiacomoBrancazi Nov 30, 2023
db52fda
disable bpmn refinements (#77)
LuciaM1 Nov 30, 2023
13441a8
feat: db52fda6efdc2724d3974ef9c7154c95af5a8d71
actions-user Dec 1, 2023
4fa5796
feat: docker-image: v1.0.0-dev.6, chart: v1.0.0-dev.6
actions-user Dec 1, 2023
108af5e
pom.xml updated with new version 1.0.0-dev.6
actions-user Dec 1, 2023
01d2e2b
Chart.yaml updated with new version v1.0.0-dev.6
actions-user Dec 1, 2023
bdbf130
Disable check extension Resource (#79)
EmanueleValentini1 Dec 1, 2023
586d3e3
feat: bdbf130bc8c3e5281f7ee6c901e9b2be35392287
actions-user Dec 1, 2023
2d74a8d
feat: docker-image: v1.0.0-dev.7, chart: v1.0.0-dev.7
actions-user Dec 1, 2023
c8611ba
pom.xml updated with new version 1.0.0-dev.7
actions-user Dec 1, 2023
b87578d
Chart.yaml updated with new version v1.0.0-dev.7
actions-user Dec 1, 2023
172c933
Fix/tika quarkus (#80)
candreac Dec 3, 2023
fdf1212
feat: 172c9334c4495630650654ea97fbfcb215281513
actions-user Dec 4, 2023
3a27118
feat: docker-image: v1.0.0-dev.8, chart: v1.0.0-dev.8
actions-user Dec 4, 2023
04bb1f1
pom.xml updated with new version 1.0.0-dev.8
actions-user Dec 4, 2023
c35dddd
Chart.yaml updated with new version v1.0.0-dev.8
actions-user Dec 4, 2023
01a9cdf
feat: c35dddd9b0726d4d89b3ff4496e834f4b10d7336
actions-user Dec 4, 2023
57a7785
feat: docker-image: v1.0.0, chart: v1.0.0
actions-user Dec 4, 2023
eb4918c
pom.xml updated with new version 1.0.0
actions-user Dec 4, 2023
6b74f62
Chart.yaml updated with new version v1.0.0
actions-user Dec 4, 2023
4d78443
Fix model in uat (#84)
asioleLab Dec 4, 2023
b880274
feat: 4d78443dbb752740ef3065f651e34d735b6d6bf0
actions-user Dec 4, 2023
3e818a2
feat: docker-image: v1.1.0, chart: v1.1.0
actions-user Dec 4, 2023
2cff8be
pom.xml updated with new version 1.1.0
actions-user Dec 4, 2023
93cc460
Chart.yaml updated with new version v1.1.0
actions-user Dec 4, 2023
2715717
Merge dev into uat (#89)
LuciaM1 Dec 12, 2023
9b090ce
feat: 271571744bcc284721506a5919cd2ef11aa59149
actions-user Dec 12, 2023
b5c51ec
feat: docker-image: v1.2.0, chart: v1.2.0
actions-user Dec 12, 2023
3427178
pom.xml updated with new version 1.2.0
actions-user Dec 12, 2023
cb1986b
Chart.yaml updated with new version v1.2.0
actions-user Dec 12, 2023
99eee62
allineamento uat (#91)
EmanueleValentini1 Dec 18, 2023
5ef6f65
feat: 99eee623b946fb293e59ab658912ff9e276ad89c
actions-user Dec 18, 2023
95702c2
feat: docker-image: v1.3.0, chart: v1.3.0
actions-user Dec 18, 2023
fcdc08b
pom.xml updated with new version 1.3.0
actions-user Dec 18, 2023
83c73e1
Chart.yaml updated with new version v1.3.0
actions-user Dec 18, 2023
6bc2fc0
Merge remote-tracking branch 'origin/main' into uat
EmanueleValentini1 Dec 18, 2023
9303844
changed path variables (#94)
LuciaM1 Dec 19, 2023
5a94f63
fix: 930384471224b9072d68102d6b151afb1baa8e42
actions-user Dec 19, 2023
29f3884
fix: docker-image: v1.3.1, chart: v1.3.1
actions-user Dec 19, 2023
5051303
pom.xml updated with new version 1.3.1
actions-user Dec 19, 2023
8bd547a
Chart.yaml updated with new version v1.3.1
actions-user Dec 19, 2023
7b9370e
modify variables (#95)
LuciaM1 Dec 20, 2023
1f07f4b
fix: 7b9370e96e0ad383d370089bd9c0f19cf354ac96
actions-user Dec 20, 2023
8b58253
fix: docker-image: v1.3.2, chart: v1.3.2
actions-user Dec 20, 2023
3c7336a
pom.xml updated with new version 1.3.2
actions-user Dec 20, 2023
33132cd
Chart.yaml updated with new version v1.3.2
actions-user Dec 20, 2023
4e840c8
modify dev variables (#96)
LuciaM1 Dec 20, 2023
ed1af66
fix: 4e840c89884fb924169173edfe62691ab5d14efe
actions-user Dec 20, 2023
721c51a
fix: docker-image: v1.3.3, chart: v1.3.3
actions-user Dec 20, 2023
f31cc93
pom.xml updated with new version 1.3.3
actions-user Dec 20, 2023
ab7e8fc
Chart.yaml updated with new version v1.3.3
actions-user Dec 20, 2023
5aa38fa
Merge remote-tracking branch 'origin/main' into uat
LuciaM1 Dec 20, 2023
aaf4ec1
adding performance test pipe (#102)
SMANUM Dec 20, 2023
b5a8b3c
Merge remote-tracking branch 'origin/main' into uat
EmanueleValentini1 Dec 20, 2023
577e62b
Dev (#108)
SMANUM Jan 10, 2024
71da09b
Dev (#110)
SMANUM Jan 12, 2024
1701634
Update values-uat.yaml
SMANUM Jan 12, 2024
8817846
Dev (#111)
SMANUM Jan 12, 2024
b92da9b
Merge dev into uat (#113)
EmanueleValentini1 Jan 15, 2024
3598701
Dev (#130)
SMANUM Feb 6, 2024
e5a057b
Merge remote-tracking branch 'origin/main' into uat
LuciaM1 Feb 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
189 changes: 189 additions & 0 deletions .github/workflows/manual-create-pre-release-from-hotfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
name: Manual create pre-release from hotfix

on:
workflow_dispatch:
inputs:
commit:
description: 'Pre-release type:'
type: choice
required: true
default: feat
options:
- feat
- fix
- major

defaults:
run:
shell: bash

permissions: write-all

jobs:
manual-create-pre-release:
if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/hotfix/')
strategy:
matrix:
environment: [uat] #pre-prod

name: "manual-create-pre-release"
runs-on: ubuntu-latest
environment: ${{ matrix.environment }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
with:
role-to-assume: ${{ secrets.IAM_ROLE }}
aws-region: ${{ vars.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Setup JDK
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Test and Integration tests
run: |
mvn test -Dquarkus.package.type=native -Dquarkus.application.name=atm-layer-model -Dquarkus.profile=prod

- name: Create Status check based on postman results
id: process-postman
uses: im-open/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
results-file: src/test/resources/integration-test/output/result.json
report-name: 'Postman create pre-release: ${{ github.run_number }}'
create-status-check: true
create-pr-comment: true
update-comment-if-one-exists: true
ignore-test-failures: true
timezone: 'europe/rome'

- name: Fail if there were errors in the postman tests
if: steps.process-postman.outputs.test-outcome == 'Failed'
run: |
echo "There were postman failures."
exit 1

- name: Upload result.html
uses: actions/upload-artifact@v3
with:
name: html-report
path: src/test/resources/integration-test/output/result.html

- name: JaCoCo Code Coverage Report
id: jacoco_reporter
uses: PavanMudigonda/[email protected]
with:
coverage_results_path: target/jacoco-report/jacoco.xml
coverage_report_name: 'Coverage create pre-release: ${{ github.run_number }}'
coverage_report_title: JaCoCo
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_check_run: false
minimum_coverage: 90
fail_below_threshold: false
publish_only_summary: false

- name: Fail Build if overall coverage is less than 90%
if: steps.jacoco_reporter.outputs.coverage_percentage < 90.0
uses: actions/github-script@v6
with:
script: |
core.setFailed('Overall coverage is less than 90%!')

- name: Build docker image
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: ${{ vars.DOCKER_IMAGE_NAME}}
DOCKER_IMAGE_TAG: ${{ github.sha }}
run: |
docker build -f src/main/java/it/gov/pagopa/atmlayer/service/model/docker/Dockerfile.native -t $REGISTRY/$REPOSITORY:$DOCKER_IMAGE_TAG . \
--build-arg QUARKUS_PROFILE=prod \
--build-arg APP_NAME=atm-layer-model

- name: Commit with "${{ inputs.commit }}:" prefix
run: |
git config user.name "GitHub Action"
git config user.email "[email protected]"
git pull
git add .
git commit --allow-empty -m "${{ inputs.commit }}: ${{ github.sha }}"
git push

- name: Semantic Release
id: semantic-release-dryrun
uses: cycjimmy/semantic-release-action@bdd914ff2423e2792c73475f11e8da603182f32d
with:
dry_run: true
semantic_version: 19
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit with "${{ inputs.commit }}:" prefix
run: |
git config user.name "GitHub Action"
git config user.email "[email protected]"
git pull
git add .
git commit --allow-empty -m "${{ inputs.commit }}: docker-image: v${{ steps.semantic-release-dryrun.outputs.new_release_version }}, chart: v${{ steps.semantic-release-dryrun.outputs.new_release_version }}"
git push

- name: Semantic Release
id: semantic-release
uses: cycjimmy/semantic-release-action@bdd914ff2423e2792c73475f11e8da603182f32d
with:
semantic_version: 19
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update file pom.xml with the new version
if: steps.semantic-release.outputs.new_release_published == 'true'
run: |
mvn versions:set -DnewVersion=${{ steps.semantic-release.outputs.new_release_version }} --no-transfer-progress
git pull
git config user.name "GitHub Action"
git config user.email "[email protected]"
git add pom.xml
git commit -m "pom.xml updated with new version ${{ steps.semantic-release.outputs.new_release_version }}"
git push

- name: Update file Chart.yaml with the new version
if: steps.semantic-release.outputs.new_release_published == 'true'
run: |
yq -i ".version = \"v${{ steps.semantic-release.outputs.new_release_version }}\"" "helm-chart/Chart.yaml"
git pull
git add "helm-chart/Chart.yaml"
git commit -m "Chart.yaml updated with new version v${{ steps.semantic-release.outputs.new_release_version }}"
git push

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
with:
role-to-assume: ${{ secrets.IAM_ROLE }}
aws-region: ${{ vars.AWS_REGION }}

- name: Tag and push docker image on ECR
if: steps.semantic-release.outputs.new_release_published == 'true'
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: ${{ vars.DOCKER_IMAGE_NAME}}
DOCKER_IMAGE_TAG: ${{ github.sha }}
ECR_IMAGE_TAG: "v${{ steps.semantic-release.outputs.new_release_version }}"
run: |
docker tag $REGISTRY/$REPOSITORY:$DOCKER_IMAGE_TAG $REGISTRY/$REPOSITORY:$ECR_IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:$ECR_IMAGE_TAG
10 changes: 7 additions & 3 deletions .github/workflows/manual-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ permissions:

jobs:
manual-deploy-release:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/uat' || github.ref == 'refs/heads/main'
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/uat' || startsWith(github.ref, 'refs/heads/hotfix/') || github.ref == 'refs/heads/main'
strategy:
matrix:
environment: ["${{ github.ref == 'refs/heads/dev' && 'dev' || github.ref == 'refs/heads/uat' && 'uat' || github.ref == 'refs/heads/main' && 'prod' }}"]
matrix: #pre-prod
environment: ["${{ github.ref == 'refs/heads/dev' && 'dev' || github.ref == 'refs/heads/uat' && 'uat' || startsWith(github.ref, 'refs/heads/hotfix/') && 'uat' || github.ref == 'refs/heads/main' && 'prod' }}"]

name: "manual-deploy-release"
runs-on: ubuntu-latest
Expand All @@ -41,6 +41,10 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Verify if the tag is on ECR
run: |
aws ecr describe-images --repository-name ${{ vars.DOCKER_IMAGE_NAME}} --image-ids imageTag=${{ inputs.release }} --region ${{ vars.AWS_REGION }}

- name: Update Kubernetes Config
run: |
aws eks --region ${{ vars.AWS_REGION }} update-kubeconfig --name pagopa-${{ matrix.environment }}-atm-layer-eks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-promote-release-in-uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ permissions:
contents: write

jobs:
manual-build:
manual-promote-release-in-uat:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/uat'
strategy:
matrix:
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/performance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ defaults:
permissions: write-all

jobs:
manual-create-pre-release:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev'
manual-run-performance-test:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/uat'
strategy:
matrix:
environment: [dev]
environment: [uat]

name: "manual-run-performance-test"
runs-on: ubuntu-latest
Expand All @@ -27,8 +27,15 @@ jobs:
- name: Run k6 local test
uses: grafana/[email protected]
env:
MODEL_APPLICATION_BASE_URL: ${{ vars.MODEL_APPLICATION_BASE_URL }}
MODEL_APPLICATION_BASE_PATH: ${{ vars.MODEL_APPLICATION_BASE_PATH }}
MODEL_APPLICATION_KEY: ${{ secrets.MODEL_APPLICATION_KEY }}
MODEL_APPLICATION_BASE_URL: ${{ vars.APPLICATION_BASE_URL }}
MODEL_APPLICATION_BASE_PATH: ${{ vars.APPLICATION_BASE_PATH }}
MODEL_APPLICATION_KEY: ${{ secrets.APPLICATION_KEY }}
with:
filename: perfomance_test/run_performance_tests.js
filename: performance_test/run_performance_tests.js

- name: Upload performance test file
if: always()
uses: actions/upload-artifact@v3
with:
name: performance-report
path: performance_summary.html
43 changes: 23 additions & 20 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "uat", "main",{
"name": "dev",
"prerelease": true
}],
"ci": false,
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{ "type": "breaking", "release": "major" },
{ "type": "major", "release": "major" }
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "uat", "main",{
"name": "dev",
"prerelease": true
},{
"name": "hotfix/*",
"prerelease": "hotfix"
}],
"ci": false,
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{ "type": "breaking", "release": "major" },
{ "type": "major", "release": "major" }
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
Loading
Loading