Skip to content

Commit

Permalink
Merge branch 'develop' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jackylamhk committed May 17, 2024
2 parents 2a4ac6b + 59e31b3 commit 2304b2f
Show file tree
Hide file tree
Showing 190 changed files with 4,865 additions and 2,461 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

build:
needs: search_cache
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:

rest_api_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -160,7 +160,8 @@ jobs:
- name: Install SDK
run: |
pip3 install -r ./tests/python/requirements.txt \
-e './cvat-sdk[pytorch]' -e ./cvat-cli
-e './cvat-sdk[pytorch]' -e ./cvat-cli \
--extra-index-url https://download.pytorch.org/whl/cpu
- name: Running REST API and SDK tests
id: run_tests
Expand All @@ -187,7 +188,7 @@ jobs:

unit_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -207,11 +208,10 @@ jobs:
- name: Running OPA tests
run: |
python cvat/apps/iam/rules/tests/generate_tests.py \
--output-dir cvat/apps/iam/rules/
python cvat/apps/iam/rules/tests/generate_tests.py
docker compose run --rm -v "$PWD/cvat/apps/iam/rules/:/mnt/rules" \
cvat_opa test /mnt/rules
docker compose run --rm -v "$PWD:/mnt/src:ro" -w /mnt/src \
cvat_opa test cvat/apps/*/rules
- name: Running unit tests
env:
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:

e2e_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
github.event.pull_request.draft == false &&
!startsWith(github.event.pull_request.title, '[WIP]') &&
!startsWith(github.event.pull_request.title, '[Dependent]')
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down
29 changes: 18 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

build:
needs: search_cache
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:

rest_api_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -170,7 +170,8 @@ jobs:
- name: Install SDK
run: |
pip3 install -r ./tests/python/requirements.txt \
-e './cvat-sdk[pytorch]' -e ./cvat-cli
-e './cvat-sdk[pytorch]' -e ./cvat-cli \
--extra-index-url https://download.pytorch.org/whl/cpu
- name: Run REST API and SDK tests
id: run_tests
Expand Down Expand Up @@ -208,7 +209,7 @@ jobs:

unit_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand All @@ -226,11 +227,10 @@ jobs:
- name: Running OPA tests
run: |
python cvat/apps/iam/rules/tests/generate_tests.py \
--output-dir cvat/apps/iam/rules/
python cvat/apps/iam/rules/tests/generate_tests.py
docker compose run --rm -v "$PWD/cvat/apps/iam/rules/:/mnt/rules" \
cvat_opa test /mnt/rules
docker compose run --rm -v "$PWD:/mnt/src:ro" -w /mnt/src \
cvat_opa test cvat/apps/*/rules
- name: Running unit tests
env:
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:

e2e_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -385,10 +385,17 @@ jobs:
name: cypress_screenshots_${{ matrix.specs }}
path: ${{ github.workspace }}/tests/cypress/screenshots

- name: Uploading cypress videos as an artifact
if: failure()
uses: actions/upload-artifact@v3.1.1
with:
name: cypress_videos_${{ matrix.specs }}
path: ${{ github.workspace }}/tests/cypress/videos

publish_dev_images:
if: github.ref == 'refs/heads/develop'
needs: [rest_api_testing, unit_testing, e2e_testing]
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -427,7 +434,7 @@ jobs:
docker push "${UI_IMAGE_REPO}:dev"
codecov:
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
needs: [unit_testing, e2e_testing, rest_api_testing]
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/regallint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Regal
uses: StyraInc/setup-regal@v0.2.0
uses: StyraInc/setup-regal@v1
with:
version: v0.11.0
- run: regal lint --format=github cvat/apps/iam/rules
version: v0.21.3
- run: regal lint --format=github cvat/apps/*/rules
22 changes: 14 additions & 8 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
check_updates:
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
env:
REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

build:
needs: search_cache
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:

unit_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -153,11 +153,10 @@ jobs:
- name: OPA tests
run: |
python cvat/apps/iam/rules/tests/generate_tests.py \
--output-dir cvat/apps/iam/rules/
python cvat/apps/iam/rules/tests/generate_tests.py
docker compose run --rm -v "$PWD/cvat/apps/iam/rules/:/mnt/rules" \
cvat_opa test /mnt/rules
docker compose run --rm -v "$PWD:/mnt/src:ro" -w /mnt/src \
cvat_opa test cvat/apps/*/rules
- name: REST API and SDK tests
run: |
Expand Down Expand Up @@ -190,7 +189,7 @@ jobs:
e2e_testing:
needs: build
runs-on: ubuntu-latest-big
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -314,6 +313,13 @@ jobs:
name: cypress_screenshots
path: ${{ github.workspace }}/tests/cypress/screenshots

- name: Uploading cypress videos as an artifact
if: failure()
uses: actions/upload-artifact@v3.1.1
with:
name: cypress_videos_${{ matrix.specs }}
path: ${{ github.workspace }}/tests/cypress/videos

- name: Uploading "cvat" container logs as an artifact
if: failure()
uses: actions/upload-artifact@v3.1.1
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ cvat-core/reports
# produced by prepare in the root package.json script
.husky

# produced by cvat/apps/iam/rules/tests/generate_tests.py
/cvat/apps/*/rules/*_test.gen.rego
File renamed without changes.
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@
"python.testing.cwd": "${workspaceFolder}/tests",
"cSpell.words": [
"crowdsourcing"
]
],
"isort.args":["--profile", "black"],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
}
}
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,100 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- scriv-insert-here -->

<a id='changelog-2.13.0'></a>
## \[2.13.0\] - 2024-05-09

### Added

- Quality Report calculation will now also include annotation of type Tag.
(<https://github.com/opencv/cvat/pull/7582>)

- Added feature to show tags of GT and manual job in separate row. Tags of GT job have '(GT)' in their name.
(<https://github.com/cvat-ai/cvat/pull/7774>)

### Changed

- Analytics reports calculation may be initiated manually instead of automatic scheduling
(<https://github.com/cvat-ai/cvat/pull/7805>)

- Update the Nuclio version and related packages/libraries
(<https://github.com/cvat-ai/cvat/pull/7787>)

- Remove keyframe button is disabled when there is only one keyframe element
(<https://github.com/cvat-ai/cvat/pull/7844>)

### Removed

- The `mask_rcnn` function has been removed because it was using python3.6.
In new version of Nuclio python3.6 is no longer supported. Nuclio officially recommends using python3.9.
Running `mask_rcnn` on python3.9 causes errors within the function and package conflicts. (<https://github.com/cvat-ai/cvat/pull/7787>)

### Fixed

- Analytics report calculation fails with timeout because of redundant number of requests to ClickHouse
(<https://github.com/cvat-ai/cvat/pull/7804>)

- Incorrect duration of `change:frame` event
(<https://github.com/cvat-ai/cvat/pull/7817>)

- Infinite loading cloud storage update page when a lot of cloud storages are available for a user
(<https://github.com/cvat-ai/cvat/pull/7823>)

- Opening update CS page sends infinite requests when CS id does not exist
(<https://github.com/cvat-ai/cvat/pull/7828>)

Uploading files with TUS immediately failed when one of the requests failed
(<https://github.com/cvat-ai/cvat/pull/7830>)

- Longer analytics report calculation because of inefficient requests to analytics db
(<https://github.com/cvat-ai/cvat/pull/7833>)

- Cannot read properties of undefined (reading 'addClass')
(<https://github.com/cvat-ai/cvat/pull/7834>)

- Fixed exception 'Could not read property length of undefined' when copy/paste a skeleton point
(<https://github.com/cvat-ai/cvat/pull/7843>)

- Task creation from a video file without keyframes allowing for random iteration
(<https://github.com/cvat-ai/cvat/pull/7838>)

- Cannot read property 'annotations' of null when uploading annotations into a job
(<https://github.com/cvat-ai/cvat/pull/7857>)

- Vertical polyline of two points is difficult to select
(<https://github.com/cvat-ai/cvat/pull/7860>)

- Tracked attribute values are lost when moving a task to a project
(<https://github.com/cvat-ai/cvat/pull/7863>)

### Security

- Disable the nginx server signature by default to make it slightly harder for attackers to find known vulnerabilities.
(<https://github.com/cvat-ai/cvat/pull/7814>)

<a id='changelog-2.12.1'></a>
## \[2.12.1\] - 2024-04-26

### Fixed

- Formats with the custom `track_id` attribute should import `outside` track shapes properly (e.g. `COCO`, `COCO Keypoints`, `Datumaro`, `PASCAL VOC`)
(<https://github.com/opencv/cvat/pull/7669>)

- Inefficient resources fetching in admin panel leading to 504 Gateway Timeout
(<https://github.com/cvat-ai/cvat/pull/7767>)

- Optimized memory usage when retrieving annotations by disabling internal Django QuerySet caching
(<https://github.com/cvat-ai/cvat/pull/7748>)

- Annotations are not shown on the `0` frame sometimes
(<https://github.com/cvat-ai/cvat/pull/7796>)

- Extra requests in PolicyEnforcer when at least one policy is rejected, others are not checked
(<https://github.com/cvat-ai/cvat/pull/7803>)

- Project's `updated_date` was not updated after changing annotations in jobs
(<https://github.com/cvat-ai/cvat/pull/7808>)

<a id='changelog-2.12.0'></a>
## \[2.12.0\] - 2024-04-15

Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ RUN apt-get update && \
pkg-config \
python3-dev \
python3-pip \
libxml2-dev \
libxmlsec1-dev \
libxmlsec1-openssl \
&& rm -rf /var/lib/apt/lists/*

ARG PIP_VERSION
Expand Down Expand Up @@ -119,6 +122,9 @@ RUN apt-get update && \
libldap-2.5-0 \
libpython3.10 \
libsasl2-2 \
libxml2 \
libxmlsec1 \
libxmlsec1-openssl \
nginx \
p7zip-full \
poppler-utils \
Expand Down
4 changes: 4 additions & 0 deletions changelog.d/20231117_132419_andrey_fix_analytics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Fixed calculation of annotation speed metrics for analytics reports
(<https://github.com/opencv/cvat/pull/7144>)
4 changes: 0 additions & 4 deletions changelog.d/20240403_135916_yeek020407_switch_outside.md

This file was deleted.

4 changes: 0 additions & 4 deletions changelog.d/20240415_122324_boris_fixed_admin_504.md

This file was deleted.

0 comments on commit 2304b2f

Please sign in to comment.