Skip to content

Commit ce5ac37

Browse files
committed
Merge remote-tracking branch 'upstream/master' into OpenEXR_copyimage_impl
2 parents 5c205ab + 0f033b0 commit ce5ac37

File tree

209 files changed

+6196
-1845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+6196
-1845
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ SpacesInContainerLiterals: true
121121
SpacesInCStyleCastParentheses: false
122122
SpacesInParentheses: false
123123
SpacesInSquareBrackets: false
124-
Standard: c++14
124+
Standard: c++17
125125
StatementMacros:
126126
- Q_UNUSED
127127
- QT_REQUIRE_VERSION

.git-blame-ignore-revs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ f701a76b745b6ddba41c77b24a1ea7e1f48ae0b4
3636
# clang-format: Adjust alignment of line continuation backslashes (#2664)
3737
742173e39588e07cf43cbe7b49dd22d624a48388
3838
d8810c5365ea88e2b1bce6155b7b495c18f2f9bc
39+
40+
# style: update our formatting standard to clang-format 17.0 and C++17 (#4096)
41+
c618d45e13dcc382fb07a948be84b8074d1ed481
42+
b88b82ffe9b3c4fcf04bf17bacc4ee77b2d1ed92

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,40 @@ assignees: ''
88
---
99

1010
**Describe the bug**
11+
1112
A clear and concise description of what the bug is. What happened, and
1213
what did you expect to happen instead.
1314

15+
16+
**OpenImageIO version and dependencies**
17+
18+
Please run `oiiotool --buildinfo` and paste the output here.
19+
20+
Also please tell us if there was anything unusual about your environment or
21+
nonstandard build options you used.
22+
23+
1424
**To Reproduce**
25+
1526
Steps to reproduce the behavior:
1627
1. Do this...
1728
2. Then this...
1829
3. Then THIS happens (reproduce the exact error message if you can)
30+
4. Whereas I expected this other specific thing to happen instead.
31+
32+
If the problem occurs in your C++ or Python code that uses the OIIO APIs, can
33+
you also reproduce the problem using oiiotool? If so, please describe the
34+
exact command line that reproduces the problem. (Being able to reproduce the
35+
problem using only OIIO components makes it a lot easier for the developers
36+
investigate and makes it clear it's not your application's fault.)
1937

20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
2238

2339
**Evidence**
24-
Do you have error messages? (please quote exactly) Screenshots? Example
25-
command lines or scripts that reliably reproduce the error? If it only
26-
happens with certain image files, can you attach the smallest image you
27-
can make that reproduces the problem?
28-
29-
**Platform information:**
30-
- OIIO branch/version:
31-
- OS:
32-
- C++ compiler:
33-
- Any non-default build flags when you build OIIO:
40+
41+
- Error messages (paste them here exactly)
42+
- Screenshots (if helpful)
43+
- Example input: If the problem only happens with certain image files, please
44+
attach the smallest image you can make that reproduces the problem.
3445

3546

3647
**IF YOU ALREADY HAVE A CODE FIX:** There is no need to file a separate issue,

.github/workflows/analysis.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,28 @@ jobs:
4343
- desc: sonar gcc9/C++14 py39 boost1.76 exr3.1 ocio2.2
4444
nametag: static-analysis-sonar
4545
os: ubuntu-latest
46-
vfxyear: 2022
47-
vfxsuffix: -clang11
48-
cxx_std: 14
49-
python_ver: 3.9
46+
container: aswf/ci-osl:2023-clang15
47+
vfxyear: 2023
48+
cxx_std: 17
49+
python_ver: "3.10"
5050
simd: "avx2,f16c"
51-
fmt_ver: 8.1.1
52-
pybind11_ver: v2.9.0
51+
fmt_ver: 10.1.1
52+
pybind11_ver: v2.10.0
5353
coverage: 1
5454
# skip_tests: 1
5555
sonar: 1
56-
setenvs: export SONAR_SCANNER_VERSION=4.7.0.2747
57-
SONAR_SERVER_URL="https://sonarcloud.io"
58-
BUILD_WRAPPER_OUT_DIR=bw_output
59-
OIIO_CMAKE_BUILD_WRAPPER="build-wrapper-linux-x86-64 --out-dir bw_output"
56+
setenvs: export SONAR_SERVER_URL="https://sonarcloud.io"
57+
BUILD_WRAPPER_OUT_DIR=/__w/OpenImageIO/OpenImageIO/bw_output
58+
OIIO_CMAKE_BUILD_WRAPPER="build-wrapper-linux-x86-64 --out-dir /__w/OpenImageIO/OpenImageIO/bw_output"
6059
CMAKE_BUILD_TYPE=Debug
6160
CMAKE_UNITY_BUILD=OFF
6261
CODECOV=1
6362
CTEST_TEST_TIMEOUT=1200
6463
OIIO_CMAKE_FLAGS="-DOIIO_TEX_IMPLEMENT_VARYINGREF=OFF"
65-
OPENCOLORIO_VERSION=v2.2.0
6664

6765
runs-on: ${{ matrix.os }}
6866
container:
69-
image: aswf/ci-osl:${{matrix.vfxyear}}${{matrix.vfxsuffix}}
67+
image: ${{ matrix.container }}
7068
env:
7169
CXX: ${{matrix.cxx_compiler}}
7270
CC: ${{matrix.cc_compiler}}
@@ -85,15 +83,15 @@ jobs:
8583
# uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1.4.3
8684
# with:
8785
# egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
88-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
86+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8987
with:
9088
fetch-depth: '0'
9189
- name: Prepare ccache timestamp
9290
id: ccache_cache_keys
93-
run: echo "::set-output name=date::`date -u +'%Y-%m-%dT%H:%M:%SZ'`"
91+
run: echo "date=`date -u +'%Y-%m-%dT%H:%M:%SZ'`" >> $GITHUB_OUTPUT
9492
- name: ccache
9593
id: ccache
96-
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
94+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
9795
with:
9896
path: /tmp/ccache
9997
key: ${{github.job}}-${{matrix.nametag}}-${{steps.ccache_cache_keys.outputs.date}}
@@ -106,6 +104,9 @@ jobs:
106104
run: |
107105
${{matrix.depcmds}}
108106
src/build-scripts/gh-installdeps.bash
107+
- name: Install sonar-scanner and build-wrapper
108+
if: matrix.sonar == '1'
109+
uses: sonarsource/sonarcloud-github-c-cpp@e4882e1621ad2fb48dddfa48287411bed34789b1 # v2.0.2
109110
- name: Build
110111
run: src/build-scripts/ci-build.bash
111112
- name: Testsuite
@@ -120,8 +121,15 @@ jobs:
120121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121122
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
122123
run: |
123-
sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}" --define sonar.cfamily.build-wrapper-output="build/bw_output" --define sonar.cfamily.gcov.reportsPath="_coverage"
124-
# - uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
124+
which sonar-scanner
125+
ls -l /__w/OpenImageIO/OpenImageIO/bw_output
126+
echo "BUILD_OUTPUT_DIR is " "${{ env.BUILD_WRAPPER_OUT_DIR }}"
127+
find . -name "*.gcov" -print
128+
# sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
129+
time sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}" --define sonar.cfamily.build-wrapper-output="$BUILD_WRAPPER_OUT_DIR" --define sonar.cfamily.gcov.reportsPath="_coverage" --define sonar.cfamily.threads="$PARALLEL"
130+
# Consult https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-cli/ for more information and options
131+
132+
# - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
125133
# if: failure()
126134
# with:
127135
# name: oiio-${{github.job}}-${{matrix.nametag}}

0 commit comments

Comments
 (0)