fierce-park-88503
08/23/2018, 1:53 PM./pants lint
explicitly to run lint checks. but it seems like the checks are taking a long time (like 27 minutes) to run. output has like:
02:20:31 00:07 [python-eval]
Invalidated 120 targets.........................................................................................................................
02:47:37 27:13 [pythonstyle]
Invalidated 160 targets.
hundreds-father-404
08/23/2018, 3:46 PMpants lint
multiple times in a row? The first time should take longer than normal because it invalidates all targets (idk about 30 minutes tho)fierce-park-88503
08/23/2018, 7:20 PMhundreds-father-404
08/23/2018, 8:07 PMfierce-park-88503
08/23/2018, 9:38 PMhundreds-father-404
08/23/2018, 9:40 PMfierce-park-88503
08/23/2018, 10:38 PMfierce-park-88503
08/23/2018, 10:39 PMfierce-park-88503
08/23/2018, 10:52 PMhundreds-father-404
08/23/2018, 11:07 PMfierce-park-88503
08/23/2018, 11:12 PMfierce-park-88503
08/23/2018, 11:13 PMfierce-park-88503
08/23/2018, 11:16 PMfierce-park-88503
08/24/2018, 8:02 PMfierce-park-88503
08/24/2018, 8:02 PMenough-analyst-54434
08/24/2018, 8:15 PM./pants options --scope=python-setup
are not blown away between CI runs?fierce-park-88503
08/24/2018, 8:21 PMenough-analyst-54434
08/24/2018, 8:21 PMfierce-park-88503
08/24/2018, 8:22 PMfierce-park-88503
08/24/2018, 8:28 PM[test]
step and the [test] [pytest] [run]
step is about 2 seconds. the time between the start of [lint]
and the start of [lint] [python-eval]
is about 1 second, and then about 27 minutes goes by in between the start of [lint] [python-eval]
and the start of [lint] [pythonstyle]
, and then other 16 seconds from then to [complete]
fierce-park-88503
08/24/2018, 8:28 PM./pants
invocation
00:00:49 01:42 [test]
00:00:49 01:42 [test-jvm-prep-command]
00:00:49 01:42 [jvm_prep_command]
00:00:49 01:42 [test-prep-command]
00:00:49 01:42 [test]
00:00:49 01:42 [pytest-prep]
Invalidated 290 targets.
00:00:51 01:44 [pytest]
Invalidated 42 targets.
00:00:51 01:44 [run]
00:05:56 06:49 [lint]
00:05:56 06:49 [scalafix]
00:05:56 06:49 [scalafmt]
00:05:56 06:49 [scalastyle]
00:05:56 06:49 [checkstyle]
00:05:57 06:50 [javascriptstyle]
00:05:57 06:50 [python-eval]
Invalidated 120 targets.........................................................................................................................
00:33:21 34:14 [pythonstyle]
Invalidated 160 targets.
enough-analyst-54434
08/24/2018, 8:31 PMfierce-park-88503
08/24/2018, 8:36 PMenough-analyst-54434
08/24/2018, 8:37 PMfierce-park-88503
08/24/2018, 8:48 PM--[no-]test-pytest-chroot (default: False)
Run tests in a chroot. Any loose files tests depend on via `files`
dependencies will be copied to the chroot.
so yeah I guess it defaults to not using for pytest. I don’t see a similarly-named argument for lintingenough-analyst-54434
08/24/2018, 8:48 PMfierce-park-88503
08/24/2018, 9:02 PMenough-analyst-54434
08/24/2018, 9:03 PMhappy-kitchen-89482
08/24/2018, 10:10 PMfierce-park-88503
08/24/2018, 11:37 PMenough-analyst-54434
08/24/2018, 11:39 PMfierce-park-88503
08/24/2018, 11:40 PMenough-analyst-54434
08/24/2018, 11:42 PMfierce-park-88503
08/24/2018, 11:47 PMfierce-park-88503
08/24/2018, 11:49 PMenough-analyst-54434
08/24/2018, 11:49 PMenough-analyst-54434
08/24/2018, 11:52 PMregister('--closure', type=bool,
help='Eval all targets in the closure individually instead of just the targets '
'specified on the command line.')
enough-analyst-54434
08/24/2018, 11:53 PMenough-analyst-54434
08/24/2018, 11:54 PMenough-analyst-54434
08/24/2018, 11:57 PM$ ./pants options --scope=lint.python-eval
lint.python-eval.fail_slow = False (from HARDCODED)
lint.python-eval.skip = True (from CONFIG in pants.ini)
So we turn it off in pantsbuild/pants and that looks like:
[lint.python-eval]
skip: True
fierce-park-88503
08/25/2018, 12:00 AMfierce-park-88503
08/25/2018, 12:00 AM