Closed Bug 1881430 Opened 2 years ago Closed 2 years ago

ValueError: too many values to unpack (expected 2) in python/mozbuild/mozbuild/artifacts.py line 671

Categories

(Toolkit :: Application Update, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1881360

People

(Reporter: arai, Unassigned)

References

(Regression)

Details

(Keywords: regression)

https://phabricator.services.mozilla.com/D184711

2 extra items are added to MacArtifactJob._paths_no_keep_path tuple, but the consumer isn't updated, which results in in the following error:

ValueError: too many values to unpack (expected 2)
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifact_commands.py", line 196, in artifact_install
    return artifacts.install_from(source, distdir or command_context.distdir)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 1670, in install_from
    return self.install_from_recent(distdir)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 1566, in install_from_recent
    return self._install_from_hg_pushheads(hg_pushheads, distdir)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 1552, in _install_from_hg_pushheads
    if self.install_from_url(url, distdir):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 1526, in install_from_url
    return self.install_from_file(filename, distdir)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 1485, in install_from_file
    raise e
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 1478, in install_from_file
    self._artifact_job.process_artifact(filename, processed_filename)
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 252, in process_artifact
    return self.process_package_artifact(filename, processed_filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 733, in process_package_artifact
    root, paths = self.paths_no_keep_path
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File ".../mozilla-unified/python/mozbuild/mozbuild/artifacts.py", line 671, in paths_no_keep_path
    root, paths = self._paths_no_keep_path
    ^^^^^^^^^^^

:spohl, can you take a look?
what's the expected behavior for the change?

Flags: needinfo?(spohl.mozilla.bugs)
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1881360
Resolution: --- → DUPLICATE
Flags: needinfo?(spohl.mozilla.bugs)
You need to log in before you can comment on or make changes to this bug.