Closed Bug 1669798 Opened 1 year ago Closed 1 year ago

Permafailing [tier 2] ValueError: Unable to retrieve the port number from mozproxy | python/mozperftest/mozperftest/system/proxy.py:131: ValueError

Categories

(Testing :: Mozbase, defect)

Default
defect

Tracking

(firefox-esr78 unaffected, firefox81 unaffected, firefox82 unaffected, firefox83 fixed)

RESOLVED FIXED
Tracking Status
firefox-esr78 --- unaffected
firefox81 --- unaffected
firefox82 --- unaffected
firefox83 --- fixed

People

(Reporter: noemi_erli, Unassigned)

References

(Regression)

Details

(Keywords: regression)

https://treeherder.mozilla.org/logviewer.html#?job_id=317938957&repo=autoland

[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] self = <mozperftest.system.proxy.ProxyRunner object at 0x7f1728a72be0>
[task 2020-10-07T18:33:36.301Z] metadata = <mozperftest.metadata.Metadata object at 0x7f1728a72ac8>
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] def run(self, metadata):
[task 2020-10-07T18:33:36.301Z] self.metadata = metadata
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] replay_file = self.get_arg("replay")
[task 2020-10-07T18:33:36.301Z] if replay_file is not None and replay_file.startswith("http"):
[task 2020-10-07T18:33:36.301Z] self.tmpdir = tempfile.TemporaryDirectory()
[task 2020-10-07T18:33:36.301Z] target = os.path.join(self.tmpdir.name, "recording.dump")
[task 2020-10-07T18:33:36.301Z] self.info("Downloading %s" % replay_file)
[task 2020-10-07T18:33:36.301Z] download_file(replay_file, target)
[task 2020-10-07T18:33:36.301Z] replay_file = target
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] self.info("Setting up the proxy")
[task 2020-10-07T18:33:36.301Z] # replace with artifacts
[task 2020-10-07T18:33:36.301Z] command = [
[task 2020-10-07T18:33:36.301Z] "mozproxy",
[task 2020-10-07T18:33:36.301Z] "--local",
[task 2020-10-07T18:33:36.301Z] "--binary=" + self.mach_cmd.get_binary_path(),
[task 2020-10-07T18:33:36.301Z] "--topsrcdir=" + self.mach_cmd.topsrcdir,
[task 2020-10-07T18:33:36.301Z] "--objdir=" + self.mach_cmd.topobjdir,
[task 2020-10-07T18:33:36.301Z] ]
[task 2020-10-07T18:33:36.301Z] if self.get_arg("record"):
[task 2020-10-07T18:33:36.301Z] command.extend(["--record", self.get_arg("record")])
[task 2020-10-07T18:33:36.301Z] elif replay_file:
[task 2020-10-07T18:33:36.301Z] command.append(replay_file)
[task 2020-10-07T18:33:36.301Z] else:
[task 2020-10-07T18:33:36.301Z] command.append(os.path.join(HERE, "example.dump"))
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] self.output_handler = OutputHandler()
[task 2020-10-07T18:33:36.301Z] self.proxy = ProcessHandler(
[task 2020-10-07T18:33:36.301Z] command,
[task 2020-10-07T18:33:36.301Z] processOutputLine=self.output_handler,
[task 2020-10-07T18:33:36.301Z] onFinish=self.output_handler.finished,
[task 2020-10-07T18:33:36.301Z] )
[task 2020-10-07T18:33:36.301Z] self.output_handler.proc = self.proxy
[task 2020-10-07T18:33:36.301Z] self.proxy.run()
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] # Wait until we've retrieved the proxy server's port number so we can
[task 2020-10-07T18:33:36.301Z] # configure the browser properly.
[task 2020-10-07T18:33:36.301Z] port = self.output_handler.wait_for_port()
[task 2020-10-07T18:33:36.301Z] if port is None:
[task 2020-10-07T18:33:36.301Z] > raise ValueError("Unable to retrieve the port number from mozproxy")
[task 2020-10-07T18:33:36.301Z] E ValueError: Unable to retrieve the port number from mozproxy
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] python/mozperftest/mozperftest/system/proxy.py:131: ValueError
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] During handling of the above exception, another exception occurred:
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] install_mozproxy = <mozbuild.base.MozbuildObject object at 0x7f1729075eb8>
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] def test_replay(install_mozproxy):
[task 2020-10-07T18:33:36.301Z] mach_cmd, metadata, env = get_running_env(proxy=True)
[task 2020-10-07T18:33:36.301Z] system = env.layers[SYSTEM]
[task 2020-10-07T18:33:36.301Z] env.set_arg("proxy-replay", example_dump)
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] # XXX this will run for real, we need to mock HTTP calls
[task 2020-10-07T18:33:36.301Z] with system as proxy, silence():
[task 2020-10-07T18:33:36.301Z] > proxy(metadata)
[task 2020-10-07T18:33:36.301Z]
[task 2020-10-07T18:33:36.301Z] python/mozperftest/mozperftest/tests/test_proxy.py:42:
[task 2020-10-07T18:33:36.301Z]

Flags: needinfo?(fstrugariu)

backout requested and fix for the change request implemented

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(fstrugariu)
Resolution: --- → FIXED

Set release status flags based on info from the regressing bug 1666264

You need to log in before you can comment on or make changes to this bug.