Skip to content

Commit bdba49c

Browse files
authored
Merge pull request #6705 from cyberbotics/sync-master-a3cc78d34
Merge master into develop
2 parents 90cb38d + 96cdd4a commit bdba49c

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.github/workflows/test_suite_linux.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,18 @@ jobs:
130130
if: ${{ contains(github.event.pull_request.labels.*.name, 'test worlds') || github.event_name == 'schedule' }}
131131
runs-on: ubuntu-20.04
132132
steps:
133+
- name: Download Scripts
134+
uses: actions/checkout@v4
135+
with:
136+
sparse-checkout: |
137+
scripts/install/linux_runtime_dependencies.sh
138+
tests/test_worlds.py
139+
sparse-checkout-cone-mode: false
133140
- name: Download Artifacts
134141
uses: actions/[email protected]
135142
with:
136143
name: build-ubuntu-20.04
137144
path: artifact
138-
- name: Get branch name
139-
id: branch-name
140-
uses: tj-actions/[email protected]
141145
- name: Extract Webots and Cache
142146
run: |
143147
tar xjf artifact/webots-*-x86-64*.tar.bz2 -C artifact
@@ -150,12 +154,11 @@ jobs:
150154
python-version: 3.9
151155
- name: Update World, Check Warnings and Validate Cache
152156
run: |
153-
wget https://raw.githubusercontent.com/cyberbotics/webots/${{ steps.branch-name.outputs.current_branch }}/scripts/install/linux_runtime_dependencies.sh && sudo bash linux_runtime_dependencies.sh
157+
sudo bash scripts/install/linux_runtime_dependencies.sh
154158
export LIBGL_ALWAYS_SOFTWARE=true
155159
export WEBOTS_DISABLE_SAVE_SCREEN_PERSPECTIVE_ON_CLOSE=true
156160
export WEBOTS_HOME=$PWD/artifact/webots
157-
wget https://raw.githubusercontent.com/cyberbotics/webots/${{ steps.branch-name.outputs.current_branch }}/tests/test_worlds.py
158-
xvfb-run --auto-servernum python3 test_worlds.py
161+
xvfb-run --auto-servernum python3 tests/test_worlds.py
159162
if [[ "$(diff -qr artifact/ untouched-artifact/ | wc -l)" -ne "0" ]]; then echo Some world and/or wbproj files are not up to date: "$(diff -qr artifact/ untouched-artifact/)"; exit 1; fi
160163
delete-artifacts:
161164
needs: [build, test-suite, test-worlds]

.github/workflows/test_suite_linux_develop.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,18 @@ jobs:
122122
if: ${{ contains(github.event.pull_request.labels.*.name, 'test worlds') || github.event_name == 'schedule' }}
123123
runs-on: ubuntu-20.04
124124
steps:
125+
- name: Download Scripts
126+
uses: actions/checkout@v4
127+
with:
128+
sparse-checkout: |
129+
scripts/install/linux_runtime_dependencies.sh
130+
tests/test_worlds.py
131+
sparse-checkout-cone-mode: false
125132
- name: Download Artifacts
126133
uses: actions/[email protected]
127134
with:
128135
name: build-ubuntu-20.04
129136
path: artifact
130-
- name: Get branch name
131-
id: branch-name
132-
uses: tj-actions/[email protected]
133137
- name: Extract Webots and Cache
134138
run: |
135139
tar xjf artifact/webots-*-x86-64*.tar.bz2 -C artifact
@@ -142,12 +146,11 @@ jobs:
142146
python-version: 3.9
143147
- name: Update World, Check Warnings and Validate Cache
144148
run: |
145-
wget https://raw.githubusercontent.com/cyberbotics/webots/${{ steps.branch-name.outputs.current_branch }}/scripts/install/linux_runtime_dependencies.sh && sudo bash linux_runtime_dependencies.sh
149+
sudo bash scripts/install/linux_runtime_dependencies.sh
146150
export LIBGL_ALWAYS_SOFTWARE=true
147151
export WEBOTS_DISABLE_SAVE_SCREEN_PERSPECTIVE_ON_CLOSE=true
148152
export WEBOTS_HOME=$PWD/artifact/webots
149-
sudo apt install -y wget && wget https://raw.githubusercontent.com/cyberbotics/webots/${{ steps.branch-name.outputs.current_branch }}/tests/test_worlds.py
150-
xvfb-run --auto-servernum python3 test_worlds.py
153+
xvfb-run --auto-servernum python3 tests/test_worlds.py
151154
if [[ "$(diff -qr artifact/ untouched-artifact/ | wc -l)" -ne "0" ]]; then echo Some world and/or wbproj files are not up to date: "$(diff -qr artifact/ untouched-artifact/)"; exit 1; fi
152155
delete-artifacts:
153156
needs: [build, test-suite, test-worlds]

docs/reference/changelog-r2024.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ Released on December **th, 2023.
4343
- Fixed crash when `wb_supervisor_field_get_name` was called with NULL ([#6647](https://github.com/cyberbotics/webots/pull/6647)).
4444
- Fixed bug where the wrong y coordinate was used for one corner of the box drawn to represent a box-plane collision ([#6677](https://github.com/cyberbotics/webots/pull/6677)).
4545
- Fixed a bug where Webots would crash if a geometry was inserted into a `Shape` node used a bounding box ([#6691](https://github.com/cyberbotics/webots/pull/6691)).
46+
- Removed the old `wb_supervisor_field_import_sf_node` and `wb_supervisor_field_import_mf_node` functions from the list of editor autocomplete suggestions ([#6701](https://github.com/cyberbotics/webots/pull/6701)).
4647
- Fixed handling of remote assets from unofficial sources ([#6585](https://github.com/cyberbotics/webots/pull/6585)).

src/webots/core/WbLanguage.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,7 @@ static const char *C_API_FUNCTIONS = "wb_accelerometer_enable "
383383
"wb_supervisor_field_get_mf_rotation "
384384
"wb_supervisor_field_get_mf_string "
385385
"wb_supervisor_field_get_mf_node "
386-
"wb_supervisor_field_import_mf_node "
387386
"wb_supervisor_field_import_mf_node_from_string "
388-
"wb_supervisor_field_import_sf_node "
389387
"wb_supervisor_field_import_sf_node_from_string "
390388
"wb_supervisor_field_insert_mf_bool "
391389
"wb_supervisor_field_insert_mf_color "

src/webots/nodes/utils/WbNodeOperations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ WbNodeOperations::OperationResult WbNodeOperations::importNode(WbNode *parentNod
117117
WbMFNode *mfnode = dynamic_cast<WbMFNode *>(field->value());
118118
assert(mfnode || sfnode);
119119
// index value is assumed to be in range [0, mfnode->size()]
120-
// user input checked in wb_supervisor_field_import_mf_node or WbSceneTree
120+
// user input checked in wb_supervisor_field_import_mf_node_from_string or WbSceneTree
121121
assert(!mfnode || (itemIndex >= 0 && itemIndex <= mfnode->size()));
122122
#endif
123123

0 commit comments

Comments
 (0)