mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 07:23:24 +09:00
[Chore] (docs, MobileGL, scripts, tools, .github): use US spelling in identifiers and file names
This commit is contained in:
@@ -83,7 +83,7 @@ PACKAGES = ('clang-20', 'lld-20', 'libc++-20-dev', 'libc++abi-20-dev', 'libvulka
|
||||
'libegl1-mesa-dev', 'libgles2-mesa-dev')
|
||||
|
||||
|
||||
def normaliser(build_dir, deps_dir=None):
|
||||
def normalizer(build_dir, deps_dir=None):
|
||||
roots = [(str(Path(build_dir)), '@BUILD@'), (str(Path(build_dir).resolve()), '@BUILD@')]
|
||||
if deps_dir:
|
||||
roots += [(str(Path(deps_dir)), '@DEPS@'), (str(Path(deps_dir).resolve()), '@DEPS@')]
|
||||
@@ -244,7 +244,7 @@ def read_image():
|
||||
|
||||
def fingerprint(build_dir, deps_dir=None):
|
||||
build = Path(build_dir)
|
||||
norm = normaliser(build, deps_dir)
|
||||
norm = normalizer(build, deps_dir)
|
||||
result = {
|
||||
'cache': read_cache(build, norm),
|
||||
'compile': read_compile(build, norm),
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"ApplyThreadJoinTimeout",
|
||||
"ApplyThreadNotRunning",
|
||||
"ArchiveEmpty",
|
||||
"ArtefactsMissing",
|
||||
"ArtifactsMissing",
|
||||
"BackendDeviceLost",
|
||||
"BarrierTimeout",
|
||||
"BarrierViolation",
|
||||
|
||||
@@ -29,7 +29,7 @@ P7 PACKAGE L ADDS THE SAME QUESTION FOR MAGMA, IN TWO TIERS, AND THE NORMALIZATI
|
||||
DIFFERENT ON PURPOSE. The Espryt half above strips the sub-lane tails `F1.` and `Ct.` because
|
||||
they name neither the case nor the arm. The Magma half must NOT: `RunAhead.Credit1.` and
|
||||
`RunAhead.Credit3.` are two entries of the same case, differing in the credit the lane pins, and
|
||||
a normaliser that dropped the tail would fold them together and then report an equal-sized set
|
||||
a normalizer that dropped the tail would fold them together and then report an equal-sized set
|
||||
that had silently lost one. So there the arm - and only the arm, the SECOND dotted segment - is
|
||||
what comes off.
|
||||
"""
|
||||
@@ -95,7 +95,7 @@ MAGMA_INPROC_ONLY = ("MagmaRunAheadScenario.", "MagmaWireCacheScenario.", "Descr
|
||||
# MEASURED (a temporary fatal in each of the three readers): all five knob=1 entries died on
|
||||
# split and on spawn and ALL FIVE PASSED on tcp.
|
||||
#
|
||||
# These are TAILS, not scenarios - the normaliser above keeps the sub-lane tail for the Magma
|
||||
# These are TAILS, not scenarios - the normalizer above keeps the sub-lane tail for the Magma
|
||||
# tier on purpose, so `.MsResolve1.` names the knob entry and `.MsResolve0.` (the default, which
|
||||
# does keep its tcp entry) is untouched.
|
||||
#
|
||||
@@ -233,7 +233,7 @@ def compare_arms(build_dir, tier, labels, inproc_only=(), no_tcp=(), only_on=Non
|
||||
names = lane_names(build_dir, label) - FIXTURE_ENTRIES
|
||||
sets[arm] = arm_keys(names)
|
||||
print(f"{tier}: {label} has {len(names)} case entrie(s), "
|
||||
f"{len(sets[arm])} after normalisation")
|
||||
f"{len(sets[arm])} after normalization")
|
||||
if len(names) != len(sets[arm]):
|
||||
print(f"::error::{label}: {len(names) - len(sets[arm])} entry name(s) do not parse "
|
||||
f"as <Backend>.<Arm>.<case>, so this comparison silently drops them: "
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
"""P8-SE: PipeCatalogueTest's unmigrated-emulation list IS the set of call sites in the tree.
|
||||
"""P8-SE: PipeCatalogTest's unmigrated-emulation list IS the set of call sites in the tree.
|
||||
|
||||
THE QUESTION. `MGPipeUnmigratedEmulation("<name>")` (MG_Pipe/PipeApply.h) names one emulation
|
||||
that reaches into client memory; a split server aborts on it, a monolith arm runs past it. The
|
||||
test `PipeCatalogue.EveryUnmigratedEmulationIsNamedOnce` (MG_Test/Pipe/PipeCatalogueTest.cpp)
|
||||
test `PipeCatalog.EveryUnmigratedEmulationIsNamedOnce` (MG_Test/Pipe/PipeCatalogTest.cpp)
|
||||
pins the LIST of names, and nothing compared that list with the tree: it drifted twice without a
|
||||
red (P8-B found a name the list never had; P8-SE a name whose only call site no transport could
|
||||
reach). This asserts, every one an error:
|
||||
@@ -34,7 +34,7 @@ import re
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
LIST_FILE = Path("MobileGL/MG_Test/Pipe/PipeCatalogueTest.cpp")
|
||||
LIST_FILE = Path("MobileGL/MG_Test/Pipe/PipeCatalogTest.cpp")
|
||||
TEST_NAME = "EveryUnmigratedEmulationIsNamedOnce"
|
||||
SOURCE_ROOT = Path("MobileGL")
|
||||
EXCLUDED = (Path("MobileGL/MG_Test"), Path("MobileGL/MG_IntegrationTest"))
|
||||
@@ -161,7 +161,7 @@ def run(root):
|
||||
def self_test():
|
||||
"""Each rule reds on a synthetic tree and a matching tree is green."""
|
||||
listing = """
|
||||
TEST(PipeCatalogue, EveryUnmigratedEmulationIsNamedOnce) {
|
||||
TEST(PipeCatalog, EveryUnmigratedEmulationIsNamedOnce) {
|
||||
// "commented-out-name" is not in the list
|
||||
const char* const kNames[] = {
|
||||
%s
|
||||
|
||||
Reference in New Issue
Block a user