bored-mechanic-51694
01/25/2021, 4:12 PM10:56:38 15:56:38 [INFO] Resolving new plugins...:
10:56:38 pantsbuild.pants.contrib.avro==1.26.0
10:56:38 pantsbuild.pants.contrib.googlejavaformat==1.26.0
10:56:38 pantsbuild.pants.contrib.python.checks==1.26.0
10:56:38 pantsbuild.pants.contrib.scrooge==1.26.0
10:56:38 pantsbuild.pants.contrib.thrifty==1.26.0
10:56:38 pex: Resolving for:
[SNIP]
10:56:39 Starting new HTTPS connection (1): <http://pypi.org:443|pypi.org:443>
10:57:39 Incremented Retry for (url='/simple/pantsbuild-pants-contrib-avro/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
10:57:39 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc21492b080>, 'Connection to <http://pypi.org|pypi.org> timed out. (connect timeout=15)')': /simple/pantsbuild-pants-contrib-avro/bored-mechanic-51694
01/25/2021, 4:13 PMhundreds-father-404
01/25/2021, 4:41 PMbackend_packages2 in your pants.toml and the UI would be the new "dynamic UI", where the screen refreshesbored-mechanic-51694
01/25/2021, 5:17 PMhundreds-father-404
01/25/2021, 5:20 PMhttp_proxy value because v2 is more hermetic, but that should be irrelevant here. I think we leak http_proxy to the underlying subprocesses
Is this your first time running it on this machine, or this is a regression?hundreds-father-404
01/25/2021, 5:21 PMpantsbuild.pants.contrib.avro from pypi.org? That is, you're not hosting it on a custom artifactory/cheeseshop?bored-mechanic-51694
01/25/2021, 5:22 PMbored-mechanic-51694
01/25/2021, 5:23 PMbored-mechanic-51694
01/25/2021, 5:24 PMhundreds-father-404
01/25/2021, 5:28 PMhttp_proxy and/or https_proxy.
Does the REQUESTS_CA_BUNDLE part look relevant to you?bored-mechanic-51694
01/25/2021, 5:29 PMhundreds-father-404
01/25/2021, 5:31 PMpants.tomlbored-mechanic-51694
01/25/2021, 5:33 PMhttp_proxy gets droppedhundreds-father-404
01/25/2021, 5:35 PMPYTHONPATHhundreds-father-404
01/25/2021, 5:40 PMpants-plugins/pants_contrib/avro, and then in that folder copy everything from https://github.com/pantsbuild/pants/tree/1.26.x/contrib/avro/src/python/pants/contrib/avro
Then, set pythonpath to pants-plugins, and under backend_packages, activate pants_contrib.avro instead of pants.contrib.avro. Remove the plugins sectionhundreds-father-404
01/25/2021, 5:41 PMpants.ini, you may need to make some tweaks from those docs because it assumes pants.toml (added in 1.26)bored-mechanic-51694
01/25/2021, 5:43 PMbored-mechanic-51694
01/25/2021, 5:43 PMhundreds-father-404
01/25/2021, 5:44 PMi believe the plugin download issues are a regression from pants 1.25 thoughIt's plausible, 1.26 switched to using Pex 2, which vendors pip to do resolves instead of using a custom resolver. Even though that generally made things much more robust, there were some hiccups
hundreds-father-404
01/25/2021, 5:45 PMgive that the avro isn't developed first-party anymoreIndeed. On that note, let us know if you issues upgrading past 1.28 with that plugin! We would be happy to help y'all figure out the changes to get it to 1.30, the last v1 release
hundreds-father-404
01/25/2021, 5:47 PMbored-mechanic-51694
01/25/2021, 5:49 PMhundreds-father-404
01/25/2021, 5:51 PMi believe the plugin download issues are a regression from pants 1.25 thoughAlso, it may be worth testing if it's fixed in later Pants versions, as they consume newer versions of Pex. I don't think we had any dedicated bug for this that we fixed..but might have been fixed without us knowing. If you want to try, I'd recommend creating a new minimal repository with nothing more than the
./pants script and a pants.toml that loads those plugins. Simply run ./pants --version to see if resolving the plugins work. This way, you avoid dealing with deprecation warningshappy-kitchen-89482
01/25/2021, 6:09 PMbored-mechanic-51694
01/25/2021, 7:30 PMbored-mechanic-51694
01/25/2021, 8:39 PMproxychains which is one of those LD_PRELOAD hacks, I was able to intercept all traffic and run it over the proxy, and that worked