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

Docker update to cover OpenEXR branch. #221

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/OCV-PR-Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,25 @@ jobs:
branch: ${{ fromJSON(needs.branch_eval.outputs.branches )}}
include:
- version: '24.04'
image: '24.04:20241031'
image: '24.04:20250207'
jpegxl: true
avif: true
avx2: true
# TODO: enable later
# - version: '24.04_asan'
# image: '24.04:20241031'
# image: '24.04:20250207'
# asan: true
# jpegxl: true
# avif: true
- version: '22.04'
image: '22.04:20230602'
avif: true
plugins: true
lapack: true
- version: '20.04'
image: '20.04:20230413'
image: '20.04:20250207'
limited_api: true
lapack: true

defaults:
run:
Expand Down Expand Up @@ -186,7 +188,7 @@ jobs:
# NOTE: Just keeping this construction here for possible future use:
# ${{ (github.event.repository.name == 'opencv_contrib') && format('''linux-contrib-{0}''', matrix.branch) || '' }}
suite: "[ ${{ (github.event.repository.name == 'opencv_contrib') && '''linux-contrib''' || '''linux''' }} ]"
filter: "[ 'ubuntu-common', ${{ matrix.avx2 && '''ubuntu-avx2''' }} ]"
filter: "[ 'ubuntu-common', ${{ matrix.avx2 && '''ubuntu-avx2''' }}, ${{ matrix.version == '24.04' && matrix.branch == '5.x' && '''ubuntu-24'''}} ]"
enable_python: "true"
enable_java: "true"
suffix: '${{ matrix.version }}_${{ matrix.branch }}'
Expand Down
6 changes: 6 additions & 0 deletions scripts/test-plan-5.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@
"Core_InRangeS/ElemWiseTest.accuracy/0",
"Core_InRange/ElemWiseTest.accuracy/0"
]
},
"ubuntu-24": {
"test_calib": [
"RegisterCamerasTest.hetero1",
"RegisterCamerasTest.hetero2"
]
}
},
"options": {
Expand Down
23 changes: 15 additions & 8 deletions scripts/warnings-handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import re
import sys
from collections import OrderedDict


def is_suppressed(line):
Expand All @@ -18,37 +19,43 @@ def is_suppressed(line):
return False


def warnings_count(filename, verbose):
def warnings_count(filename, verbose, direct):
rx = re.compile(r'warning[: ]', re.I)
warnings = 0
warnings = OrderedDict()
suppressed = 0
total = 0
for line in open(filename):
total += 1
match = rx.search(line)
val = line.rstrip()
if match:
if is_suppressed(line):
suppressed += 1
else:
print("::warning::{}".format(line.rstrip()), flush=True)
warnings += 1
warnings[val] = warnings.get(val, 0) + 1
if direct:
print("::warning::{}".format(val), flush=True)
continue
if verbose:
print(line.rstrip())
print(val)
if not direct:
for k, v in warnings.items():
print("::warning::(x {}) {}".format(v, k), flush=True)
return total, suppressed, warnings

if __name__ == '__main__':

parser = argparse.ArgumentParser(description='Check warnings produced during build')
parser.add_argument('filename', help='Path to the log file.', default='build-log.txt')
parser.add_argument('--direct', action='store_true', help='Print warnings as they are found, do not count duplicates')
parser.add_argument('-v', '--verbose', action='store_true', help='Print all lines and mark warnings')
args = parser.parse_args()

print("::group::Warning check", flush=True)
total, suppressed, warnings = warnings_count(args.filename, args.verbose)
total, suppressed, warnings = warnings_count(args.filename, args.verbose, args.direct)
print("::endgroup::", flush=True)
print("::notice::Warning stats => total lines: {}, suppressed: {}, warnings: {}".format(total, suppressed, warnings), flush=True)
print("::notice::Warning stats => total lines: {}, suppressed: {}, warnings: {}".format(total, suppressed, len(warnings)), flush=True)

if warnings != 0:
if len(warnings) != 0:
sys.exit(1)
sys.exit(0)
Loading