bin: Fix typos
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22189>
This commit is contained in:

committed by
Marge Bot

parent
db582e5e7d
commit
fd767a4517
@@ -211,7 +211,7 @@ def recurse_among_variables_space(var_graph) -> bool:
|
|||||||
return updated
|
return updated
|
||||||
|
|
||||||
|
|
||||||
def get_job_final_definiton(job_name, merged_yaml, project_path, sha):
|
def get_job_final_definition(job_name, merged_yaml, project_path, sha):
|
||||||
job = merged_yaml[job_name]
|
job = merged_yaml[job_name]
|
||||||
variables = get_variables(job, merged_yaml, project_path, sha)
|
variables = get_variables(job, merged_yaml, project_path, sha)
|
||||||
|
|
||||||
@@ -294,7 +294,7 @@ def main():
|
|||||||
merged_yaml = fetch_merged_yaml(
|
merged_yaml = fetch_merged_yaml(
|
||||||
gl_gql, {"projectPath": args.project_path, "sha": args.sha}
|
gl_gql, {"projectPath": args.project_path, "sha": args.sha}
|
||||||
)
|
)
|
||||||
get_job_final_definiton(
|
get_job_final_definition(
|
||||||
args.print_job_manifest, merged_yaml, args.project_path, args.sha
|
args.print_job_manifest, merged_yaml, args.project_path, args.sha
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -78,9 +78,9 @@ def commit(message: str) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def _calculate_release_start(major: str, minor: str) -> datetime.date:
|
def _calculate_release_start(major: str, minor: str) -> datetime.date:
|
||||||
"""Calclulate the start of the release for release candidates.
|
"""Calculate the start of the release for release candidates.
|
||||||
|
|
||||||
This is quarterly, on the second wednesday, in Januray, April, July, and Octobor.
|
This is quarterly, on the second wednesday, in January, April, July, and October.
|
||||||
"""
|
"""
|
||||||
quarter = datetime.date.fromisoformat(f'20{major}-0{[1, 4, 7, 10][int(minor)]}-01')
|
quarter = datetime.date.fromisoformat(f'20{major}-0{[1, 4, 7, 10][int(minor)]}-01')
|
||||||
|
|
||||||
|
@@ -52,7 +52,7 @@ def mock_csv(data: typing.List[gen_calendar_entries.CalendarRowType]) -> typing.
|
|||||||
|
|
||||||
@pytest.fixture(autouse=True, scope='module')
|
@pytest.fixture(autouse=True, scope='module')
|
||||||
def disable_git_commits() -> None:
|
def disable_git_commits() -> None:
|
||||||
"""Mock out the commit function so no git commits are made durring testing."""
|
"""Mock out the commit function so no git commits are made during testing."""
|
||||||
with mock.patch('bin.gen_calendar_entries.commit', mock.Mock()):
|
with mock.patch('bin.gen_calendar_entries.commit', mock.Mock()):
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
@@ -279,7 +279,7 @@ def calculate_next_version(version: str, is_point: bool) -> str:
|
|||||||
def calculate_previous_version(version: str, is_point: bool) -> str:
|
def calculate_previous_version(version: str, is_point: bool) -> str:
|
||||||
"""Calculate the previous version to compare to.
|
"""Calculate the previous version to compare to.
|
||||||
|
|
||||||
In the case of -rc to final that verison is the previous .0 release,
|
In the case of -rc to final that version is the previous .0 release,
|
||||||
(19.3.0 in the case of 20.0.0, for example). for point releases that is
|
(19.3.0 in the case of 20.0.0, for example). for point releases that is
|
||||||
the last point release. This value will be the same as the input value
|
the last point release. This value will be the same as the input value
|
||||||
for a point release, but different for a major release.
|
for a point release, but different for a major release.
|
||||||
|
@@ -76,7 +76,7 @@ async def test_gather_commits():
|
|||||||
'content, bugs',
|
'content, bugs',
|
||||||
[
|
[
|
||||||
# It is important to have the title on a new line, as
|
# It is important to have the title on a new line, as
|
||||||
# textwrap.dedent wont work otherwise.
|
# textwrap.dedent won't work otherwise.
|
||||||
|
|
||||||
# Test the `Closes: #N` syntax
|
# Test the `Closes: #N` syntax
|
||||||
(
|
(
|
||||||
@@ -113,7 +113,7 @@ async def test_gather_commits():
|
|||||||
'''\
|
'''\
|
||||||
A commit for for something else completely
|
A commit for for something else completely
|
||||||
|
|
||||||
Closes: https://github.com/Organiztion/project/1234
|
Closes: https://github.com/Organization/project/1234
|
||||||
''',
|
''',
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
|
@@ -89,8 +89,8 @@ python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/lavapipe/vulkan
|
|||||||
'''
|
'''
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description=gen_help)
|
parser = argparse.ArgumentParser(description=gen_help)
|
||||||
parser.add_argument('--in_file', help='input template moudle definition file')
|
parser.add_argument('--in_file', help='input template module definition file')
|
||||||
parser.add_argument('--out_file', help='output moudle definition file')
|
parser.add_argument('--out_file', help='output module definition file')
|
||||||
parser.add_argument('--compiler_abi', help='compiler abi')
|
parser.add_argument('--compiler_abi', help='compiler abi')
|
||||||
parser.add_argument('--compiler_id', help='compiler id')
|
parser.add_argument('--compiler_id', help='compiler id')
|
||||||
parser.add_argument('--cpu_family', help='cpu family')
|
parser.add_argument('--cpu_family', help='cpu family')
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
"""Perf annotate for JIT code.
|
"""Perf annotate for JIT code.
|
||||||
|
|
||||||
Linux `perf annotate` does not work with JIT code. This script takes the data
|
Linux `perf annotate` does not work with JIT code. This script takes the data
|
||||||
produced by `perf script` command, plus the diassemblies outputed by gallivm
|
produced by `perf script` command, plus the diassemblies outputted by gallivm
|
||||||
into /tmp/perf-XXXXX.map.asm and produces output similar to `perf annotate`.
|
into /tmp/perf-XXXXX.map.asm and produces output similar to `perf annotate`.
|
||||||
|
|
||||||
See docs/llvmpipe.rst for usage instructions.
|
See docs/llvmpipe.rst for usage instructions.
|
||||||
|
@@ -242,7 +242,7 @@ class TestResolveNomination:
|
|||||||
@attr.s(slots=True)
|
@attr.s(slots=True)
|
||||||
class FakeSubprocess:
|
class FakeSubprocess:
|
||||||
|
|
||||||
"""A fake asyncio.subprocess like classe for use with mock."""
|
"""A fake asyncio.subprocess like class for use with mock."""
|
||||||
|
|
||||||
out: typing.Optional[bytes] = attr.ib(None)
|
out: typing.Optional[bytes] = attr.ib(None)
|
||||||
returncode: int = attr.ib(0)
|
returncode: int = attr.ib(0)
|
||||||
|
@@ -189,7 +189,7 @@ def main():
|
|||||||
continue
|
continue
|
||||||
if symbol[:2] == '_Z':
|
if symbol[:2] == '_Z':
|
||||||
# As ajax found out, the compiler intentionally exports symbols
|
# As ajax found out, the compiler intentionally exports symbols
|
||||||
# that we explicitely asked it not to export, and we can't do
|
# that we explicitly asked it not to export, and we can't do
|
||||||
# anything about it:
|
# anything about it:
|
||||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36022#c4
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36022#c4
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user