зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1801283 - Fix eslint-build tester running from cron, and make sure it doesn't run at other times. r=releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D162385
This commit is contained in:
Родитель
824352406d
Коммит
ac16fdb8c0
|
@ -20,11 +20,6 @@ job-defaults:
|
|||
path: /builds/worker/mozlint.json
|
||||
run:
|
||||
using: mach
|
||||
when:
|
||||
files-changed:
|
||||
# Other misc lint related files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
codespell:
|
||||
description: Checks for misspellings in text files
|
||||
|
@ -53,6 +48,9 @@ codespell:
|
|||
- '**/*.rst'
|
||||
- '**/*.ftl'
|
||||
- 'tools/lint/codespell.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
|
||||
rejected-words:
|
||||
|
@ -86,6 +84,9 @@ rejected-words:
|
|||
- '**/*.java'
|
||||
- '**/*.kt'
|
||||
- 'tools/lint/rejected-words.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
eslint:
|
||||
description: JS lint check
|
||||
|
@ -117,8 +118,12 @@ eslint:
|
|||
# The plugin implementing custom checks.
|
||||
- 'tools/lint/eslint/eslint-plugin-mozilla/**'
|
||||
- 'tools/lint/eslint/eslint-plugin-spidermonkey-js/**'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
eslint-build:
|
||||
always-target: false
|
||||
description: ESLint checks with build data
|
||||
treeherder:
|
||||
symbol: js(ES-B)
|
||||
|
@ -174,6 +179,9 @@ license:
|
|||
- '**/*.xml'
|
||||
- '**/*.xul'
|
||||
- 'tools/lint/license.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
lintpref:
|
||||
description: Check for duplicates between all.js and StaticPrefList.yaml.
|
||||
|
@ -211,6 +219,9 @@ mingw-cap:
|
|||
- '**/*.c'
|
||||
- '**/*.h'
|
||||
- 'tools/lint/mingw-capitalization.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
updatebot:
|
||||
description: Ensure moz.yaml files are valid per schema
|
||||
|
@ -221,6 +232,9 @@ updatebot:
|
|||
when:
|
||||
files-changed:
|
||||
- '**/moz.yaml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
mscom-init:
|
||||
description: Lint for Microsoft COM initialization
|
||||
|
@ -235,6 +249,9 @@ mscom-init:
|
|||
- '**/*.c'
|
||||
- '**/*.h'
|
||||
- 'tools/lint/mscom-init.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
py-flake8:
|
||||
description: flake8 run over the gecko codebase
|
||||
|
@ -249,6 +266,9 @@ py-flake8:
|
|||
- 'tools/lint/flake8.yml'
|
||||
# moz.configure files are also Python files.
|
||||
- '**/*.configure'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
py-black:
|
||||
description: black run over the gecko codebase
|
||||
|
@ -265,6 +285,9 @@ py-black:
|
|||
- '**/*.mozbuild'
|
||||
- 'pyproject.toml'
|
||||
- 'tools/lint/flake8.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
py-pylint:
|
||||
description: pylint run over the gecko codebase
|
||||
|
@ -278,6 +301,9 @@ py-pylint:
|
|||
- 'tools/lint/pylint.yml'
|
||||
# moz.configure files are also Python files
|
||||
# However, pylint has some hard time dealing with it
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
test-manifest:
|
||||
description: lint test manifests
|
||||
|
@ -291,6 +317,9 @@ test-manifest:
|
|||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
- 'tools/lint/test-disable.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
wptlint-gecko:
|
||||
description: web-platform-tests linter
|
||||
|
@ -303,6 +332,9 @@ wptlint-gecko:
|
|||
- 'testing/web-platform/tests/**'
|
||||
- 'testing/web-platform/mozilla/tests/**'
|
||||
- 'tools/lint/wpt.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
yaml:
|
||||
description: yamllint run over the gecko codebase
|
||||
|
@ -315,6 +347,9 @@ yaml:
|
|||
- '**/*.yml'
|
||||
- '**/*.yaml'
|
||||
- '**/.ymllint'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
rst:
|
||||
description: rst lint run over the gecko codebase
|
||||
|
@ -326,6 +361,9 @@ rst:
|
|||
files-changed:
|
||||
- '**/*.rst'
|
||||
- 'tools/lint/rst.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
shellcheck:
|
||||
description: shellcheck run over the gecko codebase
|
||||
|
@ -337,6 +375,9 @@ shellcheck:
|
|||
files-changed:
|
||||
- '**/*.sh'
|
||||
- 'tools/lint/shellcheck.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
|
||||
localization:
|
||||
|
@ -354,6 +395,9 @@ localization:
|
|||
- 'third_party/python/compare-locales/**'
|
||||
- 'third_party/python/fluent/**'
|
||||
- 'tools/lint/l10n.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
|
||||
l10n-conflicts:
|
||||
|
@ -371,6 +415,9 @@ l10n-conflicts:
|
|||
- 'third_party/python/compare-locales/**'
|
||||
- 'third_party/python/fluent/**'
|
||||
- 'tools/lint/l10n.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
|
||||
clang-format:
|
||||
|
@ -388,6 +435,9 @@ clang-format:
|
|||
- '**/*.m'
|
||||
- '**/*.mm'
|
||||
- 'tools/lint/clang-format.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
dependencies:
|
||||
linux64-clang-tidy: toolchain-linux64-clang-tidy
|
||||
fetches:
|
||||
|
@ -406,6 +456,9 @@ rustfmt:
|
|||
files-changed:
|
||||
- '**/*.rs'
|
||||
- 'tools/lint/rustfmt.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-rust
|
||||
|
@ -422,6 +475,9 @@ clippy:
|
|||
- '**/*.rs'
|
||||
- '**/Cargo.toml'
|
||||
- 'tools/lint/clippy.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-rust
|
||||
|
@ -452,6 +508,9 @@ file-whitespace:
|
|||
- '**/*.rs'
|
||||
- '**/*.xhtml'
|
||||
- 'tools/lint/file-whitespace.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
|
||||
file-perm:
|
||||
|
@ -482,6 +541,9 @@ file-perm:
|
|||
- '**/*.xml'
|
||||
- '**/*.xul'
|
||||
- 'tools/lint/file-perm.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
|
||||
perfdocs-verify:
|
||||
|
@ -507,6 +569,9 @@ perfdocs-verify:
|
|||
- 'testing/**/*.yml'
|
||||
- 'testing/**/*.rst'
|
||||
- 'tools/lint/perfdocs.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
|
||||
fluent-lint:
|
||||
|
@ -521,6 +586,9 @@ fluent-lint:
|
|||
- '**/*.ftl'
|
||||
- 'tools/lint/fluent-lint.yml'
|
||||
- 'tools/lint/fluent-lint/exclusions.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
||||
trojan-source:
|
||||
description: Trojan Source attack - CVE-2021-42572
|
||||
|
@ -538,3 +606,6 @@ trojan-source:
|
|||
- '**/*.py'
|
||||
- '**/*.rs'
|
||||
- 'tools/lint/trojan-source.yml'
|
||||
# Common files.
|
||||
- 'python/mozlint/**'
|
||||
- 'tools/lint/**'
|
||||
|
|
|
@ -1398,5 +1398,5 @@ def target_tasks_eslint_build(full_task_graph, parameters, graph_config):
|
|||
for name, task in full_task_graph.tasks.items():
|
||||
if task.kind != "source-test":
|
||||
continue
|
||||
if name == "eslint-build":
|
||||
if "eslint-build" in name:
|
||||
yield name
|
||||
|
|
|
@ -114,7 +114,7 @@ ifndef MOZ_ARTIFACT_BUILDS
|
|||
else
|
||||
@echo 'Packaging existing XPT artifacts from artifact build into archive ($(XPT_ARTIFACTS_ARCHIVE_BASENAME).zip)'
|
||||
$(call py_action,zip,-C $(ABS_DIST)/xpt_artifacts '$(ABS_DIST)/$(PKG_PATH)$(XPT_ARTIFACTS_ARCHIVE_BASENAME).zip' '*.xpt')
|
||||
endif # COMPILE_ENVIRONMENT
|
||||
endif # MOZ_ARTIFACT_BUILDS
|
||||
|
||||
prepare-package: stage-package
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче