Skip to content

Commit 25665f5

Browse files
Merge branch 'main' into fixes_#1302
Signed-off-by: Jean-Christophe Morin <[email protected]>
2 parents 3ff62e9 + 6bdba31 commit 25665f5

File tree

217 files changed

+4991
-11228
lines changed

Some content is hidden

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

217 files changed

+4991
-11228
lines changed

.github/actions/setup-python/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
steps:
1616
- name: Set up Python ${{ inputs.python-version }} with actions/setup-python
1717
if: ${{ inputs.python-version != '2.7' }}
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ inputs.python-version }}
2121

.github/dependabot.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Set update schedule for GitHub Actions
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
# Check for updates to GitHub Actions every week
8+
interval: "weekly"
9+
10+
# https://github.com/dependabot/dependabot-core/issues/6704
11+
- package-ecosystem: "github-actions"
12+
directory: "/.github/actions/setup-python"
13+
schedule:
14+
# Check for updates to GitHub Actions every week
15+
interval: "weekly"
16+
17+
- package-ecosystem: "pip"
18+
directory: "/docs"
19+
schedule:
20+
# Check for updates to GitHub Actions every week
21+
interval: "weekly"

.github/docker/rez-win-base/Dockerfile

-34
This file was deleted.

.github/docker/rez-win-py/Dockerfile

-65
This file was deleted.

.github/docker/rez-win-py/entrypoint.ps1

-55
This file was deleted.

.github/scripts/store_benchmark.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def store_result():
5959
destdir = '-'.join((
6060
time.strftime("%Y.%m.%d"),
6161
"%d.%d" % sys.version_info[:2],
62-
_rez_version
62+
# TODO: We could read the version from summary.json...
63+
_rez_version,
6364
))
6465

6566
destpath = os.path.join(artifacts_dir, destdir)

.github/workflows/benchmark.yaml

+47-46
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,24 @@ name: benchmark
55
on:
66
release:
77
types: [released]
8+
pull_request:
9+
types: [opened, synchronize, reopened, labeled]
810

911
jobs:
1012
run_benchmark:
1113
name: run_benchmark
1214
runs-on: ubuntu-latest
1315

16+
if: ${{ github.event_name == 'release' || contains(github.event.pull_request.labels.*.name, 'run-benchmarks') }}
17+
1418
strategy:
1519
matrix:
1620
python-version:
17-
- '2.7'
1821
- '3.7'
1922

20-
# without this, we're sometimes getting at the end of this job:
21-
# '[error] The operation was canceled'.
22-
# Do we hit a resource limit?
23-
#
24-
max-parallel: 1
25-
2623
steps:
2724
- name: Checkout
28-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2926

3027
- name: Setup python ${{ matrix.python-version }}
3128
uses: ./.github/actions/setup-python
@@ -37,11 +34,6 @@ jobs:
3734
run: |
3835
mkdir ./installdir
3936
40-
if [[ "${{ matrix.python-version }}" == "2.7" ]]; then
41-
eval "$(conda shell.bash hook)"
42-
conda activate python
43-
fi
44-
4537
python ./install.py ./installdir
4638
4739
- name: Run Benchmark
@@ -53,13 +45,9 @@ jobs:
5345
5446
- name: Validate Result
5547
run: |
56-
if [[ "${{ matrix.python-version }}" == "2.7" ]]; then
57-
eval "$(conda shell.bash hook)"
58-
conda activate python
59-
fi
6048
python ./.github/scripts/validate_benchmark.py
6149
62-
- uses: actions/upload-artifact@v3
50+
- uses: actions/upload-artifact@v4
6351
with:
6452
name: "benchmark-result-${{ matrix.python-version }}"
6553
path: ./out
@@ -72,26 +60,20 @@ jobs:
7260
strategy:
7361
matrix:
7462
python-version:
75-
- '2.7'
7663
- '3.7'
7764

7865
# so we don't have jobs trying to push to git at the same time
7966
max-parallel: 1
8067

8168
steps:
82-
- name: Setup python ${{ matrix.python-version }}
83-
uses: ./.github/actions/setup-python
84-
with:
85-
python-version: ${{ matrix.python-version }}
86-
os: ubuntu
87-
88-
- uses: actions/download-artifact@v3
69+
- uses: actions/download-artifact@v4
8970
with:
9071
name: "benchmark-result-${{ matrix.python-version }}"
9172
path: .
9273

93-
- name: Checkout
94-
uses: actions/checkout@v3
74+
- name: Checkout (release)
75+
uses: actions/checkout@v4
76+
if: ${{ github.event_name =='release' }}
9577
with:
9678
ref: main
9779
path: src
@@ -100,7 +82,20 @@ jobs:
10082
# protected branch (main) from this workflow.
10183
# See https://github.community/t/how-to-push-to-protected-branches-in-a-github-action/16101/14
10284
#
103-
token: "${{ secrets.GH_ACTION_TOKEN }}"
85+
# Disable for now until we find a better solution.
86+
# token: "${{ secrets.GH_ACTION_TOKEN }}"
87+
88+
- name: Checkout (pr)
89+
uses: actions/checkout@v4
90+
if: ${{ github.event_name !='release' }}
91+
with:
92+
path: src
93+
94+
- name: Setup python ${{ matrix.python-version }}
95+
uses: ./src/.github/actions/setup-python
96+
with:
97+
python-version: ${{ matrix.python-version }}
98+
os: ubuntu-latest
10499

105100
# Note failing due to
106101
# https://github.com/actions/virtual-environments/issues/675
@@ -114,26 +109,32 @@ jobs:
114109
115110
- name: Store Benchmark Result
116111
run: |
117-
if [[ "${{ matrix.python-version }}" == "2.7" ]]; then
118-
eval "$(conda shell.bash hook)"
119-
conda activate python
120-
fi
121112
python ./.github/scripts/store_benchmark.py
122113
working-directory: src
123114

124-
- name: Setup git config
115+
- name: Create summary
125116
run: |
126-
git config user.name 'github-actions[bot]'
127-
git config user.email 'github-actions[bot]@users.noreply.github.com'
117+
echo '<details>' >> $GITHUB_STEP_SUMMARY
118+
echo '<summary>Results</summary>' >> $GITHUB_STEP_SUMMARY
119+
cat metrics/benchmarking/RESULTS.md >> $GITHUB_STEP_SUMMARY
120+
echo '</details>' >> $GITHUB_STEP_SUMMARY
128121
working-directory: src
129122

130-
- name: Git commit and push
131-
run: |
132-
if [[ "$(git status --porcelain)" == "" ]]; then
133-
echo "Nothing new to commit"
134-
else
135-
git add --all
136-
git commit -m "Generated from GitHub "${{ github.workflow }}" Workflow"
137-
git push origin main
138-
fi
139-
working-directory: src
123+
# - name: Setup git config
124+
# if: ${{ github.event_name == 'release' }}
125+
# run: |
126+
# git config user.name 'github-actions[bot]'
127+
# git config user.email 'github-actions[bot]@users.noreply.github.com'
128+
# working-directory: src
129+
130+
# - name: Git commit and push
131+
# if: ${{ github.event_name == 'release' }}
132+
# run: |
133+
# if [[ "$(git status --porcelain)" == "" ]]; then
134+
# echo "Nothing new to commit"
135+
# else
136+
# git add --all
137+
# git commit -m "Generated from GitHub "${{ github.workflow }}" Workflow"
138+
# git push origin main
139+
# fi
140+
# working-directory: src

.github/workflows/copyright.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: 3
2626

0 commit comments

Comments
 (0)