Repository: iterative/dvc

Issue:
pull: ERROR: unexpected error - '<' not supported between instances of 'bool' and 'NoneType'
pull: ERROR: unexpected error - '<' not supported between instances of 'bool' and 'NoneType'

When running dvc pull on a new branch on git lab pipeline (via .gitlab-ci.yml file), I'm getting this error. Any idea what's wrong?

[dvc_doctor_output.txt](https://github.com/iterative/dvc/files/6992272/dvc_doctor_output.txt)

```
DVC version: 2.6.0 (pip)
---------------------------------
Platform: Python 3.8.10 on Linux-5.8.0-1041-aws-x86_64-with-glibc2.29
Supports:
	http (requests = 2.26.0),
	https (requests = 2.26.0),
	s3 (s3fs = 2021.7.0, boto3 = 1.17.106)
Cache types: <https://error.dvc.org/no-dvc-cache>
Caches: local
Remotes: s3, s3
Workspace directory: ext4 on /dev/root
Repo: dvc, git 
```

[dvc_pull_output.txt](https://github.com/iterative/dvc/files/6992273/dvc_pull_output.txt)

```
$ dvc pull -v -r s3-mud --run-cache || true
2021-08-16 09:53:07,443 DEBUG: Creating external repo https://cirunner:azk_************@git.mobilizedconstruction.com/datascience/northern-ireland-ops-data.git@*************
2021-08-16 09:53:07,443 DEBUG: erepo: git clone 'https://cirunner:azk_************@git.mobilizedconstruction.com/datascience/northern-ireland-ops-data.git' to a temporary dir
2021-08-16 09:53:08,019 DEBUG: Checking if stage '/tmp/tmpx5hvn1iudvc-clone/data/gullies.pickle.gz' is in 'dvc.yaml'
2021-08-16 09:53:08,290 DEBUG: Creating external repo https://cirunner:azk_************@git.mobilizedconstruction.com/datascience/northern-ireland-ops-data.git@*************
2021-08-16 09:53:08,299 DEBUG: Checking if stage '/tmp/tmpx5hvn1iudvc-clone/data/segs_full_weather_2016_Feb_2021.pk.gz' is in 'dvc.yaml'
2021-08-16 09:53:08,355 DEBUG: Creating external repo https://cirunner:azk_************@git.mobilizedconstruction.com/datascience/northern-ireland-ops-data.git@*************
2021-08-16 09:53:08,362 DEBUG: Checking if stage '/tmp/tmpx5hvn1iudvc-clone/data/Mapped_Intersections.pickle.gz' is in 'dvc.yaml'
2021-08-16 09:53:08,414 DEBUG: Creating external repo https://cirunner:azk_************@git.mobilizedconstruction.com/datascience/northern-ireland-ops-data.git@*************
2021-08-16 09:53:08,420 DEBUG: Checking if stage '/tmp/tmpx5hvn1iudvc-clone/data/highways_canonical.pickle.gz' is in 'dvc.yaml'
2021-08-16 09:53:08,730 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/03/03a774ab1f9a40e22ef58d744dafabb2762ec50c4731759ebec5b11674ca7352/6cbc90c10660939fac771f0a2386c56fc367cb2f25cc6fac4f23274d7608fbc8' to '.dvc/cache/runs/03/03a774ab1f9a40e22ef58d744dafabb2762ec50c4731759ebec5b11674ca7352/6cbc90c10660939fac771f0a2386c56fc367cb2f25cc6fac4f23274d7608fbc8'
2021-08-16 09:53:08,949 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/04/04d33a0094b3c3cbbb79867302982b51f10ad6c374d6393e118af439d47bbd42/cf2befde993cd79e8677b093f872c93e287869ff4fb8fe6465abaae6f4f87777' to '.dvc/cache/runs/04/04d33a0094b3c3cbbb79867302982b51f10ad6c374d6393e118af439d47bbd42/cf2befde993cd79e8677b093f872c93e287869ff4fb8fe6465abaae6f4f87777'
2021-08-16 09:53:09,043 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/09/09c116b026349e41f85e58539d713b5a62bd4d1f0f5af0439088130741243906/da541052772e9dc3d0c3f14866b09525584246abb5cd6a3b6b72fe00bfd7c807' to '.dvc/cache/runs/09/09c116b026349e41f85e58539d713b5a62bd4d1f0f5af0439088130741243906/da541052772e9dc3d0c3f14866b09525584246abb5cd6a3b6b72fe00bfd7c807'
2021-08-16 09:53:09,137 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/10/100f27c197d514e67739c260aefe164a7cb99470067a2394e0d7d4f56937fd52/b06d8291d4866324a21c93fc24d07e0313de26e12d6da1b3c218aa589b41a61c' to '.dvc/cache/runs/10/100f27c197d514e67739c260aefe164a7cb99470067a2394e0d7d4f56937fd52/b06d8291d4866324a21c93fc24d07e0313de26e12d6da1b3c218aa589b41a61c'
2021-08-16 09:53:09,208 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/11/11c5d0c9c0db1f012823053b0ca4717a96a6822465d65098289b13a56fda6dd3/e19d1e376d9bdce4fec69c980112f1cca0e4c8677bc7456b07f66cc83b470a7a' to '.dvc/cache/runs/11/11c5d0c9c0db1f012823053b0ca4717a96a6822465d65098289b13a56fda6dd3/e19d1e376d9bdce4fec69c980112f1cca0e4c8677bc7456b07f66cc83b470a7a'
2021-08-16 09:53:09,281 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/13/13321ed114ead295dd1af568675606ee65627c0b7dba6581af98fa2d6c8f0463/fb12c3184cacba22c293c25b3992c1463615a886b1dd5bfa1d2372fd899d3182' to '.dvc/cache/runs/13/13321ed114ead295dd1af568675606ee65627c0b7dba6581af98fa2d6c8f0463/fb12c3184cacba22c293c25b3992c1463615a886b1dd5bfa1d2372fd899d3182'
2021-08-16 09:53:09,377 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/18/18fbfd83ae0037a9a0a295c53fc71f115443025a680b0de6ffc44548a02d8868/c50b5d9ed4f93b17c39cb9a5311dd2875d2447bb882ce6ca514177b83ef19471' to '.dvc/cache/runs/18/18fbfd83ae0037a9a0a295c53fc71f115443025a680b0de6ffc44548a02d8868/c50b5d9ed4f93b17c39cb9a5311dd2875d2447bb882ce6ca514177b83ef19471'
2021-08-16 09:53:09,468 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/1d/1da5827f4183c55f61dea1a95c95c813862570e5f7bae423e44f778d84469249/e48f258eb45b00eecf5e0e243e15bbc3d5182b1c08e65c710400a840ee6cb035' to '.dvc/cache/runs/1d/1da5827f4183c55f61dea1a95c95c813862570e5f7bae423e44f778d84469249/e48f258eb45b00eecf5e0e243e15bbc3d5182b1c08e65c710400a840ee6cb035'
2021-08-16 09:53:09,550 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/1d/1df2a625ec27a6e21badc7ae27fbdf1486c76e87f5b337b3bc580865af310595/5fa084ee1aad92a94f193eb6bcd913a034be98e9b690826c0ae359b794dd92dd' to '.dvc/cache/runs/1d/1df2a625ec27a6e21badc7ae27fbdf1486c76e87f5b337b3bc580865af310595/5fa084ee1aad92a94f193eb6bcd913a034be98e9b690826c0ae359b794dd92dd'
2021-08-16 09:53:09,632 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/28/28cfad851e1d2166208a83871b90bd5b2693f87fb526b55a6d506fbb3eb535e3/12c0b50ef005cbe9f790098bd021e3ea337f95bdf572f35fc74c39339901eb53' to '.dvc/cache/runs/28/28cfad851e1d2166208a83871b90bd5b2693f87fb526b55a6d506fbb3eb535e3/12c0b50ef005cbe9f790098bd021e3ea337f95bdf572f35fc74c39339901eb53'
2021-08-16 09:53:09,712 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/2b/2bb51662ffd4374a8f180f4213ae71e8527f4d2feaf64dedb4c04b0ccbbd490d/5fbf9b58e9b2e8c625ca1ae455f31731912a7b824c715e01f87fae9e0e766c78' to '.dvc/cache/runs/2b/2bb51662ffd4374a8f180f4213ae71e8527f4d2feaf64dedb4c04b0ccbbd490d/5fbf9b58e9b2e8c625ca1ae455f31731912a7b824c715e01f87fae9e0e766c78'
2021-08-16 09:53:09,800 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/2c/2c1fab9a94a0c816d9e2a697e5e65c3e5b3247d8e1eed8400d60c05695e0f97b/29d50d4f5938aa858557226bd9569e161ab7512bcfe6b7022627361da6287a0b' to '.dvc/cache/runs/2c/2c1fab9a94a0c816d9e2a697e5e65c3e5b3247d8e1eed8400d60c05695e0f97b/29d50d4f5938aa858557226bd9569e161ab7512bcfe6b7022627361da6287a0b'
2021-08-16 09:53:09,880 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/34/346a9ec32baa5519fbb26f86856de25ae60db1a9b0789e16d9b9d98a76e6b1cc/8a5c181504161ad91e898be81832e71d6c66acdacfde78b1e11ff80f318af6bc' to '.dvc/cache/runs/34/346a9ec32baa5519fbb26f86856de25ae60db1a9b0789e16d9b9d98a76e6b1cc/8a5c181504161ad91e898be81832e71d6c66acdacfde78b1e11ff80f318af6bc'
2021-08-16 09:53:09,971 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/48/48b722ef2fe1ac0d4839bf5cff466466f01346e30fd2d16bc07f026139a8eca2/e5264e3cfc08c5d8a53e0ad8f29a2a9024edaa460079c8f3f95bdd8e8ad6d06a' to '.dvc/cache/runs/48/48b722ef2fe1ac0d4839bf5cff466466f01346e30fd2d16bc07f026139a8eca2/e5264e3cfc08c5d8a53e0ad8f29a2a9024edaa460079c8f3f95bdd8e8ad6d06a'
2021-08-16 09:53:10,085 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/49/49c7dd2c61a2008ec814153cd3b3f396c49aac9be202702ba15cd67755edd1bd/be760204e4e3e0e033e1f0015ab25986113b3d6ba0becf0c24a924b82f90b3d3' to '.dvc/cache/runs/49/49c7dd2c61a2008ec814153cd3b3f396c49aac9be202702ba15cd67755edd1bd/be760204e4e3e0e033e1f0015ab25986113b3d6ba0becf0c24a924b82f90b3d3'
2021-08-16 09:53:10,187 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/4b/4b607743af878277a22c05243333d92345ab18532047b0498e1c3e88848143d4/6f15f5aaf825361c75b8ec88b9c8d7bad67ccfe3f8c122f6d56c4c53e6a29bd3' to '.dvc/cache/runs/4b/4b607743af878277a22c05243333d92345ab18532047b0498e1c3e88848143d4/6f15f5aaf825361c75b8ec88b9c8d7bad67ccfe3f8c122f6d56c4c53e6a29bd3'
2021-08-16 09:53:10,410 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/4c/4c9a99ab6f8a72dd81b2be4caf50909ea56012526b3adb13098d62869fb71798/53cbd04f2f1c3acd104012c5659402d77df28ab78462130485bb1f7c3978f47b' to '.dvc/cache/runs/4c/4c9a99ab6f8a72dd81b2be4caf50909ea56012526b3adb13098d62869fb71798/53cbd04f2f1c3acd104012c5659402d77df28ab78462130485bb1f7c3978f47b'
2021-08-16 09:53:10,503 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/4d/4d12a3231ec4685e21c92cf49071d2304e2481a898fe1a26eb7551e371733b83/2d430289d3380098854d7d36170c424de6cdea338b6eb53ec8a048fb343a8fbd' to '.dvc/cache/runs/4d/4d12a3231ec4685e21c92cf49071d2304e2481a898fe1a26eb7551e371733b83/2d430289d3380098854d7d36170c424de6cdea338b6eb53ec8a048fb343a8fbd'
2021-08-16 09:53:10,661 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/51/51de158c1a69ac08036340c852abf54ce17aa5ef2fc5c602f8361418af5b3d16/1a4eda0951788dd7f4582d25b116ab090e40cf782130a676f38bb5d2780e0ffc' to '.dvc/cache/runs/51/51de158c1a69ac08036340c852abf54ce17aa5ef2fc5c602f8361418af5b3d16/1a4eda0951788dd7f4582d25b116ab090e40cf782130a676f38bb5d2780e0ffc'
2021-08-16 09:53:10,743 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/52/522908b5a30d8b988dde8b22c0505930ca94bd09ae61b5cd79e998164c61670a/28138e7ad8bed685da6f1b08ac07fa3d93950cb06b15ca9ad69c66da7f0474a5' to '.dvc/cache/runs/52/522908b5a30d8b988dde8b22c0505930ca94bd09ae61b5cd79e998164c61670a/28138e7ad8bed685da6f1b08ac07fa3d93950cb06b15ca9ad69c66da7f0474a5'
2021-08-16 09:53:10,833 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/54/5475af155b47837c55ce4949487c0c413aa19fd2d796d164f4b5f2e2e61c2aec/f0dc96b5318387fc706e83cae956d47dcaa9f19f8b0084706aabadb5e23caacd' to '.dvc/cache/runs/54/5475af155b47837c55ce4949487c0c413aa19fd2d796d164f4b5f2e2e61c2aec/f0dc96b5318387fc706e83cae956d47dcaa9f19f8b0084706aabadb5e23caacd'
2021-08-16 09:53:10,915 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/55/55892831a577f5fb0475f6a2a23bc4b1d2a8eca344501d5aee3995143704ee88/a4e6b182aaf52def9406635d92695acec43ce8891584200defa8b416f5fc97d1' to '.dvc/cache/runs/55/55892831a577f5fb0475f6a2a23bc4b1d2a8eca344501d5aee3995143704ee88/a4e6b182aaf52def9406635d92695acec43ce8891584200defa8b416f5fc97d1'
2021-08-16 09:53:10,998 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/57/57ff3a16fb519ff6358abd3f4ec32050951c3a8a5c675cbcd3c5bde33c37d671/eb62ed35cdf5913ddb4c67477dbfed7623f9c9b0832c9f877cc2b615381ba769' to '.dvc/cache/runs/57/57ff3a16fb519ff6358abd3f4ec32050951c3a8a5c675cbcd3c5bde33c37d671/eb62ed35cdf5913ddb4c67477dbfed7623f9c9b0832c9f877cc2b615381ba769'
2021-08-16 09:53:11,089 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/58/58e2b5612077d1bb4dd0085b900c40175d13721bec8002a2a18b49b60b50a273/02c0fe20cf7c37aa0a45ff18ad5804ec1b41b5a87330bb371db29e230b246be3' to '.dvc/cache/runs/58/58e2b5612077d1bb4dd0085b900c40175d13721bec8002a2a18b49b60b50a273/02c0fe20cf7c37aa0a45ff18ad5804ec1b41b5a87330bb371db29e230b246be3'
2021-08-16 09:53:11,160 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/59/590f0a558991c9cdd1b41b3eabef43f138dc6b82b17401c7ce3219d79a6546a8/6f858aaf2ca3f950cea9de2e43694d765be921afed84afd55152b52c53de77ad' to '.dvc/cache/runs/59/590f0a558991c9cdd1b41b3eabef43f138dc6b82b17401c7ce3219d79a6546a8/6f858aaf2ca3f950cea9de2e43694d765be921afed84afd55152b52c53de77ad'
2021-08-16 09:53:11,232 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/5f/5fe7691dbf20e8c321943cb8edd9edf88e0702d30d3b015e0e2c271349ca4eff/5764bff13020fb2a95f6b893ee2a6d11acfec614aed23c309507122b0e796137' to '.dvc/cache/runs/5f/5fe7691dbf20e8c321943cb8edd9edf88e0702d30d3b015e0e2c271349ca4eff/5764bff13020fb2a95f6b893ee2a6d11acfec614aed23c309507122b0e796137'
2021-08-16 09:53:11,307 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/63/639246ab43f77d6be814b4dd400f6211bd5ddf25d67e7db78a704773e6648da8/7fe3453abf8e1a346e18044ac19806e4facbf8bea0394626d3596fb79512afa0' to '.dvc/cache/runs/63/639246ab43f77d6be814b4dd400f6211bd5ddf25d67e7db78a704773e6648da8/7fe3453abf8e1a346e18044ac19806e4facbf8bea0394626d3596fb79512afa0'
2021-08-16 09:53:11,386 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/64/641fdf3dbb40269f6d73b54c993cbe6f7d7defc0041e679f8d412f775a223838/819070326265518ea2e32186d90c6c3cea2c3ab050703e8f0f58d4d3e729b120' to '.dvc/cache/runs/64/641fdf3dbb40269f6d73b54c993cbe6f7d7defc0041e679f8d412f775a223838/819070326265518ea2e32186d90c6c3cea2c3ab050703e8f0f58d4d3e729b120'
2021-08-16 09:53:11,494 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/67/675ad35c447b8f997b4f34aec36addf6753c3be21c7524f88a1d6030b165f65e/7dedbcb671c680b8d88c277b3aa867798b0f9010aa4c2ce33904857174d3ec95' to '.dvc/cache/runs/67/675ad35c447b8f997b4f34aec36addf6753c3be21c7524f88a1d6030b165f65e/7dedbcb671c680b8d88c277b3aa867798b0f9010aa4c2ce33904857174d3ec95'
2021-08-16 09:53:11,572 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/68/686913c398663dc740b6da955506c0e8e3524ffd8c0b129989ac11f53f5cb583/d19f7e7f271af0baf724cb98bdf0b1b133b1d932f6966222d2b4f543e1bb9208' to '.dvc/cache/runs/68/686913c398663dc740b6da955506c0e8e3524ffd8c0b129989ac11f53f5cb583/d19f7e7f271af0baf724cb98bdf0b1b133b1d932f6966222d2b4f543e1bb9208'
2021-08-16 09:53:11,695 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/6f/6f66ad097edb164121d70054c006858cd1466f58b0dcc65b85f37d3015a05a47/19909ba7f3ce6dd0f164b551918f7d34ee81129d36f6a96cedbe1e969d5fb464' to '.dvc/cache/runs/6f/6f66ad097edb164121d70054c006858cd1466f58b0dcc65b85f37d3015a05a47/19909ba7f3ce6dd0f164b551918f7d34ee81129d36f6a96cedbe1e969d5fb464'
2021-08-16 09:53:11,770 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/74/744d01cc5fb8fe9a096c7223689a0be7536b9fd108674a435f14b6a078676893/bdafc497bc6ff23a1b94580117dc38a88d09c54a97d6bf16d1e0e397275f15b8' to '.dvc/cache/runs/74/744d01cc5fb8fe9a096c7223689a0be7536b9fd108674a435f14b6a078676893/bdafc497bc6ff23a1b94580117dc38a88d09c54a97d6bf16d1e0e397275f15b8'
2021-08-16 09:53:11,852 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/75/75f89a718077f4bd0d19fff5147b5651a36e611c50ec142c08d703b0e44231db/ad6074fc5e4df90d67b394ea0bff5db552a1d135d8a67ab651ee62d81cfe12b3' to '.dvc/cache/runs/75/75f89a718077f4bd0d19fff5147b5651a36e611c50ec142c08d703b0e44231db/ad6074fc5e4df90d67b394ea0bff5db552a1d135d8a67ab651ee62d81cfe12b3'
2021-08-16 09:53:11,952 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/7d/7d948180a259ccfdd8861b06af44f3bc7da5a86444269f0bf7561b7003f6da32/98d10e1f492f78e0ca63830ca54196ccf737bb556f5e5ae9f33d25e3b2bec88d' to '.dvc/cache/runs/7d/7d948180a259ccfdd8861b06af44f3bc7da5a86444269f0bf7561b7003f6da32/98d10e1f492f78e0ca63830ca54196ccf737bb556f5e5ae9f33d25e3b2bec88d'
2021-08-16 09:53:12,062 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/86/86ff3d880219f8d85d40143ce836963c799387b69fd19b3879cf724ddb75626f/e9791ca42ff0531fad014d1ec654709d0252a4c478999b87c6a1704ebed55dd3' to '.dvc/cache/runs/86/86ff3d880219f8d85d40143ce836963c799387b69fd19b3879cf724ddb75626f/e9791ca42ff0531fad014d1ec654709d0252a4c478999b87c6a1704ebed55dd3'
2021-08-16 09:53:12,146 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/89/89186ed6c93336236c771aa56c423265e5eb3832bd34e1ae8564db2400ed27b3/dc5d27dd3ca2ef10429f961bd9545809dbc1c9281806fdae878697bf8212625a' to '.dvc/cache/runs/89/89186ed6c93336236c771aa56c423265e5eb3832bd34e1ae8564db2400ed27b3/dc5d27dd3ca2ef10429f961bd9545809dbc1c9281806fdae878697bf8212625a'
2021-08-16 09:53:12,205 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/89/8954f6ed4baf4e84aec2d6b781130b4abccc8710b9ea40e6f9d578bd24ce3d6f/822ab4d84d06cbca5d17f3ca36d2f9aac3f753594c41db971a892151252efb49' to '.dvc/cache/runs/89/8954f6ed4baf4e84aec2d6b781130b4abccc8710b9ea40e6f9d578bd24ce3d6f/822ab4d84d06cbca5d17f3ca36d2f9aac3f753594c41db971a892151252efb49'
2021-08-16 09:53:12,276 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/97/975c4e9eff7292afa52233da487c9be2cc70453d6b796940d8900558c74d102a/2ce7ded629014c366eb40e9792a03f1d5c61b82f716d5c0ad26bdf99f049520d' to '.dvc/cache/runs/97/975c4e9eff7292afa52233da487c9be2cc70453d6b796940d8900558c74d102a/2ce7ded629014c366eb40e9792a03f1d5c61b82f716d5c0ad26bdf99f049520d'
2021-08-16 09:53:12,337 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/99/994185841666e60ac926685b9f4038869de997a0112d9b0ff833d0e9c1cf1586/5267173f4b51948643a688a97a4dd1c66d770ca376ac87efd3b5be7c3f554f43' to '.dvc/cache/runs/99/994185841666e60ac926685b9f4038869de997a0112d9b0ff833d0e9c1cf1586/5267173f4b51948643a688a97a4dd1c66d770ca376ac87efd3b5be7c3f554f43'
2021-08-16 09:53:12,421 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/99/99ea983b4fefa79474fac40b791a09da25737d7a4da7c6ba68e155940e1b6aea/97f4ed01966d0d7b867cd8fb3a6013b9ce7ac51e426cff1d2cf2d8a6f7970bcd' to '.dvc/cache/runs/99/99ea983b4fefa79474fac40b791a09da25737d7a4da7c6ba68e155940e1b6aea/97f4ed01966d0d7b867cd8fb3a6013b9ce7ac51e426cff1d2cf2d8a6f7970bcd'
2021-08-16 09:53:12,508 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/9a/9aa2c0e900f2a0bc76e300fcb42b7bab5dcd59a3a6fe7034d057d47e454bffa7/6beef6974c4a7dd6bab832fa4a6002f4a57b895a9546db9e78706f3f276f0277' to '.dvc/cache/runs/9a/9aa2c0e900f2a0bc76e300fcb42b7bab5dcd59a3a6fe7034d057d47e454bffa7/6beef6974c4a7dd6bab832fa4a6002f4a57b895a9546db9e78706f3f276f0277'
2021-08-16 09:53:12,686 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/9e/9e2dedb7d4df1c13ed9886c59764d57c378b781a1e7e219b34bd72a7a41f9a71/0d8c6aea60badfa01d7bee4ddc699c7bdf55768c2a26268554d928e89843d971' to '.dvc/cache/runs/9e/9e2dedb7d4df1c13ed9886c59764d57c378b781a1e7e219b34bd72a7a41f9a71/0d8c6aea60badfa01d7bee4ddc699c7bdf55768c2a26268554d928e89843d971'
2021-08-16 09:53:12,775 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/a0/a0feaa725554adfc450a309b67a5dfb5d331ac3c9d4f76b1ac1ae09976e89907/a4cd99d84a5992c43277b2ed77dd13aa5fdaac8520b6a521c49b3dde88432877' to '.dvc/cache/runs/a0/a0feaa725554adfc450a309b67a5dfb5d331ac3c9d4f76b1ac1ae09976e89907/a4cd99d84a5992c43277b2ed77dd13aa5fdaac8520b6a521c49b3dde88432877'
2021-08-16 09:53:12,855 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/a1/a1667eb6e46ff30c796f01fe8ea8d6821e1e9dc4963ffd65b20b4a21dd4a9791/e26a988f2f6ed4f4c5950f7f7c2c8f57905ca9f1983825a972bdc537d86da20c' to '.dvc/cache/runs/a1/a1667eb6e46ff30c796f01fe8ea8d6821e1e9dc4963ffd65b20b4a21dd4a9791/e26a988f2f6ed4f4c5950f7f7c2c8f57905ca9f1983825a972bdc537d86da20c'
2021-08-16 09:53:12,955 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/a2/a275113702cb521c42f5d6de68d77607d47600fc9027e1c6be41cef1cd741c01/5090b718004bb37108319bbe9d4255d2adcf9d4d3d5cbad80308bc5439a5aafa' to '.dvc/cache/runs/a2/a275113702cb521c42f5d6de68d77607d47600fc9027e1c6be41cef1cd741c01/5090b718004bb37108319bbe9d4255d2adcf9d4d3d5cbad80308bc5439a5aafa'
2021-08-16 09:53:13,038 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/a3/a3d751c18c48e35cd16c457b399538ea5c32818066b4be0cd2b26fd2e9e04a3e/b1ad3a114051ffc2492ff91d80a1c77899db7a6e021abc8ae1d7fe9f47ecd2bd' to '.dvc/cache/runs/a3/a3d751c18c48e35cd16c457b399538ea5c32818066b4be0cd2b26fd2e9e04a3e/b1ad3a114051ffc2492ff91d80a1c77899db7a6e021abc8ae1d7fe9f47ecd2bd'
2021-08-16 09:53:13,123 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/aa/aa4986ba48441bc6f317ecd266079fecad83137d64dc231cd0f994f0c0133941/08f0d9c0353107deaf718da612ee1988ceb0c496998d31534507de7e0e859921' to '.dvc/cache/runs/aa/aa4986ba48441bc6f317ecd266079fecad83137d64dc231cd0f994f0c0133941/08f0d9c0353107deaf718da612ee1988ceb0c496998d31534507de7e0e859921'
2021-08-16 09:53:13,216 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/bd/bd3e0cf17862b394a709d3374c4777eb6a907549e76ddd56ce6ab2cbc9148509/2def9f85c29c5f08e4e2d153f6582534ce6b12d85af764f3438ba9feb2368e0f' to '.dvc/cache/runs/bd/bd3e0cf17862b394a709d3374c4777eb6a907549e76ddd56ce6ab2cbc9148509/2def9f85c29c5f08e4e2d153f6582534ce6b12d85af764f3438ba9feb2368e0f'
2021-08-16 09:53:13,285 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/c2/c2b180fc1a46cf671f94cf564b42d296041ccb53c10d16e650cf16281913d551/c05ff566b530ce45ffd29ff2c264d358d0884c67c479016f505c888859c51b5c' to '.dvc/cache/runs/c2/c2b180fc1a46cf671f94cf564b42d296041ccb53c10d16e650cf16281913d551/c05ff566b530ce45ffd29ff2c264d358d0884c67c479016f505c888859c51b5c'
2021-08-16 09:53:13,363 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/c6/c6b8dc7ff0d478e4f56fbad76714ad557464f2114c296ec124fd78e7c11f37b1/f619a677fd6f2f759667c6433d950f4981bb308367c274c64e6d7705b83a9591' to '.dvc/cache/runs/c6/c6b8dc7ff0d478e4f56fbad76714ad557464f2114c296ec124fd78e7c11f37b1/f619a677fd6f2f759667c6433d950f4981bb308367c274c64e6d7705b83a9591'
2021-08-16 09:53:13,447 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/c7/c756652fee0fe9d26c5dcb6d919fbfb09a256baa386a5a8eb5c549cdbe7c7a33/8e8075a44fcdf74feae750572185d5402eed4f6f180f43fc9eea98095c0c5826' to '.dvc/cache/runs/c7/c756652fee0fe9d26c5dcb6d919fbfb09a256baa386a5a8eb5c549cdbe7c7a33/8e8075a44fcdf74feae750572185d5402eed4f6f180f43fc9eea98095c0c5826'
2021-08-16 09:53:13,532 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/c9/c91c34bf43151982180f60b9f134f8f5c8b60cc3ed3882ed62c23e7c825101af/ea84894f2657d104030a23ac166a0633887c56882f774fc274948c199c116c33' to '.dvc/cache/runs/c9/c91c34bf43151982180f60b9f134f8f5c8b60cc3ed3882ed62c23e7c825101af/ea84894f2657d104030a23ac166a0633887c56882f774fc274948c199c116c33'
2021-08-16 09:53:13,638 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/d0/d0b1f255d555f81691904dde6b84e95b38c808f663989db9735b8842a6807d2c/0b312e0a4a0a7fc0675fa8008104301732e9335ce1322d21ebf9e037c2ba1795' to '.dvc/cache/runs/d0/d0b1f255d555f81691904dde6b84e95b38c808f663989db9735b8842a6807d2c/0b312e0a4a0a7fc0675fa8008104301732e9335ce1322d21ebf9e037c2ba1795'
2021-08-16 09:53:13,778 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/d3/d3b192c70a506dbc5de61084afbe2e3c4b1d4378a8032754ebbee3ae09fbaefc/d48a082601c6309289f3bd48912cd814463100762abb90ba38a260c2e2482e50' to '.dvc/cache/runs/d3/d3b192c70a506dbc5de61084afbe2e3c4b1d4378a8032754ebbee3ae09fbaefc/d48a082601c6309289f3bd48912cd814463100762abb90ba38a260c2e2482e50'
2021-08-16 09:53:13,860 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/d6/d6a7b0030c2a06fa450491650dd0f48e0f812082f95d08bead509a8e45438dd6/a2a40ac5ac70a3531a2ecd38d01b87ae23d46db2bca2c49a1ae793afed825b12' to '.dvc/cache/runs/d6/d6a7b0030c2a06fa450491650dd0f48e0f812082f95d08bead509a8e45438dd6/a2a40ac5ac70a3531a2ecd38d01b87ae23d46db2bca2c49a1ae793afed825b12'
2021-08-16 09:53:14,000 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/de/de6fd087d2bfab4428ae4238bb05d60505a6192b05f18e274a020fe9a9af5294/01c2ea83e72e279793a8de5a7bd41e1dde8dbe378a2df1353ae825223adab560' to '.dvc/cache/runs/de/de6fd087d2bfab4428ae4238bb05d60505a6192b05f18e274a020fe9a9af5294/01c2ea83e72e279793a8de5a7bd41e1dde8dbe378a2df1353ae825223adab560'
2021-08-16 09:53:14,087 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/e0/e027db51b1b2dd103d8457f16d1b907aa344877d59ad9474598e8053bd47ab58/13e763ca35fc5157fbe00ff80b502855663ed84bb59a585e93776d5791c21755' to '.dvc/cache/runs/e0/e027db51b1b2dd103d8457f16d1b907aa344877d59ad9474598e8053bd47ab58/13e763ca35fc5157fbe00ff80b502855663ed84bb59a585e93776d5791c21755'
2021-08-16 09:53:14,167 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/f1/f1a2badf33c14acaccd901a02980eabf55eeafc40415c67b0831a57df751a7ee/cbdb51d644185bbd59ff806a5b544b34b94fbc57ce15d076035eb10cb7ff1baf' to '.dvc/cache/runs/f1/f1a2badf33c14acaccd901a02980eabf55eeafc40415c67b0831a57df751a7ee/cbdb51d644185bbd59ff806a5b544b34b94fbc57ce15d076035eb10cb7ff1baf'
2021-08-16 09:53:14,254 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/f7/f718254dbed2a567469d84234d1d3b093889ff4eb202d3fad91285d3f43989d1/e18d73a5c453e7fb3eeb1400cdd418bbbe78159dc6816030aafd50a10eb4c70d' to '.dvc/cache/runs/f7/f718254dbed2a567469d84234d1d3b093889ff4eb202d3fad91285d3f43989d1/e18d73a5c453e7fb3eeb1400cdd418bbbe78159dc6816030aafd50a10eb4c70d'
2021-08-16 09:53:14,345 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/f7/f76c26ff5a5cad3d54307fb132e46974b8be008815dc585af4488cb63fa4812f/e446586834e545b14132092db7f14df0b4a9694f9e3fe39187c9b8ee6fdf56f1' to '.dvc/cache/runs/f7/f76c26ff5a5cad3d54307fb132e46974b8be008815dc585af4488cb63fa4812f/e446586834e545b14132092db7f14df0b4a9694f9e3fe39187c9b8ee6fdf56f1'
2021-08-16 09:53:14,464 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/fc/fca745be6dac3e12760024bed55ac57eb368a994293e6918c7eca5c5d6f3fc80/2a2d8b7dbba538295bb6c4c8445070ad7a7bacbc11f47397396a605774817eff' to '.dvc/cache/runs/fc/fca745be6dac3e12760024bed55ac57eb368a994293e6918c7eca5c5d6f3fc80/2a2d8b7dbba538295bb6c4c8445070ad7a7bacbc11f47397396a605774817eff'
2021-08-16 09:53:14,566 DEBUG: Downloading 's3://mc-ml-s3-storage/months-until-defects/runs/fd/fd3448cbe19de59df99c41a473092df347a663e698553362d7104179993b0dfa/62995a4d25e766effe43bcd224a6bea385b9606b97b960aff68eae6a30e91268' to '.dvc/cache/runs/fd/fd3448cbe19de59df99c41a473092df347a663e698553362d7104179993b0dfa/62995a4d25e766effe43bcd224a6bea385b9606b97b960aff68eae6a30e91268'
2021-08-16 09:53:14,645 ERROR: unexpected error - '<' not supported between instances of 'bool' and 'NoneType'
------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/dvc/main.py", line 55, in main
    ret = cmd.do_run()
  File "/usr/local/lib/python3.8/dist-packages/dvc/command/base.py", line 50, in do_run
    return self.run()
  File "/usr/local/lib/python3.8/dist-packages/dvc/command/data_sync.py", line 30, in run
    stats = self.repo.pull(
  File "/usr/local/lib/python3.8/dist-packages/dvc/repo/__init__.py", line 49, in wrapper
    return f(repo, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/dvc/repo/pull.py", line 29, in pull
    processed_files_count = self.fetch(
  File "/usr/local/lib/python3.8/dist-packages/dvc/repo/__init__.py", line 49, in wrapper
    return f(repo, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/dvc/repo/fetch.py", line 62, in fetch
    for odb, obj_ids in sorted(
TypeError: '<' not supported between instances of 'bool' and 'NoneType'
------------------------------------------------------------
2021-08-16 09:53:14,716 DEBUG: Version info for developers:
DVC version: 2.6.0 (pip)
---------------------------------
Platform: Python 3.8.10 on Linux-5.8.0-1041-aws-x86_64-with-glibc2.29
Supports:
	http (requests = 2.26.0),
	https (requests = 2.26.0),
	s3 (s3fs = 2021.7.0, boto3 = 1.17.106)
Cache types: hardlink, symlink
Cache directory: ext4 on /dev/root
Caches: local
Remotes: s3, s3
Workspace directory: ext4 on /dev/root
Repo: dvc, git
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

```

Discussion:

Patch:
diff --git a/dvc/analytics.py b/dvc/analytics.py
index e3023a489..beeeb3525 100644
--- a/dvc/analytics.py
+++ b/dvc/analytics.py
@@ -2,6 +2,8 @@ import json
 import logging
 import os
 
+from .env import DVC_ANALYTICS
+
 logger = logging.getLogger(__name__)
 
 
@@ -42,9 +44,12 @@ def is_enabled():
     if env2bool("DVC_TEST"):
         return False
 
-    enabled = to_bool(
-        Config(validate=False).get("core", {}).get("analytics", "true")
-    )
+    enabled = env2bool(DVC_ANALYTICS, None)
+    if enabled is None:
+        enabled = to_bool(
+            Config(validate=False).get("core", {}).get("analytics", "true")
+        )
+
     logger.debug("Analytics is {}abled.".format("en" if enabled else "dis"))
 
     return enabled
diff --git a/dvc/command/version.py b/dvc/command/version.py
index 5fd70b786..ca8c72eaf 100644
--- a/dvc/command/version.py
+++ b/dvc/command/version.py
@@ -10,21 +10,12 @@ logger = logging.getLogger(__name__)
 class CmdVersion(CmdBaseNoRepo):
     def run(self):
         from dvc.info import get_dvc_info
-        from dvc.repo import NotDvcRepoError, Repo
+        from dvc.updater import notify_updates
 
         dvc_info = get_dvc_info()
         ui.write(dvc_info, force=True)
 
-        try:
-            with Repo() as repo:
-                from dvc.updater import Updater
-
-                hardlink_lock = repo.config["core"].get("hardlink_lock", False)
-                updater = Updater(repo.tmp_dir, hardlink_lock=hardlink_lock)
-                updater.check()
-        except NotDvcRepoError:
-            pass
-
+        notify_updates()
         return 0
 
 
diff --git a/dvc/env.py b/dvc/env.py
index e5f8ad912..1974321a0 100644
--- a/dvc/env.py
+++ b/dvc/env.py
@@ -9,3 +9,4 @@ DVCLIVE_RESUME = "DVCLIVE_RESUME"
 DVC_IGNORE_ISATTY = "DVC_IGNORE_ISATTY"
 DVC_EXP_GIT_REMOTE = "DVC_EXP_GIT_REMOTE"
 DVC_EXP_AUTO_PUSH = "DVC_EXP_AUTO_PUSH"
+DVC_ANALYTICS = "DVC_ANALYTICS"
diff --git a/dvc/repo/fetch.py b/dvc/repo/fetch.py
index d9cee65aa..c7af1179b 100644
--- a/dvc/repo/fetch.py
+++ b/dvc/repo/fetch.py
@@ -61,7 +61,8 @@ def fetch(
 
     for odb, obj_ids in sorted(
         used.items(),
-        key=lambda item: item[0] and item[0].fs.scheme == Schemes.MEMORY,
+        key=lambda item: item[0] is not None
+        and item[0].fs.scheme == Schemes.MEMORY,
     ):
         d, f = _fetch(
             self,
diff --git a/dvc/updater.py b/dvc/updater.py
index 92c69d2ac..ea03dde9c 100644
--- a/dvc/updater.py
+++ b/dvc/updater.py
@@ -2,17 +2,20 @@ import logging
 import os
 import sys
 import time
+from typing import TYPE_CHECKING, Optional
 
-import colorama
 from packaging import version
 
 from dvc import __version__
 from dvc.utils.pkg import PKG
 
+if TYPE_CHECKING:
+    from rich.text import Text
+
 logger = logging.getLogger(__name__)
 
 
-class Updater:  # pragma: no cover
+class Updater:
     URL = "https://updater.dvc.org"
     UPDATER_FILE = "updater"
     TIMEOUT = 24 * 60 * 60  # every day
@@ -105,57 +108,58 @@ class Updater:  # pragma: no cover
         with open(self.updater_file, "w+") as fobj:
             json.dump(info, fobj)
 
-    def _notify(self, latest):
+    def _notify(self, latest: str, pkg: Optional[str] = PKG) -> None:
+        from dvc.ui import ui
+
         if not sys.stdout.isatty():
             return
 
-        message = (
-            "Update available {red}{current}{reset} -> {green}{latest}{reset}"
-            + "\n"
-            + self._get_update_instructions()
-        ).format(
-            red=colorama.Fore.RED,
-            reset=colorama.Fore.RESET,
-            green=colorama.Fore.GREEN,
-            yellow=colorama.Fore.YELLOW,
-            blue=colorama.Fore.BLUE,
-            current=self.current,
-            latest=latest,
+        message = self._get_message(latest, pkg=pkg)
+        return ui.error_write(message, styled=True)
+
+    def _get_message(
+        self,
+        latest: str,
+        current: str = None,
+        color: str = "yellow",
+        pkg: Optional[str] = None,
+    ) -> "Text":
+        from rich.text import Text
+
+        current = current or self.current
+        update_message = Text.from_markup(
+            f"You are using dvc version [bold]{current}[/]; "
+            f"however, version [bold]{latest}[/] is available."
+        )
+        instruction = Text.from_markup(self._get_update_instructions(pkg=pkg))
+        return Text.assemble(
+            "\n", update_message, "\n", instruction, style=color
         )
 
-        from dvc.utils import boxify
-
-        logger.info(boxify(message, border_color="yellow"))
+    def _get_update_instructions(self, pkg: Optional[str] = None) -> str:
+        if pkg in ("osxpkg", "exe", "binary"):
+            return (
+                "To upgrade, uninstall dvc and reinstall from "
+                "[blue]https://dvc.org[/]."
+            )
 
-    def _get_update_instructions(self):
         instructions = {
-            "pip": "Run `{yellow}pip{reset} install dvc "
-            "{blue}--upgrade{reset}`",
-            "rpm": "Run `{yellow}yum{reset} update dvc`",
-            "brew": "Run `{yellow}brew{reset} upgrade dvc`",
-            "deb": (
-                "Run `{yellow}apt-get{reset} install"
-                " {blue}--only-upgrade{reset} dvc`"
-            ),
-            "binary": (
-                "To upgrade follow these steps:\n"
-                "1. Uninstall dvc binary\n"
-                "2. Go to {blue}https://dvc.org{reset}\n"
-                "3. Download and install new binary"
-            ),
-            "conda": "Run `{yellow}conda{reset} update dvc`",
-            "choco": "Run `{yellow}choco{reset} upgrade dvc`",
-            None: (
-                "Find the latest release at\n"
-                "{blue}https://github.com/iterative/dvc/releases/latest{reset}"
-            ),
+            "pip": "pip install --upgrade dvc",
+            "rpm": "yum update dvc",
+            "brew": "brew upgrade dvc",
+            "deb": "apt-get install --only-upgrade dvc",
+            "conda": "conda update dvc",
+            "choco": "choco upgrade dvc",
         }
 
-        package_manager = PKG
-        if package_manager in ("osxpkg", "exe"):
-            package_manager = "binary"
+        if pkg not in instructions:
+            return (
+                "Find the latest release at "
+                "[blue]https://github.com/iterative/dvc/releases/latest[/]."
+            )
 
-        return instructions[package_manager]
+        instruction = instructions[pkg]
+        return f"To upgrade, run '{instruction}'."
 
     def is_enabled(self):
         from dvc.config import Config, to_bool
@@ -167,3 +171,14 @@ class Updater:  # pragma: no cover
             "Check for update is {}abled.".format("en" if enabled else "dis")
         )
         return enabled
+
+
+def notify_updates():
+    from contextlib import suppress
+
+    from dvc.repo import NotDvcRepoError, Repo
+
+    with suppress(NotDvcRepoError), Repo() as repo:
+        hardlink_lock = repo.config["core"].get("hardlink_lock", False)
+        updater = Updater(repo.tmp_dir, hardlink_lock=hardlink_lock)
+        updater.check()
diff --git a/dvc/utils/html.py b/dvc/utils/html.py
index 3a970174c..12c58924c 100644
--- a/dvc/utils/html.py
+++ b/dvc/utils/html.py
@@ -7,9 +7,9 @@ PAGE_HTML = """<!DOCTYPE html>
 <html>
 <head>
     <title>DVC Plot</title>
-    <script src="https://cdn.jsdelivr.net/npm/vega@5.10.0"></script>
-    <script src="https://cdn.jsdelivr.net/npm/vega-lite@4.8.1"></script>
-    <script src="https://cdn.jsdelivr.net/npm/vega-embed@6.5.1"></script>
+    <script src="https://cdn.jsdelivr.net/npm/vega@5.20.2"></script>
+    <script src="https://cdn.jsdelivr.net/npm/vega-lite@5.1.0"></script>
+    <script src="https://cdn.jsdelivr.net/npm/vega-embed@6.18.2"></script>
 </head>
 <body>
     {plot_divs}
diff --git a/dvc/version.py b/dvc/version.py
index 5f34d0e05..5fe5d5e70 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
 import os
 import subprocess
 
-_BASE_VERSION = "2.6.0"
+_BASE_VERSION = "2.6.1"
 
 
 def _generate_version(base_version):


Test patch:
diff --git a/tests/func/test_data_cloud.py b/tests/func/test_data_cloud.py
index 2fb4cd42c..fb51701ff 100644
--- a/tests/func/test_data_cloud.py
+++ b/tests/func/test_data_cloud.py
@@ -350,6 +350,27 @@ def test_pull_external_dvc_imports(tmp_dir, dvc, scm, erepo_dir):
     assert (tmp_dir / "new_dir" / "bar").read_text() == "bar"
 
 
+def test_pull_external_dvc_imports_mixed(
+    tmp_dir, dvc, scm, erepo_dir, local_remote
+):
+    with erepo_dir.chdir():
+        erepo_dir.dvc_gen("foo", "foo", commit="first")
+        os.remove("foo")
+
+    # imported: foo
+    dvc.imp(os.fspath(erepo_dir), "foo")
+
+    # local-object: bar
+    tmp_dir.dvc_gen("bar", "bar")
+    dvc.push("bar")
+
+    clean(["foo", "bar"], dvc)
+
+    assert dvc.pull()["fetched"] == 2
+    assert (tmp_dir / "foo").read_text() == "foo"
+    assert (tmp_dir / "bar").read_text() == "bar"
+
+
 def clean(outs, dvc=None):
     from tests.utils import clean_staging
 
diff --git a/tests/unit/test_analytics.py b/tests/unit/test_analytics.py
index 177f448f2..a91cb3e00 100644
--- a/tests/unit/test_analytics.py
+++ b/tests/unit/test_analytics.py
@@ -87,6 +87,40 @@ def test_is_enabled(dvc, config, result, monkeypatch, tmp_global_dir):
 
     # reset DVC_TEST env var, which affects `is_enabled()`
     monkeypatch.delenv("DVC_TEST")
+    monkeypatch.delenv("DVC_ANALYTICS", raising=False)
+
+    assert result == analytics.is_enabled()
+
+
+@pytest.mark.parametrize(
+    "config, env, result",
+    [
+        (None, None, True),
+        (None, "true", True),
+        (None, "false", False),
+        ("false", None, False),
+        ("false", "true", True),
+        ("false", "false", False),
+        ("true", None, True),
+        ("true", "true", True),
+        ("true", "false", False),
+    ],
+)
+def test_is_enabled_env(dvc, config, env, result, monkeypatch, tmp_global_dir):
+    # reset DVC_TEST env var, which affects `is_enabled()`
+    monkeypatch.delenv("DVC_TEST")
+    monkeypatch.delenv("DVC_ANALYTICS", raising=False)
+    with dvc.config.edit() as conf:
+        conf["core"] = {}
+
+    assert analytics.is_enabled()
+
+    if config is not None:
+        with dvc.config.edit() as conf:
+            conf["core"] = {"analytics": config}
+
+    if env is not None:
+        monkeypatch.setenv("DVC_ANALYTICS", env)
 
     assert result == analytics.is_enabled()
 
diff --git a/tests/unit/test_updater.py b/tests/unit/test_updater.py
index 854f408a4..5ea30bd61 100644
--- a/tests/unit/test_updater.py
+++ b/tests/unit/test_updater.py
@@ -8,6 +8,7 @@ import pytest
 
 from dvc import __version__
 from dvc.updater import Updater
+from tests.func.parsing.test_errors import escape_ansi
 
 
 @pytest.fixture
@@ -85,19 +86,26 @@ def test_check_update_respect_config(mock_check, result, updater, mocker):
     ],
     ids=["uptodate", "behind", "ahead"],
 )
-def test_check_updates(mock_tty, updater, caplog, current, latest, notify):
+def test_check_updates(mocker, capsys, updater, current, latest, notify):
+    mocker.patch("sys.stdout.isatty", return_value=True)
+
     updater.current = current
     with open(updater.updater_file, "w+") as f:
         json.dump({"version": latest}, f)
 
-    caplog.clear()
-    with caplog.at_level(logging.INFO, logger="dvc.updater"):
-        updater.check()
+    updater.check()
+    out, err = capsys.readouterr()
+    expected_message = (
+        (
+            f"You are using dvc version {current}; "
+            f"however, version {latest} is available.\n"
+        )
+        if notify
+        else ""
+    )
 
-    if notify:
-        assert f"Update available {current} -> {latest}" in caplog.text
-    else:
-        assert not caplog.text
+    assert expected_message in escape_ansi(err)
+    assert not out
 
 
 def test_check_refetches_each_day(mock_tty, updater, caplog, mocker):
@@ -138,3 +146,45 @@ def test_check(mock_check, updater):
     updater.check()
 
     assert mock_check.call_count == 3
+
+
+@pytest.mark.parametrize(
+    "pkg, instruction",
+    [
+        ("pip", "To upgrade, run 'pip install --upgrade dvc'."),
+        ("rpm", "To upgrade, run 'yum update dvc'."),
+        ("brew", "To upgrade, run 'brew upgrade dvc'."),
+        ("deb", "To upgrade, run 'apt-get install --only-upgrade dvc'."),
+        ("conda", "To upgrade, run 'conda update dvc'."),
+        ("choco", "To upgrade, run 'choco upgrade dvc'."),
+        (
+            "osxpkg",
+            "To upgrade, uninstall dvc and reinstall from https://dvc.org.",
+        ),
+        (
+            "exe",
+            "To upgrade, uninstall dvc and reinstall from https://dvc.org.",
+        ),
+        (
+            "binary",
+            "To upgrade, uninstall dvc and reinstall from https://dvc.org.",
+        ),
+        (
+            None,
+            "Find the latest release at "
+            "https://github.com/iterative/dvc/releases/latest.",
+        ),
+        (
+            "unknown",
+            "Find the latest release at "
+            "https://github.com/iterative/dvc/releases/latest.",
+        ),
+    ],
+)
+def test_notify_message(updater, pkg, instruction):
+    update_message = (
+        "You are using dvc version 0.0.2; however, version 0.0.3 is available."
+    )
+
+    message = updater._get_message("0.0.3", current="0.0.2", pkg=pkg)
+    assert message.plain.splitlines() == ["", update_message, instruction]