symbolicator-integration-test.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. name: symbolicator integration
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - releases/**
  7. pull_request:
  8. jobs:
  9. test:
  10. name: symbolicator test
  11. runs-on: ubuntu-20.04
  12. timeout-minutes: 10
  13. steps:
  14. - uses: actions/checkout@v2
  15. with:
  16. # Avoid codecov error message related to SHA resolution:
  17. # https://github.com/codecov/codecov-bash/blob/7100762afbc822b91806a6574658129fe0d23a7d/codecov#L891
  18. fetch-depth: '2'
  19. - name: Check for python file changes
  20. uses: getsentry/paths-filter@v2
  21. id: changes
  22. with:
  23. token: ${{ github.token }}
  24. filters: .github/file-filters.yml
  25. # Until GH composite actions can use `uses`, we need to setup python here
  26. - name: Set python version output
  27. id: python-version
  28. run: |
  29. echo "::set-output name=python-version::$(cat .python-version)"
  30. # Until GH composite actions can use `uses`, we need to setup python here
  31. - uses: actions/setup-python@v2
  32. if: steps.changes.outputs.backend == 'true'
  33. with:
  34. python-version: ${{ steps.python-version.outputs.python-version }}
  35. - name: Setup pip
  36. uses: ./.github/actions/setup-pip
  37. id: pip
  38. if: steps.changes.outputs.backend == 'true'
  39. - name: pip cache
  40. uses: actions/cache@v2
  41. if: steps.changes.outputs.backend == 'true'
  42. with:
  43. path: ${{ steps.pip.outputs.pip-cache-dir }}
  44. key: |
  45. ${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}-${{ hashFiles('requirements-*.txt', '!requirements-pre-commit.txt') }}
  46. restore-keys: |
  47. ${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}
  48. - name: Setup sentry env
  49. uses: ./.github/actions/setup-sentry
  50. id: setup
  51. if: steps.changes.outputs.backend == 'true'
  52. with:
  53. snuba: true
  54. kafka: true
  55. - name: Start symbolicator
  56. if: steps.changes.outputs.backend == 'true'
  57. run: |
  58. echo $PWD
  59. docker run \
  60. -d \
  61. -v $PWD/config/symbolicator/:/etc/symbolicator \
  62. --network host \
  63. --name symbolicator \
  64. us.gcr.io/sentryio/symbolicator:nightly \
  65. run -c /etc/symbolicator/config.yml
  66. docker ps -a
  67. - name: Run test
  68. if: steps.changes.outputs.backend == 'true'
  69. run: |
  70. make test-symbolicator
  71. - name: Handle artifacts
  72. uses: ./.github/actions/artifacts