codecov.yml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # Setting coverage targets per flag
  2. coverage:
  3. status:
  4. project:
  5. default: false
  6. patch:
  7. default: false
  8. frontend:
  9. # codecov will not fail status checks for master
  10. only_pulls: true
  11. informational: false # Fail the check
  12. target: 60%
  13. flags:
  14. - frontend
  15. backend:
  16. # codecov will not fail status checks for master
  17. only_pulls: true
  18. informational: false # Fail the check
  19. target: 90%
  20. flags:
  21. - backend
  22. ignore:
  23. - src/*/migrations/
  24. - src/bitfield/
  25. - src/sentry/debug/
  26. - src/sentry/lint/
  27. - src/sentry/runner/
  28. - src/social_auth/
  29. - static/app/routes.tsx
  30. - tests/
  31. component_management:
  32. individual_components:
  33. # Profiling team components
  34. - component_id: "profiling_views"
  35. name: "Profiling Views"
  36. paths:
  37. - "static/app/views/profiling/**"
  38. - component_id: "profiling_components"
  39. name: "Profiling Components"
  40. paths:
  41. - "src/sentry/static/sentry/app/components/profiling/**"
  42. - component_id: "profiling_utils"
  43. name: "Profiling Utils"
  44. paths:
  45. - "src/sentry/static/sentry/app/utils/profiling/**"
  46. flags:
  47. frontend:
  48. paths:
  49. - "static/app/"
  50. carryforward: true
  51. # FE uploads 4 coverage reports. This property ensures codecov waits
  52. # for all reports to be uploaded before creating a GitHub status check.
  53. # NOTE: If you change this, make sure to change `comment.after_n_builds` below as well.
  54. after_n_builds: 4
  55. backend:
  56. paths:
  57. - "src/sentry/**/*.py"
  58. carryforward: true
  59. # Do not send any status checks until n coverage reports are uploaded.
  60. # NOTE: If you change this, make sure to change `comment.after_n_builds` below as well.
  61. after_n_builds: 18
  62. # Read more here: https://docs.codecov.com/docs/pull-request-comments
  63. comment:
  64. # This is the addition of carry forward builds and fresh builds, thus, it's the addition
  65. # of the FE and BE builds
  66. after_n_builds: 22
  67. layout: "diff, files"
  68. # Update, if comment exists. Otherwise post new.
  69. behavior: default
  70. # Comments will only post when coverage changes. Furthermore, if a comment
  71. # already exists, and a newer commit results in no coverage change for the
  72. # entire pull, the comment will be deleted.
  73. require_changes: true
  74. require_base: true # must have a base report to post
  75. require_head: true # must have a head report to post
  76. cli:
  77. # This would be used when uploading the ats results
  78. # But we will not be doing that yet
  79. plugins:
  80. pycoverage:
  81. report_type: "json"
  82. runners:
  83. python:
  84. include_curr_dir: true
  85. # Same args used for the backend tests
  86. collect_tests_options:
  87. - "tests/sentry"
  88. - "tests/integration"
  89. - "--ignore=tests/sentry/eventstream/kafka"
  90. - "--ignore=tests/sentry/post_process_forwarder"
  91. - "--ignore=tests/sentry/snuba"
  92. - "--ignore=tests/sentry/search/events"
  93. - "--ignore=tests/sentry/ingest/ingest_consumer/test_ingest_consumer_kafka.py"
  94. - "--ignore=tests/sentry/region_to_control/test_region_to_control_kafka.py"