Skip to content

Commit

Permalink
Try to fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
HardikGoyal2003 committed Dec 25, 2024
1 parent 1ed4ab6 commit fd0b0dc
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 413 deletions.
164 changes: 82 additions & 82 deletions .github/workflows/all_lint_checks.yml
Original file line number Diff line number Diff line change
@@ -1,83 +1,83 @@
# name: Lint checks
# on:
# merge_group:
# types: [checks_requested]
# push:
# branches:
# - develop
# - release-*
# pull_request:
# branches:
# - develop
# - release-*
name: Lint checks
on:
merge_group:
types: [checks_requested]
push:
branches:
- develop
- release-*
pull_request:
branches:
- develop
- release-*

# jobs:
# backend_lint:
# name: Backend
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository so that local actions can be used
# uses: actions/checkout@v4
# - name: Merge develop and set up Python
# uses: ./.github/actions/merge-develop-and-setup-python
# with:
# use_cache: false
# - name: Initialize Docker containers
# uses: ./.github/actions/install-oppia-dependencies-docker
# - name: Third Party Size Check
# if: startsWith(github.head_ref, 'update-changelog-for-release') == false
# run: make run_tests.third_party_size_check
# - name: Run Lint Checks
# if: startsWith(github.head_ref, 'update-changelog-for-release') == false
# run: make run_tests.lint PYTHON_ARGS="--shard other --verbose"
# - name: Report failure if failed on oppia/oppia develop branch
# if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
# uses: ./.github/actions/send-webhook-notification
# with:
# message: "Lint checks failed on the upstream develop branch."
# webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
# frontend_lint:
# name: Custom ESLint checks
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository so that local actions can be used
# uses: actions/checkout@v4
# - name: Merge develop and set up Python
# uses: ./.github/actions/merge-develop-and-setup-python
# with:
# use_cache: false
# - name: Initialize Docker containers
# if: startsWith(github.head_ref, 'update-changelog-for-release') == false
# uses: ./.github/actions/install-oppia-dependencies-docker
# - name: Run ESLint Tests
# if: startsWith(github.head_ref, 'update-changelog-for-release') == false
# run: make run_tests.custom_eslint
# - name: Report failure if failed on oppia/oppia develop branch
# if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
# uses: ./.github/actions/send-webhook-notification
# with:
# message: "ESLint checks failed on the upstream develop branch."
# webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
# frontend_formatter:
# name: Frontend formatting with prettier
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository so that local actions can be used
# uses: actions/checkout@v4
# - name: Merge develop and set up Python
# uses: ./.github/actions/merge-develop-and-setup-python
# with:
# use_cache: false
# - name: Initialize Docker containers
# uses: ./.github/actions/install-oppia-dependencies-docker
# - name: Prettify code
# run: make run_tests.prettier
# - name: Explain how to fix the issue
# if: ${{ failure() }}
# run: echo "Read https://github.com/oppia/oppia/wiki/Formatters to understand how to fix this issue."
# - name: Report failure if failed on oppia/oppia develop branch
# if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
# uses: ./.github/actions/send-webhook-notification
# with:
# message: "Prettier formatting failed on the upstream develop branch."
# webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
jobs:
backend_lint:
name: Backend
runs-on: ubuntu-22.04
steps:
- name: Checkout repository so that local actions can be used
uses: actions/checkout@v4
- name: Merge develop and set up Python
uses: ./.github/actions/merge-develop-and-setup-python
with:
use_cache: false
- name: Initialize Docker containers
uses: ./.github/actions/install-oppia-dependencies-docker
- name: Third Party Size Check
if: startsWith(github.head_ref, 'update-changelog-for-release') == false
run: make run_tests.third_party_size_check
- name: Run Lint Checks
if: startsWith(github.head_ref, 'update-changelog-for-release') == false
run: make run_tests.lint PYTHON_ARGS="--shard other --verbose"
- name: Report failure if failed on oppia/oppia develop branch
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
uses: ./.github/actions/send-webhook-notification
with:
message: "Lint checks failed on the upstream develop branch."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
frontend_lint:
name: Custom ESLint checks
runs-on: ubuntu-22.04
steps:
- name: Checkout repository so that local actions can be used
uses: actions/checkout@v4
- name: Merge develop and set up Python
uses: ./.github/actions/merge-develop-and-setup-python
with:
use_cache: false
- name: Initialize Docker containers
if: startsWith(github.head_ref, 'update-changelog-for-release') == false
uses: ./.github/actions/install-oppia-dependencies-docker
- name: Run ESLint Tests
if: startsWith(github.head_ref, 'update-changelog-for-release') == false
run: make run_tests.custom_eslint
- name: Report failure if failed on oppia/oppia develop branch
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
uses: ./.github/actions/send-webhook-notification
with:
message: "ESLint checks failed on the upstream develop branch."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
frontend_formatter:
name: Frontend formatting with prettier
runs-on: ubuntu-22.04
steps:
- name: Checkout repository so that local actions can be used
uses: actions/checkout@v4
- name: Merge develop and set up Python
uses: ./.github/actions/merge-develop-and-setup-python
with:
use_cache: false
- name: Initialize Docker containers
uses: ./.github/actions/install-oppia-dependencies-docker
- name: Prettify code
run: make run_tests.prettier
- name: Explain how to fix the issue
if: ${{ failure() }}
run: echo "Read https://github.com/oppia/oppia/wiki/Formatters to understand how to fix this issue."
- name: Report failure if failed on oppia/oppia develop branch
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
uses: ./.github/actions/send-webhook-notification
with:
message: "Prettier formatting failed on the upstream develop branch."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
120 changes: 60 additions & 60 deletions .github/workflows/all_type_checks.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
# name: Type checks
# on:
# merge_group:
# types: [checks_requested]
# push:
# branches:
# - develop
# - release-*
# pull_request:
# branches:
# - develop
# - release-*
name: Type checks
on:
merge_group:
types: [checks_requested]
push:
branches:
- develop
- release-*
pull_request:
branches:
- develop
- release-*

# jobs:
# backend_type_checks:
# name: Backend
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository so that local actions can be used
# uses: actions/checkout@v4
# - name: Merge develop and set up Python
# uses: ./.github/actions/merge-develop-and-setup-python
# with:
# use_cache: false
# - name: Initialize Docker containers
# run: |
# make build
# make stop
# - name: Run Mypy type checks
# if: startsWith(github.head_ref, 'update-changelog-for-release') == false
# run: make run_tests.mypy
# - name: Report failure if failed on oppia/oppia develop branch
# if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
# uses: ./.github/actions/send-webhook-notification
# with:
# message: "Python type checks failed on the upstream develop branch."
# webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
# frontend_type_checks:
# name: Frontend
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository so that local actions can be used
# uses: actions/checkout@v4
# - name: Merge develop and set up Python
# uses: ./.github/actions/merge-develop-and-setup-python
# with:
# use_cache: false
# - name: Install Chrome
# uses: ./.github/actions/install-chrome
# - name: Initialize Containers
# uses: ./.github/actions/install-oppia-dependencies-docker
# - name: Run typescript tests
# run: make run_tests.typescript
# - name: Run typescript tests in strict mode
# run: make run_tests.typescript PYTHON_ARGS="--strict_checks"
# - name: Report failure if failed on oppia/oppia develop branch
# if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
# uses: ./.github/actions/send-webhook-notification
# with:
# message: "A typescript test failed on the upstream develop branch."
# webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
jobs:
backend_type_checks:
name: Backend
runs-on: ubuntu-22.04
steps:
- name: Checkout repository so that local actions can be used
uses: actions/checkout@v4
- name: Merge develop and set up Python
uses: ./.github/actions/merge-develop-and-setup-python
with:
use_cache: false
- name: Initialize Docker containers
run: |
make build
make stop
- name: Run Mypy type checks
if: startsWith(github.head_ref, 'update-changelog-for-release') == false
run: make run_tests.mypy
- name: Report failure if failed on oppia/oppia develop branch
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
uses: ./.github/actions/send-webhook-notification
with:
message: "Python type checks failed on the upstream develop branch."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
frontend_type_checks:
name: Frontend
runs-on: ubuntu-22.04
steps:
- name: Checkout repository so that local actions can be used
uses: actions/checkout@v4
- name: Merge develop and set up Python
uses: ./.github/actions/merge-develop-and-setup-python
with:
use_cache: false
- name: Install Chrome
uses: ./.github/actions/install-chrome
- name: Initialize Containers
uses: ./.github/actions/install-oppia-dependencies-docker
- name: Run typescript tests
run: make run_tests.typescript
- name: Run typescript tests in strict mode
run: make run_tests.typescript PYTHON_ARGS="--strict_checks"
- name: Report failure if failed on oppia/oppia develop branch
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}}
uses: ./.github/actions/send-webhook-notification
with:
message: "A typescript test failed on the upstream develop branch."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}
Loading

0 comments on commit fd0b0dc

Please sign in to comment.