Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10381

./sdks/java/container/license_scripts/license_script.sh failing in python PR

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Triage Needed
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: test-failures
    • Labels:
      None

      Description

      This seems odd as this PR doesn't modify any java code or deps. Is this just broken at master?

      PR https://github.com/apache/beam/pull/12084

      Fails the Python2_PVR_Flink ("Run Python2_PVR_Flink PreCommit")

      https://scans.gradle.com/s/rqx6h5cqyvvfo

      I added some logging locally to determine the URL it fails to pull from:

      INFO:root:Pulling from url: https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-mapreduce-client-jobclient/2.8.5/hadoop-mapreduce-client-jobclient-2.8.5.jar

      Traceback (most recent call last):

        File "/usr/local/google/home/ajamato/beam/sdks/java/container/license_scripts/pull_licenses_java.py", line 250, in <module>

          pool.map(execute, dependencies['dependencies'])

        File "/usr/lib/python3.7/multiprocessing/pool.py", line 268, in map

          return self._map_async(func, iterable, mapstar, chunksize).get()

        File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get

          raise self._value

        File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker

          result = (True, func(*args, **kwds))

        File "/usr/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar

          return list(map(*args))

        File "/usr/local/google/home/ajamato/beam/sdks/java/container/license_scripts/pull_licenses_java.py", line 203, in execute

          pull_source_code(base_url, dir_name, name_version)

        File "/usr/local/google/home/ajamato/beam/sdks/java/container/license_scripts/pull_licenses_java.py", line 105, in pull_source_code

          soup = BeautifulSoup(urlopen(base_url).read(), "html.parser")

        File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen

          return opener.open(url, data, timeout)

        File "/usr/lib/python3.7/urllib/request.py", line 531, in open

          response = meth(req, response)

        File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response

          'http', request, response, code, msg, hdrs)

        File "/usr/lib/python3.7/urllib/request.py", line 569, in error

          return self._call_chain(*args)

        File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain

          result = func(*args)

        File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default

          raise HTTPError(req.full_url, code, msg, hdrs, fp)

      urllib.error.HTTPError: HTTP Error 404: Not Found

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ajamato@google.com Alex Amato
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m