-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathrepo.toml
More file actions
833 lines (741 loc) · 34.1 KB
/
repo.toml
File metadata and controls
833 lines (741 loc) · 34.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
########################################################################################################################
# Repo tool base settings
########################################################################################################################
[repo]
logging = "warn"
# Use Kit Template repo configuration as a base. Only override things specific to the repo.
import_configs = [
"${root}/_repo/deps/repo_kit_tools/kit-template/repo.toml",
"${root}/repo_public.toml"
]
import_optional_configs = [
"${root}/repo_internal.toml"
]
# Reposiory Name. It is used for solution name and final package name
name = "rtx_remix"
########################################################################################################################
# Test Runner
########################################################################################################################
# Run all test suites
[repo_test.suites.alltests]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.alltests.group]]
# Run all test
include = ["tests-lightspeed.*${shell_ext}", "tests-omni.flux.*${shell_ext}"]
exclude = []
"platform:linux-x86_64".include = [# we only test pip archive for linux
"tests-omni.flux.pip_archive${shell_ext}",
]
"platform:linux-x86_64".exclude = []
args = [
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 1800
# Run lightspeed linux unit test suite
[repo_test.suites.lss_unit_linux]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.lss_unit_linux.group]]
include = [
"tests-lightspeed.*${shell_ext}",
]
exclude = []
"platform:linux-x86_64".include = [] # we only test pip archive for linux
"platform:linux-x86_64".exclude = []
args = [
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='lightspeed.*.tests.unit.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 300
# Run flux linux unit test suite
[repo_test.suites.flux_unit_linux]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.flux_unit_linux.group]]
include = [
"tests-omni.flux.*${shell_ext}",
]
exclude = []
"platform:linux-x86_64".include = [# we only test pip archive for linux
"tests-omni.flux.pip_archive${shell_ext}",
]
"platform:linux-x86_64".exclude = []
args = [
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='omni.flux.*.tests.unit.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 300
# Run lightspeed unit test suite, names starting with a-o
[repo_test.suites.lss_unit_a2o]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.lss_unit_a2o.group]]
include = [
"tests-lightspeed.[a-o]*${shell_ext}",
]
exclude = []
args = [
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='lightspeed.*.tests.unit.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 900
# Run flux unit test suite, names starting with a-o
[repo_test.suites.flux_unit_a2o]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.flux_unit_a2o.group]]
include = [
"tests-omni.flux.[a-o]*${shell_ext}",
]
exclude = []
args = [
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='omni.flux.*.tests.unit.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 900
# Run lightspeed unit test suite, names starting with p-z
[repo_test.suites.lss_unit_p2z]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.lss_unit_p2z.group]]
include = [
"tests-lightspeed.[p-z]*${shell_ext}",
]
exclude = []
args = [
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='lightspeed.*.tests.unit.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 900
# Run flux unit test suite, names starting with p-z
[repo_test.suites.flux_unit_p2z]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.flux_unit_p2z.group]]
include = [
"tests-omni.flux.[p-z]*${shell_ext}",
]
exclude = []
args = [
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='omni.flux.*.tests.unit.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 900
# Run lightspeed end-to-end test suite, names starting with a-s
[repo_test.suites.lss_e2e_a2s]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.lss_e2e_a2s.group]]
include = [
"tests-lightspeed.[a-s]*${shell_ext}",
"tests-lightspeed.trex.[a-p]*${shell_ext}", # trex is so common, we have to split it
]
exclude = []
"platform:linux-x86_64".include = [] # we only test pip archive for linux
"platform:linux-x86_64".exclude = []
args = [
"-n", "default", # skip startup tests for e2e, they will run in unit
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='lightspeed.*.tests.e2e.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 1800
# Run flux end-to-end test suite, names starting with a-s
[repo_test.suites.flux_e2e_a2s]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.flux_e2e_a2s.group]]
include = [
"tests-omni.flux.[a-s]*${shell_ext}",
]
exclude = []
"platform:linux-x86_64".include = [
"tests-omni.flux.pip_archive${shell_ext}",
] # we only test pip archive for linux
"platform:linux-x86_64".exclude = []
args = [
"-n", "default", # skip startup tests for e2e, they will run in unit
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='omni.flux.*.tests.e2e.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 1800
# Run lightspeed end-to-end test suite, names starting with t-z
[repo_test.suites.lss_e2e_t2z]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.lss_e2e_t2z.group]]
include = [
"tests-lightspeed.[t-z]*${shell_ext}",
]
serial = [
"tests-lightspeed.trex.viewports.shared.widget${shell_ext}",
]
exclude = [
"tests-lightspeed.trex.[a-p]*${shell_ext}", # trex is so common, we have to split it (these are run in a2s above)
]
"platform:linux-x86_64".include = [] # we only test pip archive for linux
"platform:linux-x86_64".exclude = []
args = [
"-n", "default", # skip startup tests for e2e, they will run in unit
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='lightspeed.*.tests.e2e.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 1800
# Run end-to-end test suite, names starting with t-z
[repo_test.suites.flux_e2e_t2z]
kind = "glob_and_exec"
path = "${test_root}"
[[repo_test.suites.flux_e2e_t2z.group]]
include = [
"tests-omni.flux.[t-z]*${shell_ext}",
]
exclude = []
"platform:linux-x86_64".include = [
"tests-omni.flux.pip_archive${shell_ext}",
] # we only test pip archive for linux
"platform:linux-x86_64".exclude = []
args = [
"-n", "default", # skip startup tests for e2e, they will run in unit
"--portable", "--portable-root", "${root}/portable",
"--/exts/omni.kit.test/runTestsFilter='omni.flux.*.tests.e2e.*'",
"--/exts/omni.kit.test/testExtCodeChangeAnalyzerEnabled=False",
"--/exts/omni.kit.test/testExtRetryStrategy='retry-on-failure'",
"--/exts/omni.kit.test/testExtMaxTestRunCount=3",
"--", # Every parameter after will be passed directly to each extension tests as parameters
"--/exts/omni.kit.registry.nucleus/accounts/0/read=svc-kit-extension-viewer:Trgkyw25PB6SFLV9MaACfp",
"--no-window",
]
timeout = 1800
########################################################################################################################
# Packaging
########################################################################################################################
[repo_package]
[repo_package.packages.main_package]
archive_format = "zip"
replace_authors_in_kit_extensions = true
strip_package_infos = true
exclude_kit_extensions_for_thin_packaging = false
windows_max_path_length = 240
# temp for fat packaging and enterprise builds until pipeline changes are complete: @gamato
files_exclude = [
["**/*.pdb"],
["**/*.exp"],
# ["kit/**"],
["baseapp/**"],
["extsbuild/**"],
["cache/**"],
["data/**"],
["logs/**"],
["apps/kit.portable"],
]
# package content
release.files = [
["**"],
]
release.files_exclude = [
["**/*.pdb"],
["**/*.exp"],
# ["kit/**"],
["apps/kit.portable"],
["kit/python/Scripts/**"],
]
"linux-x86_64".files_strip = [
["**/*.so"],
]
# temp until fix
"linux-x86_64".files_strip_exclude = [
["**/*tbb*.so"],
["*/pip_prebundle/PIL/*"],
]
#######################################################################################################################
# Section for "pre build", "post build" step configuration.
#######################################################################################################################
[repo_build]
# Build is disabled but pre-build commands are still executed
# Windows-only pre-build commands, all standard commands + pywin32 installation
pre_build."platform:windows-x86_64".commands = [
# Install pywin32 to the python environment directly (not through pip_flux.toml site packages or it will break)
["${root}/_build/${platform}/${config}/kit/python/python${exe_ext}", "-m", "pip", "install", "pywin32"],
# Regenerate Pyright config from VSCode settings dynamic extraPaths
["${root}/_build/${platform}/${config}/kit/python/python${exe_ext}", "${root}/tools/utils/update_pyright_from_settings.py"],
# Regenerate PyCharm source roots from source/extensions
["${root}/_build/${platform}/${config}/kit/python/python${exe_ext}", "${root}/tools/utils/update_pycharm_sources.py"],
# Generate the stubgen config file
["${root}/repo${shell_ext}", "stubgen", "-c", "${config}"],
# Generate a shortcut to run the Mass Ingestion CLI in LSS
["${root}/_build/${platform}/${config}/kit/kit${exe_ext}", "${root}/_build/${platform}/${config}/apps/lightspeed.app.trex.validation_cli_generator.kit", "--no-window", "--/app/extensions/excluded/0='omni.kit.splash' --/app/extensions/excluded/1='omni.kit.window.splash' --/app/settings/persistent=0 --/app/settings/loadUserConfig=0 --/structuredLog/enable=0 --/app/hangDetector/enabled=0 --/crashreporter/skipOldDumpUpload=1 --/app/content/emptyStageOnStart=1", "--/app/file/ignoreUnsavedOnExit=1", "--/app/fastShutdown=1", "--/app/quitAfter=10", "--exec", "${root}/tools/custom/generate_mass_cli.py"],
["${root}/_build/${platform}/${config}/kit/kit${exe_ext}", "${root}/_build/${platform}/${config}/apps/omni.flux.app.service.documentation_cli_generator.kit", "--no-window", "--exec", "${root}/tools/custom/generate_app.py -id omni.flux.service.documentation -n omni.flux.app.service.documentation.cli"],
]
# Standard pre-build commands
pre_build.commands = [
# Regenerate Pyright config from VSCode settings dynamic extraPaths
["${root}/_build/${platform}/${config}/kit/python/python${exe_ext}", "${root}/tools/utils/update_pyright_from_settings.py"],
# Regenerate PyCharm source roots from source/extensions
["${root}/_build/${platform}/${config}/kit/python/python${exe_ext}", "${root}/tools/utils/update_pycharm_sources.py"],
# Generate the stubgen config file
["${root}/repo${shell_ext}", "stubgen", "-c", "${config}"],
# Generate a shortcut to run the Mass Ingestion CLI in LSS
["${root}/_build/${platform}/${config}/kit/kit${exe_ext}", "${root}/_build/${platform}/${config}/apps/lightspeed.app.trex.validation_cli_generator.kit", "--no-window", "--/app/extensions/excluded/0='omni.kit.splash' --/app/extensions/excluded/1='omni.kit.window.splash' --/app/settings/persistent=0 --/app/settings/loadUserConfig=0 --/structuredLog/enable=0 --/app/hangDetector/enabled=0 --/crashreporter/skipOldDumpUpload=1 --/app/content/emptyStageOnStart=1", "--/app/file/ignoreUnsavedOnExit=1", "--/app/fastShutdown=1", "--/app/quitAfter=10", "--exec", "${root}/tools/custom/generate_mass_cli.py"],
["${root}/_build/${platform}/${config}/kit/kit${exe_ext}", "${root}/_build/${platform}/${config}/apps/omni.flux.app.service.documentation_cli_generator.kit", "--no-window", "--exec", "${root}/tools/custom/generate_app.py -id omni.flux.service.documentation -n omni.flux.app.service.documentation.cli"],
]
[repo_build.fetch.pip]
# List of pip files to pip install from (in order)
files_to_pull = [
"${root}/deps/pip_flux.toml",
"${root}/deps/pip_internal.toml",
]
[repo_build.build]
enabled = false
# Disable linbuild until we have a public image available.
[repo_build.docker]
enabled = false
[repo_stubgen]
exts_exclude = [
"omni.flux.pip_archive",
]
[repo_build.vscode]
# Fill up 'python.analysis.extraPaths' of .vscode/settings.json file
write_python_paths_in_settings_json = true
# Settings template file to copy from
settings_template_file = "${root}/.vscode/settings.template.json"
########################################################################################################################
# Extensions publisher
########################################################################################################################
[repo_publish_exts]
configs = ["release"]
platforms = ["windows-x86_64"]
# Extensions to publish, include and exclude among those discovered by kit. Wildcards are supported.
exts.include = [
"lightspeed.*",
"omni.flux.*",
"omni.etm.list.lightspeed_rtx",
]
exts."platform:linux-x86_64".include = [
"omni.flux.pip_archive.*",
] # we only test pip archive for linux
exts.exclude = [
"lightspeed_example.*",
]
# verify before publishing
# skip so that lightspeed.apps can be published without separate changelogs
publish_verification = false
# To be able to publish with an older Kit you can update settings for a publishing tool to set an account from the env
# vars provided by Vault (assuming you use shared CI yml scripts, otherwise update your scripts too):
kit_extra_args = [
"--/exts/omni.kit.registry.nucleus/accounts/0/read=${env:OMNI_KIT_EXTENSIONS_USERNAME}:${env:OMNI_KIT_EXTENSIONS_KEY}",
"--/exts/omni.kit.registry.nucleus/accounts/0/write=${env:OMNI_KIT_EXTENSIONS_USERNAME}:${env:OMNI_KIT_EXTENSIONS_KEY}",
]
########################################################################################################################
# Extensions precacher
########################################################################################################################
[repo_precache_exts]
# Apps to run and precache
apps = [
"${root}/source/apps/lightspeed.app.trex.ingestcraft.kit",
"${root}/source/apps/lightspeed.app.trex.kit",
"${root}/source/apps/lightspeed.app.trex.stagecraft.kit",
"${root}/source/apps/lightspeed.app.trex.texturecraft.kit",
"${root}/source/apps/lightspeed.app.trex.validation_cli.kit",
"${root}/source/apps/lightspeed.app.trex.validation_cli_generator.kit",
"${root}/source/apps/lightspeed.app.trex_dev.kit",
"${root}/source/apps/lightspeed.hdremix.test.kit",
"${root}/source/apps/omni.flux.app.service.documentation_cli_generator.kit",
"${root}/source/extensions/lightspeed.trex.packaging.core/apps/lightspeed.app.trex.project_packaging_cli.kit",
"${root}/source/extensions/lightspeed.trex.project_wizard.core/apps/lightspeed.app.trex.project_wizard_cli.kit",
"${root}/source/extensions/omni.flux.asset_importer.core/apps/omni.flux.app.asset_importer_cli.kit",
"${root}/source/extensions/omni.flux.service.documentation/apps/omni.flux.app.service.documentation_cli.kit",
"${root}/source/extensions/omni.flux.stage_manager.window/apps/omni.flux.app.stage_manager.kit",
"${root}/source/extensions/omni.flux.validator.manager.core/apps/omni.flux.app.validator_cli.kit",
"${root}/source/extensions/omni.flux.validator.manager.window/apps/omni.flux.app.validator.kit",
"${root}/source/extensions/omni.flux.validator.mass.core/apps/omni.flux.app.validator.mass_cli.kit",
"${root}/source/extensions/omni.flux.validator.mass.window/apps/omni.flux.app.validator.mass_window.kit",
]
kit_extra_args = [
"--portable-root",
"${root}/_build/${platform}/${config}",
"--/app/extensions/supportedTargets/platform='windows-x86_64'"
]
########################################################################################################################
# Documentation building
########################################################################################################################
[repo_docs]
enabled = true
name = "NVIDIA RTX Remix"
project = "${conf:repo.name}"
# Define the extra content to add to the head of every page
extra_content_head = ["""
<style>
.svg-icon {
height: 24px;
padding: 4px;
background-color: black !important;
border-radius: 4px !important;
}
</style>
"""]
sphinx_conf_py_extra = """
import pathlib
import platform
import shutil
import subprocess
import sys
import sysconfig
# Ensure interpreter site-packages take precedence over vendored modules
paths = sysconfig.get_paths()
for lib_type in ("purelib", "platlib"):
lib_paths = paths.get(lib_type)
if lib_paths and lib_paths not in sys.path:
sys.path.insert(0, lib_paths)
# Copy SVG icons from source to docs build output
def copy_icons_to_build(app, exception):
if exception is not None:
return # Don't copy if build failed
source_icons = pathlib.Path.cwd() / "source" / "extensions" / "lightspeed.trex.app.resources" / "data" / "icons"
output_icons = pathlib.Path(app.builder.outdir) / "source" / "extensions" / "lightspeed.trex.app.resources" / "data" / "icons"
if source_icons.exists():
output_icons.mkdir(parents=True, exist_ok=True)
for icon in source_icons.glob("*.svg"):
shutil.copy2(icon, output_icons / icon.name)
print(f"Copied icons from {source_icons} to {output_icons}")
else:
print(f"Warning: Icons source directory not found: {source_icons}")
# Generate micro-service documentation
def build_service_docs(app):
output_dir = pathlib.Path(app.builder.outdir)
exec_path = output_dir.parent.parent.parent / "${platform}" / source_substitutions.get("repo_docs_config")
if not (exec_path).exists():
raise RuntimeError("No Kit build was found.")
exec_path = exec_path / ("omni.flux.app.service.documentation.cli" + (".bat" if platform.system().lower() == "windows" else ".sh"))
if not exec_path.exists():
raise RuntimeError("Service Documentation executable not found.")
source_file = pathlib.Path.cwd() / "docs" / "howto" / "learning-restapi-docs.html"
command = [
str(exec_path),
"-o", str(source_file),
"-e", "lightspeed.trex.service.core",
'-x--/renderer/mdl/searchPaths/templates="${lightspeed.trex.app.resources}/deps/omni_core_materials/Base;${kit}/mdl/core/Base;${kit}/mdl/core/Volume;${kit}/mdl/core/mdl"',
]
print("Generating service documentation")
print(" ".join(command))
result = subprocess.run(command, check=True)
if result.returncode != 0:
raise RuntimeError("An error occured while generating the Service documentation.")
output_file = output_dir / "docs" / "howto" / "learning-restapi-docs.html"
print("Copying generated documentation from", source_file, "to", output_file)
output_file.parent.mkdir(parents=True)
shutil.copy2(source_file, output_file)
# Build micro-service documentation and copy icons before building the rest of the documentation
sphinx_event_handlers = [
("builder-inited", build_service_docs),
("build-finished", copy_icons_to_build),
]
"""
autodoc.default_options.members = true
autodoc.default_options.undoc_members = true
autodoc.default_options.imported_members = true
autodoc.default_options.show_inheritance = true
autodoc.default_options.exclude_members = [
"BaseModel",
"Callable",
"ConfigDict",
"Enum",
"Field",
"Generic",
"IntEnum",
"Iterable",
"Number",
"OrderedDict",
"Path",
"PrivateAttr",
"PromptButtonInfo",
"PromptManager",
"SkipValidation",
"ThreadPoolExecutor",
"TypeVar",
"ValidationError",
"ValidationInfo",
"asynccontextmanager",
"contextmanager",
"create_model",
"ensure_future",
"field_validator",
"model_validator",
"partial",
"proxy",
"redirect_stdout",
"suppress",
]
autodoc.mock_imports = [
"fast_version",
"fastapi",
"fastmcp",
"huggingface_hub",
"pydantic",
"pygit2",
"pyperclip",
"omni.graph.tools", # uses carb.tokens.get_tokens_interface() at module level
"omni.graph.ui", # uses carb.tokens.get_tokens_interface() at module level
"omni.graph.widget", # uses carb.tokens.get_tokens_interface() at module level
"omni.graph.window.core", # uses carb.tokens.get_tokens_interface() at module level
"omni.kit.manipulator", # uses omni.kit.get_app() at module level
"omni.kit.viewport.menubar.camera", # uses carb.tokens.get_tokens_interface() at module level
"omni.kit.viewport.menubar.render", # uses carb.tokens.get_tokens_interface() at module level
"lightspeed.trex.app.style", # uses carb.settings.get_settings() at module level
]
autodoc.pydantic_model_show_json_error_strategy = "coerce"
autodoc.pydantic_settings_show_json_error_strategy = "coerce"
extensions_extra = ["sphinxcontrib.video", "sphinxcontrib.autodoc_pydantic"]
library_paths = [
# libomniAudioSchema.so: cannot open shared object file: No such file or directory
"${root}/_build/${platform_target}/release/exts/*/bin",
"${root}/_build/${platform_target}/release/exts/*/lib",
"${root}/_build/${platform_target}/release/extscache/*/bin",
"${root}/_build/${platform_target}/release/extscache/*/lib",
"${root}/_build/${platform_target}/release/extscache/*/bin/deps",
"${root}/_build/${platform_target}/release/extscache/*/lib/deps",
"${root}/_build/${platform_target}/release/kit/exts/*/bin",
"${root}/_build/${platform_target}/release/kit/exts/*/lib",
"${root}/_build/${platform_target}/release/kit/exts/*/bin/deps",
"${root}/_build/${platform_target}/release/kit/exts/*/lib/deps",
"${root}/_build/${platform_target}/release/kit/extsPhysics/*/bin",
"${root}/_build/${platform_target}/release/kit/extsPhysics/*/lib",
"${root}/_build/${platform_target}/release/kit/extscore/*/bin",
"${root}/_build/${platform_target}/release/kit/extscore/*/lib",
"${root}/_build/${platform_target}/release/kit/extscore/*/bin/deps",
"${root}/_build/${platform_target}/release/kit/extscore/*/lib/deps",
"${root}/_build/${platform_target}/release/kit",
"${root}/_build/${platform_target}/release/kit/kernel/plugins",
]
myst_enable_extensions = ["attrs_inline"]
sphinx_exclude_patterns = [
####################################################################################################################
# Documentation generation failures
####################################################################################################################
"source/extensions/lightspeed.event.generate_thumbnail*", # Carb interface is not available
"source/extensions/lightspeed.trex.app.resources*", # Carb interface is not available
"source/extensions/lightspeed.trex.app.style*", # Carb interface is not available
"source/extensions/lightspeed.trex.control.ingestcraft*", # Carb interface is not available
"source/extensions/lightspeed.trex.control.stagecraft*", # Carb interface is not available
"source/extensions/lightspeed.trex.layout.*", # Carb interface is not available
"source/extensions/lightspeed.trex.stage_manager.plugin.widget.usd*", # Carb interface is not available
"source/extensions/lightspeed.trex.viewports.shared.*", # Carb interface is not available
"source/extensions/lightspeed.trex.viewports.ingestcraft.bundle*", # Carb interface is not available
"source/extensions/lightspeed.trex.viewports.stagecraft.bundle*", # Carb interface is not available
####################################################################################################################
# Ignore directories
####################################################################################################################
".cache",
".local",
"_build",
"include",
"portable",
"tools",
"**/omni-core-materials-LICENSE.md",
####################################################################################################################
# AI agent configuration — not documentation
####################################################################################################################
".agents",
".claude",
".clinerules",
".cursor",
".windsurf",
".github/copilot-instructions.md",
"AGENTS.md",
"CLAUDE.md",
"GEMINI.md",
####################################################################################################################
# Developer docs — binary assets and GitHub-only navigation pages
####################################################################################################################
"docs_dev/data/*",
"docs_dev/README.md",
####################################################################################################################
# Excluded docs
####################################################################################################################
"SECURITY.md",
"VERSION.md",
".github/workflows/cla/*",
]
redirects = [
{ path = "docs/contributing.html", target = "docs_dev/index.html" },
{ path = "docs/contributing/api.html", target = "docs_dev/index.html" },
{ path = "docs/howto/learning-overview.html", target = "docs/gettingstarted/learning-runtimesetup.html" },
{ path = "docs/howto/learning-properties.html", target = "docs/howto/learning-toolkit.html" },
{ path = "docs/howto/learning-runtimesetup.html", target = "docs/gettingstarted/learning-runtimesetup.html" },
{ path = "docs/howto/learning-viewport.html", target = "docs/toolkitinterface/remix-toolkitinterface-viewport.html" },
{ path = "docs/howto/tutorial-portalhl2.html", target = "docs/tutorials/tutorial-portalhl2.html" },
{ path = "docs/howto/tutorial-remixtool.html", target = "docs/tutorials/tutorial-remixtool.html" },
{ path = "docs/remix-changelog.html", target = "docs/changelog/remix-releasenotes.html" },
{ path = "docs/remix-formats.html", target = "docs/howto/learning-ingestion.html#file-format-compatibility" },
{ path = "docs/remix-full-changelog.html", target = "docs/changelog/remix-full-changelog.html" },
{ path = "docs/remix-installation.html", target = "docs/installation/install-selection.html" },
{ path = "docs/remix-overview.html", target = "docs/introduction/intro-overview.html" },
{ path = "docs/remix-releasenotes.html", target = "docs/changelog/remix-releasenotes.html" },
{ path = "docs/toolkitinterface/remix-toolkitinterface-migrations.html", target = "docs/howto/learning-migrations.html" },
{ path = "docs/toolkitinterface/remix-toolkitinterface-restapi-docs.html", target = "docs/howto/learning-restapi-docs.html" },
{ path = "docs/toolkitinterface/remix-toolkitinterface-restapi.html", target = "docs/howto/learning-restapi.html" },
]
repo_url = "https://gitlab-master.nvidia.com/lightspeedrtx/lightspeed-kit/-/blob/master"
enable_dark_theme_switcher = true
########################################################################################################################
# Code Format Tool
########################################################################################################################
# C++ is formatted with clang-format:
[repo_format.cpp]
files.include = ["**"]
files.exclude = [
".eggs/*",
".git/*",
".idea/*",
".teamcity/*",
".venv/*",
".vscode/*",
"PACKAGE-DEPS.yaml",
"_build/*",
"_compiler/*",
"_repo/*",
"_testoutput/*",
"backup.teamcity/*",
"portable/*",
"source/extensions/example.*",
"source/extensions/lightspeed.common/lightspeed/common/tools/*",
"source/extensions/lightspeed.hydra.remix/plugin/usd/usd/resources/codegenTemplates/*",
"source/pythonapps/*",
"tools/*",
"venv/*",
]
# python is formatted with black+isort:
[repo_format.python]
files.include = ["**/*.py"]
files.exclude = [
".eggs/*",
".git/*",
".idea/*",
".teamcity/*",
".venv/*",
".vscode/*",
"PACKAGE-DEPS.yaml",
"_build/*",
"_compiler/*",
"_repo/*",
"_testoutput/*",
"backup.teamcity/*",
"portable/*",
"source/extensions/example.*",
"source/extensions/lightspeed.hydra.remix/plugin/usd/usd/resources/codegenTemplates/*",
"source/extensions/lightspeed.trex.logic.ogn/python/nodes/*",
"source/pythonapps/*",
"tools/*",
"venv/*",
]
python_version = "py310"
job_count = 1
########################################################################################################################
# Python lint tool
########################################################################################################################
[repo_lint.flake8]
enabled = false
[repo_lint.ruff]
enabled = true
flags = ["--fix"]
files.include = ["**/*.py"]
files.exclude = [
".eggs/*",
".git/*",
".idea/*",
".teamcity/*",
".venv/*",
".vscode/*",
"PACKAGE-DEPS.yaml",
"_build/*",
"_compiler/*",
"_repo/*",
"_testoutput/*",
"backup.teamcity/*",
"portable/*",
"source/extensions/example.*",
"source/extensions/lightspeed.hydra.remix/plugin/usd/usd/resources/codegenTemplates/*",
"source/extensions/lightspeed.trex.logic.ogn/python/nodes/*",
"source/pythonapps/*",
"tools/*",
"venv/*",
]
########################################################################################################################
# Launcher publish and deploy
########################################################################################################################
[repo_deploy_launcher]
enabled = true
git_url = "${env:TREX_RELEASE_URL_AND_TOKEN}"
########################################################################################################################
# Check test file locations
########################################################################################################################
[repo_check_test_file_location]
start_path = "source\\"
required_paths = ["/unit/", "/e2e/"]
# Any path containing any of the 'ignore' strings will be skipped
ignore = ["extensions/lightspeed.common/lightspeed/common/tools"]
########################################################################################################################
# Repo CI Jobs
########################################################################################################################
[repo_ci]
[repo_ci.jobs."publish_etm_list"]
script = "${root}/tools/ci/scripts/publish_etm_list.py"