Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code coverage #6173

Merged
merged 51 commits into from
Jun 12, 2023
Merged

Code coverage #6173

merged 51 commits into from
Jun 12, 2023

Conversation

yasakova-anastasia
Copy link
Contributor

@yasakova-anastasia yasakova-anastasia commented May 19, 2023

Motivation and context

  • Replaced Coveralls with Codecov
  • Added code coverage to full workflow
  • Enabled code coverage for tests

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have added a description of my changes into the CHANGELOG file
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@yasakova-anastasia yasakova-anastasia changed the title [WIP] Code coverage Code coverage May 22, 2023
@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

❗ No coverage uploaded for pull request base (develop@7181946). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #6173   +/-   ##
==========================================
  Coverage           ?   80.88%           
==========================================
  Files              ?      311           
  Lines              ?    35078           
  Branches           ?     6333           
==========================================
  Hits               ?    28372           
  Misses             ?     6463           
  Partials           ?      243           
Components Coverage Δ
cvat-ui 77.11% <0.00%> (?)
cvat-server 84.73% <0.00%> (?)

@yasakova-anastasia
Copy link
Contributor Author

@kirill-sizov, could you please review this PR?

.github/workflows/main.yml Show resolved Hide resolved
.github/workflows/main.yml Show resolved Hide resolved
.github/workflows/main.yml Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
cvat/requirements/base.in Outdated Show resolved Hide resolved
cvat/rqworker.py Outdated Show resolved Hide resolved
@yasakova-anastasia yasakova-anastasia marked this pull request as draft June 9, 2023 12:56
@yasakova-anastasia yasakova-anastasia marked this pull request as ready for review June 9, 2023 13:16
Dockerfile Outdated
@@ -178,6 +178,12 @@ COPY --chown=${USER} wait-for-it.sh manage.py backend_entrypoint.sh ${HOME}/
COPY --chown=${USER} utils/ ${HOME}/utils
COPY --chown=${USER} cvat/ ${HOME}/cvat

ARG COVERAGE_PROCESS_START
RUN if [ "${COVERAGE_PROCESS_START}" ]; then \
python3 -m pip install --no-cache-dir coverage==7.2.3; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the line? It should be installed by 75 line in the file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Let's add the line in production.txt and add a comment that "to collect the coverage for rest api tests. It will be enabled only if COVERAGE_PROCESS_START env is defined." I believe it will be better for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@nmanovic nmanovic merged commit 09a10ca into develop Jun 12, 2023
@bsekachev bsekachev deleted the ay/add-codecov branch June 13, 2023 16:42
SpecLad added a commit to SpecLad/cvat that referenced this pull request Jun 26, 2023
SpecLad added a commit that referenced this pull request Jun 27, 2023
It was accidentally disabled in #6173.

Also, refactor the build steps to make the log easier to read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants