Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kats/kats/tests/tsfeatures/test_tsfeatures.py: disable both firstmin_…
…ac and firstzero_ac tests Summary: This avoids the following errors: ``` b$ buck2 test 'fbcode//mode/opt' fbcode//kats:test_tsfeatures -- --exact 'kats:test_tsfeatures - test_nowcasting_error (kats.kats.tests.tsfeatures.test_tsfeatures.TSfeaturesTest)' 39ae5d44b [2024-10-16T21:25:44.808-07:00] Buck UI: https://www.internalfb.com/buck2/2313499b-77d6-4f7f-a69f-b8e734d94531 [2024-10-16T21:25:45.045-07:00] File changed: fbcode//kats/PACKAGE [2024-10-16T21:25:46.275-07:00] Test session: https://www.internalfb.com/intern/testinfra/testrun/1407375271333966 [2024-10-16T21:25:52.162-07:00] RE Session: reSessionID-c5e04241-bd21-4901-be98-1f2e5b641a94 pingme done [2024-10-16T21:25:59.171-07:00] Waiting on fbcode//capella/types/annotation_type/privacy:capella_fail_close-python_capi-types-cython__cython/fail_close/thrift_types_capi (cfg:linux-x86_64-fbcode-platform010-clang17-no-san#d374eb3612539dda) -- action (genrule_cython_compile_src), and 1347 other actions [2024-10-16T21:26:06.527-07:00] Waiting on fbcode//ai_infra/demand_control/farm/if:farm-py3-default-types__cython/farm/types_fields (cfg:linux-x86_64-fbcode-platform010-clang17-no-san#d374eb3612539dda) -- action (genrule_cython_compile_src), and 522 other actions [2024-10-16T21:26:13.561-07:00] Waiting on fbcode//kats:test_tsfeatures (cfg:linux-x86_64-fbcode-platform010-clang17-no-san#d374eb3612539dda) -- action (cxx_link_python_exe) [local_materialize_inputs] [2024-10-16T21:26:20.661-07:00] Waiting on fbcode//kats:test_tsfeatures (cfg:linux-x86_64-fbcode-platform010-clang17-no-san#d374eb3612539dda) -- action (cxx_link_python_exe) [re_worker_download] [2024-10-16T21:26:27.761-07:00] Waiting on fbcode//kats:test_tsfeatures (cfg:linux-x86_64-fbcode-platform010-clang17-no-san#d374eb3612539dda) -- action (cxx_link_python_exe) [local_execute] [2024-10-16T21:26:34.861-07:00] Waiting on fbcode//kats:test_tsfeatures (cfg:linux-x86_64-fbcode-platform010-clang17-no-san#d374eb3612539dda) -- action (cxx_link_python_exe) [local_execute] [2024-10-16T21:26:41.961-07:00] Waiting on Test kats:test_tsfeatures -- discovering tests [local_materialize_inputs] [2024-10-16T21:26:49.061-07:00] Waiting on Test kats:test_tsfeatures -- discovering tests [local_materialize_inputs] [2024-10-16T21:26:56.161-07:00] Waiting on Test kats:test_tsfeatures -- discovering tests [local_execute] [2024-10-16T21:27:03.161-07:00] Waiting on Test kats:test_tsfeatures -- test_nowcasting_error (kats.kats.tests.tsfeatures.test_tsfeatures.TSfeaturesTest) [local_execute] [2024-10-16T21:27:06.122-07:00] ? Fail: kats:test_tsfeatures - test_nowcasting_error (kats.kats.tests.tsfeatures.test_tsfeatures.TSfeaturesTest) (0.0s) [2024-10-16T21:27:06.122-07:00] [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:54: numba is not installed. jit compilation of tsfeatures is disabled [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/torch/_utils_internal.py:315: NCCL_DEBUG env var is set to None [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/torch/_utils_internal.py:333: NCCL_DEBUG is forced to WARN from None [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/_distutils_hack/__init__.py:11: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils. [2024-10-16T21:27:06.122-07:00] warnings.warn( [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/_distutils_hack/__init__.py:26: UserWarning: Setuptools is replacing distutils. [2024-10-16T21:27:06.122-07:00] warnings.warn("Setuptools is replacing distutils.") [2024-10-16T21:27:06.122-07:00] test_nowcasting_error (kats.kats.tests.tsfeatures.test_tsfeatures.TSfeaturesTest) ... /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating statistics features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating stl_features features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating level_shift_features features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating acfpacf_features features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/statsmodels/regression/linear_model.py:1434: RuntimeWarning: invalid value encountered in sqrt [2024-10-16T21:27:06.122-07:00] return rho, np.sqrt(sigmasq) [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating special_ac features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating holt_params features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating hw_params features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:1425: Holt-Winters failed Data must be positive. [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:568: Generating nowcasting features... [2024-10-16T21:27:06.122-07:00] /data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/tsfeatures/tsfeatures.py:1889: MACDsign couldn't get computed successfully due to insufficient time series length: 25 [2024-10-16T21:27:06.122-07:00] FAIL [2024-10-16T21:27:06.122-07:00] [2024-10-16T21:27:06.122-07:00] ====================================================================== [2024-10-16T21:27:06.122-07:00] FAIL: test_nowcasting_error (kats.kats.tests.tsfeatures.test_tsfeatures.TSfeaturesTest) [2024-10-16T21:27:06.122-07:00] ---------------------------------------------------------------------- [2024-10-16T21:27:06.122-07:00] Traceback (most recent call last): [2024-10-16T21:27:06.122-07:00] File "/data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/kats/tests/tsfeatures/test_tsfeatures.py", line 639, in test_nowcasting_error [2024-10-16T21:27:06.122-07:00] self.assertDictAlmostEqual(expected, features) [2024-10-16T21:27:06.122-07:00] File "/data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/kats/tests/tsfeatures/test_tsfeatures.py", line 120, in assertDictAlmostEqual [2024-10-16T21:27:06.122-07:00] self.assertEqual(v, features[k], msg=f"{k} differ") [2024-10-16T21:27:06.122-07:00] AssertionError: 2 != 4 : firstmin_ac differ [2024-10-16T21:27:06.122-07:00] [2024-10-16T21:27:06.122-07:00] ---------------------------------------------------------------------- [2024-10-16T21:27:06.122-07:00] Ran 1 test in 0.045s [2024-10-16T21:27:06.122-07:00] [2024-10-16T21:27:06.122-07:00] FAILED (failures=1) [2024-10-16T21:27:06.122-07:00] [2024-10-16T21:27:06.122-07:00] AssertionError: 2 != 4 : firstmin_ac differ [2024-10-16T21:27:06.122-07:00] File "/usr/local/fbcode/platform010/lib/python3.10/unittest/case.py", line 59, in testPartExecutor [2024-10-16T21:27:06.122-07:00] yield [2024-10-16T21:27:06.122-07:00] File "/usr/local/fbcode/platform010/lib/python3.10/unittest/case.py", line 591, in run [2024-10-16T21:27:06.122-07:00] self._callTestMethod(testMethod) [2024-10-16T21:27:06.122-07:00] File "/usr/local/fbcode/platform010/lib/python3.10/unittest/case.py", line 549, in _callTestMethod [2024-10-16T21:27:06.122-07:00] method() [2024-10-16T21:27:06.122-07:00] File "/data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/kats/tests/tsfeatures/test_tsfeatures.py", line 639, in test_nowcasting_error [2024-10-16T21:27:06.122-07:00] self.assertDictAlmostEqual(expected, features) [2024-10-16T21:27:06.122-07:00] File "/data/users/meyering/fbsource/buck-out/v2/gen/fbcode/d374eb3612539dda/kats/__test_tsfeatures__/test_tsfeatures#link-tree/kats/kats/tests/tsfeatures/test_tsfeatures.py", line 120, in assertDictAlmostEqual [2024-10-16T21:27:06.122-07:00] self.assertEqual(v, features[k], msg=f"{k} differ") [2024-10-16T21:27:06.122-07:00] [2024-10-16T21:27:07.388-07:00] Cache hits: 99% [2024-10-16T21:27:07.388-07:00] Commands: 138773 (cached: 138772, remote: 0, local: 1) [2024-10-16T21:27:07.388-07:00] Network: Up: 14KiB Down: 2.6GiB (reSessionID-c5e04241-bd21-4901-be98-1f2e5b641a94) [2024-10-16T21:27:07.388-07:00] Test session: https://www.internalfb.com/intern/testinfra/testrun/1407375271333966 Tests finished: Pass 0. Fail 1. Fatal 0. Skip 0. Build failure 0 1 TESTS FAILED ? kats:test_tsfeatures - test_nowcasting_error (kats.kats.tests.tsfeatures.test_tsfeatures.TSfeaturesTest) ``` Reviewed By: islijepcevic Differential Revision: D64519285 fbshipit-source-id: 3f3d7f249926ddc7dbe9885cefe54e1d0e2ad79a
- Loading branch information