-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4000 from reportportal/rc/5.12.0
Release 5.12.0
- Loading branch information
Showing
651 changed files
with
28,976 additions
and
18,506 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @AmsterGet @Vadim73i | ||
* @AmsterGet @BlazarQSO @maria-hambardzumian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## PR Checklist | ||
|
||
* [ ] Have you verified that the PR is pointing to the correct target branch? (`develop` for features/bugfixes, other if mentioned in the task) | ||
* [ ] Have you verified that your branch is consistent with the target branch and has no conflicts? (if not, make a rebase under the target branch) | ||
* [ ] Have you checked that everything works within the branch according to the task description and tested it locally? | ||
* [ ] Have you run the linter (`npm run lint`) prior to submission? Enable the git hook on commit in your IDE to run it and format the code automatically. | ||
* [ ] Have you run the tests locally and added/updated them if needed? | ||
* [ ] Have you checked that app can be built (`npm run build`)? | ||
* [ ] Have you made sure that all the necessary pipelines has been successfully completed? | ||
* [ ] If the task requires translations to be updated, have you done this by running the `manage:translations` script? | ||
|
||
## Visuals | ||
|
||
<!-- OPTIONAL | ||
Provide the visual proof (screenshot/gif/video) of your work | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build revision Docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release version' | ||
required: true | ||
|
||
jobs: | ||
variables-setup: | ||
name: Setting variables for docker build | ||
runs-on: ubuntu-latest | ||
environment: rc | ||
steps: | ||
- name: Create variables | ||
id: vars | ||
run: | | ||
echo "platforms=${{ vars.BUILD_PLATFORMS }}" >> $GITHUB_OUTPUT | ||
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT | ||
echo "tag=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT | ||
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
outputs: | ||
platforms: ${{ steps.vars.outputs.platforms }} | ||
version: ${{ steps.vars.outputs.version }} | ||
tag: ${{ steps.vars.outputs.tag }} | ||
date: ${{ steps.vars.outputs.date }} | ||
|
||
call-docker-build: | ||
name: Call release candidate Docker build | ||
needs: variables-setup | ||
uses: reportportal/.github/.github/workflows/build-docker-image.yaml@main | ||
with: | ||
aws-region: ${{ vars.AWS_REGION }} | ||
image-tag: ${{ needs.variables-setup.outputs.tag }} | ||
additional-tag: 'latest' | ||
build-platforms: ${{ needs.variables-setup.outputs.platforms }} | ||
version: ${{ needs.variables-setup.outputs.version }} | ||
date: ${{ needs.variables-setup.outputs.date }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Retag RC Docker image (revision) | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
AWS_REGION: ${{ vars.AWS_REGION }} # set this to your preferred AWS region, e.g. us-west-1 | ||
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY }} # set this to your Amazon ECR repository name | ||
TARGET_REGISTRY: ${{ vars.TARGET_REGISTRY }} # set to target registry (DockerHub, GitHub & etc) | ||
TARGET_REPOSITORY: ${{ vars.TARGET_REPOSITORY }} # set to target repository | ||
PLATFORMS: ${{ vars.BUILD_PLATFORMS }} # set target build platforms. By default linux/amd64 | ||
RELEASE_MODE: ${{ vars.RELEASE_MODE }} | ||
|
||
jobs: | ||
retag-image: | ||
name: Retag and push image | ||
runs-on: ubuntu-latest | ||
environment: rc | ||
# if: github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get the latest git tag | ||
id: get_version | ||
uses: oprypin/find-latest-tag@v1 | ||
with: | ||
repository: ${{ github.repository }} | ||
releases-only: true | ||
|
||
- name: Get next Docker version | ||
id: next_version | ||
run: | | ||
DOCKER_IMAGE_NAME="${{ github.repository }}" | ||
INPUT_VERSION=${{ steps.get_version.outputs.tag }} | ||
TAGS_JSON=$(curl -s "https://hub.docker.com/v2/repositories/${DOCKER_IMAGE_NAME}/tags/?page_size=1000") | ||
LATEST_REVISION_NUMBER=$(echo "$TAGS_JSON" | jq -r --arg INPUT_VERSION "$INPUT_VERSION" '.results[] | select(.name | startswith($INPUT_VERSION+"-r")) | .name' | awk -F-r '{print $2}' | sort -nr | head -n1) | ||
if [[ -z "$LATEST_REVISION_NUMBER" ]]; then | ||
NEXT_VERSION="$INPUT_VERSION-r1" | ||
else | ||
NEXT_VERSION="$INPUT_VERSION-r$(($LATEST_REVISION_NUMBER + 1))" | ||
fi | ||
echo $NEXT_VERSION | ||
echo "tag=$NEXT_VERSION" >> $GITHUB_OUTPUT | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
# role-to-assume: arn:aws:iam::123456789012:role/my-github-actions-role | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
with: | ||
mask-password: 'true' | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.REGESTRY_USERNAME }} | ||
password: ${{ secrets.REGESTRY_PASSWORD }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Retag and Push Docker Image | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
IMAGE_TAG: ${{ steps.next_version.outputs.tag }} | ||
run: | | ||
docker buildx imagetools create $ECR_REGISTRY/$ECR_REPOSITORY:latest --tag $TARGET_REGISTRY/$TARGET_REPOSITORY:$IMAGE_TAG --tag $TARGET_REGISTRY/$TARGET_REPOSITORY:latest | ||
- name: Summarize | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
IMAGE_TAG: ${{ steps.next_version.outputs.tag }} | ||
run: | | ||
echo "## General information about the build:" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "- :whale: Docker image: $TARGET_REGISTRY/$TARGET_REPOSITORY:$IMAGE_TAG" >> $GITHUB_STEP_SUMMARY | ||
echo "- :octocat: The commit SHA from which the build was performed: [$GITHUB_SHA](https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA)" >> $GITHUB_STEP_SUMMARY | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Add GitHub release version to Jira issues | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
call-jira-sync: | ||
name: Call Jira versions update | ||
uses: reportportal/.github/.github/workflows/update-jira-versions.yaml@main | ||
with: | ||
jira-server: ${{ vars.JIRA_SERVER }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"arrowParens": "always", | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 100 | ||
"arrowParens": "always", | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 100, | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.