From 1a1dbdfb825105f65d0c552e2fc0961fc7259f6f Mon Sep 17 00:00:00 2001 From: Maksim Gelbakhiani Date: Tue, 6 Feb 2024 11:48:39 +0100 Subject: [PATCH] run bearer token tests only on 8027ca --- .github/workflows/changelog.yml | 29 ---------------- .github/workflows/config-update.yml | 37 -------------------- .github/workflows/dco.yml | 11 ------ .github/workflows/go.yml | 52 ----------------------------- .github/workflows/run-tests.yml | 16 ++++----- 5 files changed, 6 insertions(+), 139 deletions(-) delete mode 100644 .github/workflows/changelog.yml delete mode 100644 .github/workflows/config-update.yml delete mode 100644 .github/workflows/dco.yml delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml deleted file mode 100644 index ff8a4a1b5ee..00000000000 --- a/.github/workflows/changelog.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: CHANGELOG check - -on: - pull_request: - branches: - - master - - support/** - -jobs: - build: - runs-on: ubuntu-latest - name: Check for updates - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Get changed CHANGELOG - id: changelog-diff - uses: tj-actions/changed-files@v41 - with: - files: CHANGELOG.md - - - name: Fail if changelog not updated - if: steps.changelog-diff.outputs.any_changed == 'false' - uses: actions/github-script@v3 - with: - script: | - core.setFailed('CHANGELOG.md has not been updated') diff --git a/.github/workflows/config-update.yml b/.github/workflows/config-update.yml deleted file mode 100644 index 08e1fd6e34c..00000000000 --- a/.github/workflows/config-update.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Configuration check - -on: - pull_request: - branches: - - master - - support/** - -jobs: - build: - runs-on: ubuntu-latest - name: config-check - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Get changed config-related files - id: config-diff - uses: tj-actions/changed-files@v41 - with: - files: | - config/** - cmd/neofs-node/config/** - - - name: Get changed doc files - id: docs-diff - uses: tj-actions/changed-files@v41 - with: - files: docs/** - - - name: Fail if config files are changed but the documentation is not updated - if: steps.config-diff.outputs.any_changed == 'true' && steps.docs-diff.outputs.any_changed == 'false' - uses: actions/github-script@v3 - with: - script: | - core.setFailed('Documentation has not been updated') diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml deleted file mode 100644 index 35466f3649c..00000000000 --- a/.github/workflows/dco.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: DCO check - -on: - pull_request: - branches: - - master - - support/** - -jobs: - dco: - uses: nspcc-dev/.github/.github/workflows/dco.yml@master diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 2dab2ee672a..00000000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: neofs-node tests - -on: - push: - branches: - - master - - support/** - paths-ignore: - - '*.md' - pull_request: - branches: - - master - - support/** - paths-ignore: - - '*.md' - -jobs: - test: - runs-on: ubuntu-20.04 - strategy: - matrix: - go: [ '1.19.x', '1.20.x', '1.21' ] - steps: - - name: Setup go - uses: actions/setup-go@v4 - with: - cache: true - go-version: ${{ matrix.go }} - - - name: Check out code - uses: actions/checkout@v3 - - - name: Run go test - run: go test -coverprofile=coverage.txt -covermode=atomic ./... - - - name: Codecov - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - run: bash <(curl -s https://codecov.io/bash) - - lint: - runs-on: ubuntu-20.04 - steps: - - uses: actions/setup-go@v4 - with: - go-version: 1.19 - - uses: actions/checkout@v3 - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.55.0 - args: --timeout=5m diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5105a184249..a0d467716fa 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -34,7 +34,7 @@ jobs: - name: Checkout neofs-testcases repository uses: actions/checkout@v3 with: - repository: nspcc-dev/neofs-testcases + repository: MaxGelbakhiani/neofs-testcases ref: 'master' path: neofs-testcases @@ -206,14 +206,6 @@ jobs: working-directory: neofs-dev-env ################################################################ - - name: Run Sanity tests for pull requests - timeout-minutes: 120 - if: github.event_name == 'pull_request' - env: - ALLURE_RESULTS_DIR: ${{ env.ALLURE_RESULTS_DIR }} - run: | - source venv.local-pytest/bin/activate && pytest --show-capture=no -m "sanity" --alluredir="$ALLURE_RESULTS_DIR" pytest_tests/testsuites - working-directory: neofs-testcases - name: Run all tests for other events timeout-minutes: 480 @@ -221,7 +213,8 @@ jobs: env: ALLURE_RESULTS_DIR: ${{ env.ALLURE_RESULTS_DIR }} run: | - source venv.local-pytest/bin/activate && pytest --alluredir="$ALLURE_RESULTS_DIR" pytest_tests/testsuites + source venv.local-pytest/bin/activate + pytest --alluredir="$ALLURE_RESULTS_DIR" pytest_tests/testsuites/acl/test_bearer.py #::TestACLBearer::test_bearer_token_compound_operations working-directory: neofs-testcases - name: Publish to NeoFS @@ -254,6 +247,9 @@ jobs: state: 'success' sha: ${{github.event.pull_request.head.sha || github.sha}} target_url: ${{ env.REPORT_NEOFS_URL }} + + - name: tmate session after test run + uses: mxschmitt/action-tmate@v3 - name: Post only docker logs id: post_dockers_logs