|
@@ -55,10 +55,8 @@ jobs:
|
|
|
env:
|
|
|
VISUAL_HTML_ENABLE: 1
|
|
|
steps:
|
|
|
- # Checkout codebase
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
- # Install/setup node
|
|
|
- uses: volta-cli/action@v1
|
|
|
|
|
|
# See https://github.com/actions/cache/blob/master/examples.md#node---yarn for example
|
|
@@ -66,7 +64,6 @@ jobs:
|
|
|
id: yarn-cache-dir-path
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
|
- # yarn cache
|
|
|
- uses: actions/cache@v1
|
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
with:
|
|
@@ -103,6 +100,7 @@ jobs:
|
|
|
snapshot-path: .artifacts/visual-snapshots
|
|
|
|
|
|
acceptance:
|
|
|
+ # TODO(joshuarli): Convert to py3 with snapshots. See other TODO as well.
|
|
|
runs-on: ubuntu-16.04
|
|
|
strategy:
|
|
|
matrix:
|
|
@@ -116,7 +114,6 @@ jobs:
|
|
|
SENTRY_SKIP_BACKEND_VALIDATION: 1
|
|
|
MIGRATIONS_TEST_MIGRATE: 0
|
|
|
|
|
|
- # Node configuration
|
|
|
NODE_OPTIONS: --max-old-space-size=4096
|
|
|
NODE_ENV: development
|
|
|
|
|
@@ -143,32 +140,20 @@ jobs:
|
|
|
libxmlsec1-dev \
|
|
|
libmaxminddb-dev
|
|
|
|
|
|
- # Checkout codebase
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
- # Install node
|
|
|
- uses: volta-cli/action@v1
|
|
|
|
|
|
- # Yarn
|
|
|
- # - See https://github.com/actions/cache/blob/master/examples.md#node---yarn for example
|
|
|
- # Python
|
|
|
- # Use `.python-version` to avoid duplication
|
|
|
- # XXX: can't actually read from .python-version because GitHub Actions
|
|
|
- # does not support our version (2.7.16)
|
|
|
- #
|
|
|
- # XXX: Using `2.7` as GHA image only seems to keep one minor version around and will break
|
|
|
- # CI if we pin it to a specific patch version.
|
|
|
- name: Set up outputs
|
|
|
id: config
|
|
|
env:
|
|
|
MATRIX_INSTANCE: ${{ matrix.instance }}
|
|
|
run: |
|
|
|
echo "::set-output name=yarn-cache-dir::$(yarn cache dir)"
|
|
|
- echo "::set-output name=python-version::2.7"
|
|
|
+ echo "::set-output name=python-version::2.7.17"
|
|
|
echo "::set-output name=matrix-instance-number::$(($MATRIX_INSTANCE+1))"
|
|
|
echo "::set-output name=acceptance-dir::.artifacts/visual-snapshots/acceptance"
|
|
|
|
|
|
- # yarn cache
|
|
|
- uses: actions/cache@v1
|
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
with:
|
|
@@ -177,18 +162,15 @@ jobs:
|
|
|
restore-keys: |
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
|
- # setup python
|
|
|
- name: Set up Python ${{ steps.config.outputs.python-version }}
|
|
|
- uses: actions/setup-python@v1
|
|
|
+ uses: actions/setup-python@v2
|
|
|
with:
|
|
|
python-version: ${{ steps.config.outputs.python-version}}
|
|
|
|
|
|
- # setup pip
|
|
|
- name: Install pip
|
|
|
run: |
|
|
|
pip install --no-cache-dir --upgrade "pip>=20.0.2"
|
|
|
|
|
|
- # pip cache
|
|
|
- name: Get pip cache dir
|
|
|
id: pip-cache
|
|
|
run: |
|
|
@@ -266,7 +248,6 @@ jobs:
|
|
|
SENTRY_SKIP_BACKEND_VALIDATION: 1
|
|
|
MIGRATIONS_TEST_MIGRATE: 1
|
|
|
|
|
|
- # Node configuration
|
|
|
NODE_OPTIONS: --max-old-space-size=4096
|
|
|
NODE_ENV: development
|
|
|
|
|
@@ -293,32 +274,20 @@ jobs:
|
|
|
libxmlsec1-dev \
|
|
|
libmaxminddb-dev
|
|
|
|
|
|
- # Checkout codebase
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
- # Install node
|
|
|
- uses: volta-cli/action@v1
|
|
|
|
|
|
- # Yarn
|
|
|
- # - See https://github.com/actions/cache/blob/master/examples.md#node---yarn for example
|
|
|
- # Python
|
|
|
- # Use `.python-version` to avoid duplication
|
|
|
- # XXX: can't actually read from .python-version because GitHub Actions
|
|
|
- # does not support our version (2.7.16)
|
|
|
- #
|
|
|
- # XXX: Using `2.7` as GHA image only seems to keep one minor version around and will break
|
|
|
- # CI if we pin it to a specific patch version.
|
|
|
- name: Set up outputs
|
|
|
id: config
|
|
|
env:
|
|
|
MATRIX_INSTANCE: ${{ matrix.instance }}
|
|
|
run: |
|
|
|
echo "::set-output name=yarn-cache-dir::$(yarn cache dir)"
|
|
|
- echo "::set-output name=python-version::3.6.12"
|
|
|
+ echo "::set-output name=python-version::$(awk 'FNR == 2' .python-version)"
|
|
|
echo "::set-output name=matrix-instance-number::$(($MATRIX_INSTANCE+1))"
|
|
|
echo "::set-output name=acceptance-dir::.artifacts/visual-snapshots/acceptance"
|
|
|
|
|
|
- # yarn cache
|
|
|
- uses: actions/cache@v1
|
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
with:
|
|
@@ -327,18 +296,15 @@ jobs:
|
|
|
restore-keys: |
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
|
- # setup python
|
|
|
- name: Set up Python ${{ steps.config.outputs.python-version }}
|
|
|
- uses: actions/setup-python@v1
|
|
|
+ uses: actions/setup-python@v2
|
|
|
with:
|
|
|
python-version: ${{ steps.config.outputs.python-version}}
|
|
|
|
|
|
- # setup pip
|
|
|
- name: Install pip
|
|
|
run: |
|
|
|
pip install --no-cache-dir --upgrade "pip>=20.0.2"
|
|
|
|
|
|
- # pip cache
|
|
|
- name: Get pip cache dir
|
|
|
id: pip-cache
|
|
|
run: |
|
|
@@ -363,8 +329,6 @@ jobs:
|
|
|
python setup.py install_egg_info
|
|
|
pip install wheel # GitHub Actions does not have this installed by default (unlike Travis)
|
|
|
pip install -U -e ".[dev]"
|
|
|
- pip uninstall -y rb
|
|
|
- pip install -e git+https://github.com/getsentry/rb.git@master#egg=rb
|
|
|
|
|
|
- name: Start devservices
|
|
|
run: |
|
|
@@ -395,6 +359,8 @@ jobs:
|
|
|
USE_SNUBA: 1
|
|
|
TEST_GROUP: ${{ matrix.instance }}
|
|
|
|
|
|
+ # TODO(joshuarli): SENTRY_PYTHON3=1, snapshots, visual-diff needs py3-acceptance.
|
|
|
+
|
|
|
visual-diff:
|
|
|
if: ${{ github.ref != 'refs/heads/master' }}
|
|
|
needs: [acceptance, jest]
|