Skip to content

Commit 17ea834

Browse files
committed
Squash merge avah/rename_to_gameplay_tests into avah/combine_simulated_and_field_tests
1 parent 159da85 commit 17ea834

110 files changed

Lines changed: 385 additions & 389 deletions

File tree

Some content is hidden

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

.github/workflows/main.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ jobs:
7878
cd src
7979
bazel build --show_timestamps --copt=-O3 --verbose_failures \
8080
-- //... -//software:unix_full_system \
81-
-//software/simulated_tests/... \
81+
-//software/gameplay_tests/... \
8282
-//software/ai/hl/... \
83-
-//software/field_tests/... \
8483
-//software/embedded/... \
8584
-//toolchains/cc/... \
8685
-//software:unix_full_system_tar_gen
@@ -121,9 +120,8 @@ jobs:
121120
cd src
122121
bazel test --copt=-O3 --show_timestamps --verbose_failures \
123122
-- //... -//software:unix_full_system \
124-
-//software/simulated_tests/... \
123+
-//software/gameplay_tests/... \
125124
-//software/ai/hl/... \
126-
-//software/field_tests/... \
127125
-//software/ai/navigator/... \
128126
-//toolchains/cc/... \
129127
-//software:unix_full_system_tar_gen
@@ -153,14 +151,15 @@ jobs:
153151
- uses: ./.github/actions/environment-setup
154152

155153
- name: Simulated Test Run
154+
# TODO (#2908): reenable once field tests can be ran as simulated
155+
# //software/gameplay_tests/... \
156156
run: |
157157
cd src
158-
bazel test //software/simulated_tests:requirements_test
158+
bazel test //software/gameplay_tests:requirements_test
159159
bazel test --copt=-O3 --flaky_test_attempts=3 --show_timestamps \
160160
--test_arg="--ci_mode" \
161161
-- //software:unix_full_system \
162-
//software/simulated_tests/... \
163-
-//software/simulated_tests:requirements_test \
162+
-//software/gameplay_tests:requirements_test \
164163
//software/ai/hl/... \
165164
//software/ai/navigator/...
166165

scripts/compile_pip_requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ BAZEL_ROOT_DIR="$CURR_DIR/../src"
1717
cd $BAZEL_ROOT_DIR
1818
bazel run //software/thunderscope:requirements.update
1919
bazel run //software/embedded/ansible:requirements.update
20-
bazel run //software/simulated_tests:requirements.update
20+
bazel run //software/gameplay_tests:requirements.update
2121
bazel run //software/embedded/robot_diagnostics_cli:requirements.update
2222
bazel run //starlark/nanopb:requirements.update

src/MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ pip.parse(
5050
)
5151
use_repo(pip, "ansible_deps")
5252
pip.parse(
53-
hub_name = "simulated_tests_deps",
53+
hub_name = "gameplay_tests_deps",
5454
python_interpreter = "/opt/tbotspython/bin/python",
5555
python_version = "3.12",
56-
requirements_lock = "//software/simulated_tests:requirements_lock.txt",
56+
requirements_lock = "//software/gameplay_tests:requirements_lock.txt",
5757
)
58-
use_repo(pip, "simulated_tests_deps")
58+
use_repo(pip, "gameplay_tests_deps")
5959
pip.parse(
6060
hub_name = "robot_diagnostics_cli_deps",
6161
python_interpreter = "/opt/tbotspython/bin/python",

src/software/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ py_library(
125125
name = "conftest",
126126
srcs = ["conftest.py"],
127127
deps = [
128-
"//software/field_tests:field_test_fixture",
129-
"//software/simulated_tests:simulated_test_fixture",
128+
"//software/gameplay_tests:field_test_fixture",
129+
"//software/gameplay_tests:simulated_test_fixture",
130130
],
131131
)

src/software/ai/hl/stp/play/BUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@simulated_tests_deps//:requirements.bzl", "requirement")
1+
load("@gameplay_tests_deps//:requirements.bzl", "requirement")
22

33
package(default_visibility = ["//visibility:public"])
44

@@ -78,7 +78,7 @@ py_test(
7878
],
7979
deps = [
8080
"//software:conftest",
81-
"//software/simulated_tests/validation:validations",
81+
"//software/gameplay_tests/validation:validations",
8282
requirement("pytest"),
8383
],
8484
)
@@ -92,7 +92,7 @@ py_test(
9292
main = "stop_play_test.py",
9393
deps = [
9494
"//software:conftest",
95-
"//software/simulated_tests/validation:validations",
95+
"//software/gameplay_tests/validation:validations",
9696
requirement("pytest"),
9797
],
9898
)
@@ -147,7 +147,7 @@ py_test(
147147
"//proto:software_py_proto",
148148
"//proto:tbots_py_proto",
149149
"//software:conftest",
150-
"//software/simulated_tests/validation:validations",
150+
"//software/gameplay_tests/validation:validations",
151151
requirement("pytest"),
152152
],
153153
)

src/software/ai/hl/stp/play/ball_placement/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@simulated_tests_deps//:requirements.bzl", "requirement")
1+
load("@gameplay_tests_deps//:requirements.bzl", "requirement")
22

33
package(default_visibility = ["//visibility:public"])
44

@@ -39,7 +39,7 @@ py_test(
3939
],
4040
deps = [
4141
"//software:conftest",
42-
"//software/simulated_tests/validation:validations",
42+
"//software/gameplay_tests/validation:validations",
4343
requirement("pytest"),
4444
],
4545
)

src/software/ai/hl/stp/play/ball_placement/ball_placement_play_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
from proto.import_all_protos import *
66
from proto.ssl_gc_common_pb2 import Team
77
from proto.message_translation.tbots_protobuf import create_world_state
8-
from software.simulated_tests.validation.ball_enters_region import (
8+
from software.gameplay_tests.validation.ball_enters_region import (
99
BallAlwaysStaysInRegion,
1010
BallEventuallyEntersRegion,
1111
)
12-
from software.simulated_tests.validation.robot_enters_region import (
12+
from software.gameplay_tests.validation.robot_enters_region import (
1313
RobotEventuallyExitsRegion,
1414
)
15-
from software.simulated_tests.simulated_test_fixture import (
15+
from software.gameplay_tests.simulated_test_fixture import (
1616
pytest_main,
1717
)
1818

src/software/ai/hl/stp/play/crease_defense/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@simulated_tests_deps//:requirements.bzl", "requirement")
1+
load("@gameplay_tests_deps//:requirements.bzl", "requirement")
22

33
package(default_visibility = ["//visibility:public"])
44

@@ -35,7 +35,7 @@ py_test(
3535
],
3636
deps = [
3737
"//software:conftest",
38-
"//software/simulated_tests/validation:validations",
38+
"//software/gameplay_tests/validation:validations",
3939
requirement("pytest"),
4040
],
4141
)

src/software/ai/hl/stp/play/crease_defense/crease_defense_play_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
from proto.import_all_protos import *
44
from proto.message_translation.tbots_protobuf import create_world_state
55
from proto.ssl_gc_common_pb2 import Team
6-
from software.simulated_tests.simulated_test_fixture import (
6+
from software.gameplay_tests.simulated_test_fixture import (
77
pytest_main,
88
)
9-
from software.simulated_tests.validation.robot_speed_threshold import (
9+
from software.gameplay_tests.validation.robot_speed_threshold import (
1010
RobotSpeedEventuallyBelowThreshold,
1111
)
12-
from software.simulated_tests.validation.robot_enters_region import (
12+
from software.gameplay_tests.validation.robot_enters_region import (
1313
NumberOfRobotsEventuallyEntersRegion,
1414
)
15-
from software.simulated_tests.validation.delay_validation import DelayValidation
15+
from software.gameplay_tests.validation.delay_validation import DelayValidation
1616

1717

1818
def test_crease_defense_play(simulated_test_runner):

src/software/ai/hl/stp/play/defense/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@simulated_tests_deps//:requirements.bzl", "requirement")
1+
load("@gameplay_tests_deps//:requirements.bzl", "requirement")
22

33
package(default_visibility = ["//visibility:public"])
44

@@ -38,7 +38,7 @@ py_test(
3838
],
3939
deps = [
4040
"//software:conftest",
41-
"//software/simulated_tests/validation:validations",
41+
"//software/gameplay_tests/validation:validations",
4242
requirement("pytest"),
4343
],
4444
)

0 commit comments

Comments
 (0)