{ "commit": "635f5a7128c780880824f69a9aba23af148dfeb4", "parent": "88de2f0fc52f4f02e1d44139f4404acf172624d7", "repository_id": "R003", "schema_version": 1, "task_id": "TASK_S2_R003_016", "valid_end_to_end": true, "validation": { "commands": [ "python -m pytest -q tests/unit/objects" ], "elapsed_seconds": 1.4582188329659402, "gold": [ { "command": "python -m pytest -q tests/unit/objects", "elapsed_seconds": 0.4166545420885086, "returncode": 0, "stderr": "", "stdout": "...............................................................s..s..... [ 22%]\n........................................................................ [ 44%]\n..............................................................s......... [ 66%]\n........................................................................ [ 88%]\n.................................... [100%]\n321 passed, 3 skipped in 0.24s\n", "timed_out": false } ], "hidden": [ { "command": "python -m pytest -q tests/unit/objects", "elapsed_seconds": 0.4397621669340879, "returncode": 1, "stderr": "", "stdout": "...............................................................s..s..... [ 22%]\n........................................................................ [ 44%]\n.......................FEFE.....................................s....... [ 66%]\n........................................................................ [ 88%]\n...................................... [100%]\n==================================== ERRORS ====================================\n__________________ ERROR at teardown of test_latest_pipeline ___________________\n\n @pytest.fixture\n def resp_get_latest():\n> with responses.RequestsMock() as rsps:\n\ntests/unit/objects/test_pipelines.py:223: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/Users/mandeepsidhu/Desktop/code/pending-work-research/agent-harness/.venv/lib/python3.11/site-packages/responses/__init__.py:996: in __exit__\n self.stop(allow_assert=success)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , allow_assert = True\n\n def stop(self, allow_assert: bool = True) -> None:\n if self._patcher:\n # prevent stopping unstarted patchers\n self._patcher.stop()\n \n # once patcher is stopped, clean it. This is required to create a new\n # fresh patcher on self.start()\n self._patcher = None\n \n if not self.assert_all_requests_are_fired:\n return\n \n if not allow_assert:\n return\n \n not_called = [m for m in self.registered() if m.call_count == 0]\n if not_called:\n> raise AssertionError(\n \"Not all requests have been executed {!r}\".format(\n [(match.method, match.url) for match in not_called]\n )\n )\nE AssertionError: Not all requests have been executed [('GET', 'http://localhost/api/v4/projects/1/pipelines/latest')]\n\n/Users/mandeepsidhu/Desktop/code/pending-work-research/agent-harness/.venv/lib/python3.11/site-packages/responses/__init__.py:1233: AssertionError\n_____________ ERROR at teardown of test_latest_pipeline_other_ref ______________\n\n @pytest.fixture\n def resp_get_latest_other_ref():\n> with responses.RequestsMock() as rsps:\n\ntests/unit/objects/test_pipelines.py:236: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/Users/mandeepsidhu/Desktop/code/pending-work-research/agent-harness/.venv/lib/python3.11/site-packages/responses/__init__.py:996: in __exit__\n self.stop(allow_assert=success)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , allow_assert = True\n\n def stop(self, allow_assert: bool = True) -> None:\n if self._patcher:\n # prevent stopping unstarted patchers\n self._patcher.stop()\n \n # once patcher is stopped, clean it. This is required to create a new\n # fresh patcher on self.start()\n self._patcher = None\n \n if not self.assert_all_requests_are_fired:\n return\n \n if not allow_assert:\n return\n \n not_called = [m for m in self.registered() if m.call_count == 0]\n if not_called:\n> raise AssertionError(\n \"Not all requests have been executed {!r}\".format(\n [(match.method, match.url) for match in not_called]\n )\n )\nE AssertionError: Not all requests have been executed [('GET', 'http://localhost/api/v4/projects/1/pipelines/latest')]\n\n/Users/mandeepsidhu/Desktop/code/pending-work-research/agent-harness/.venv/lib/python3.11/site-packages/responses/__init__.py:1233: AssertionError\n=================================== FAILURES ===================================\n_____________________________ test_latest_pipeline _____________________________\n\nproject = \nresp_get_latest = \n\n def test_latest_pipeline(project, resp_get_latest):\n> pipeline = project.pipelines.latest()\nE AttributeError: 'ProjectPipelineManager' object has no attribute 'latest'\n\ntests/unit/objects/test_pipelines.py:287: AttributeError\n________________________ test_latest_pipeline_other_ref ________________________\n\nproject = \nresp_get_latest_other_ref = \n\n def test_latest_pipeline_other_ref(project, resp_get_latest_other_ref):\n> pipeline = project.pipelines.latest(ref=\"feature-ref\")\nE AttributeError: 'ProjectPipelineManager' object has no attribute 'latest'\n\ntests/unit/objects/test_pipelines.py:294: AttributeError\n=========================== short test summary info ============================\nFAILED tests/unit/objects/test_pipelines.py::test_latest_pipeline - Attribute...\nFAILED tests/unit/objects/test_pipelines.py::test_latest_pipeline_other_ref\nERROR tests/unit/objects/test_pipelines.py::test_latest_pipeline - AssertionE...\nERROR tests/unit/objects/test_pipelines.py::test_latest_pipeline_other_ref - ...\n2 failed, 319 passed, 3 skipped, 2 errors in 0.27s\n", "timed_out": false } ], "hidden_apply": { "elapsed_seconds": 0.009514082921668887, "returncode": 0, "stderr": "", "stdout": "" }, "original": [ { "command": "python -m pytest -q tests/unit/objects", "elapsed_seconds": 0.5398399161640555, "returncode": 0, "stderr": "", "stdout": "...............................................................s..s..... [ 22%]\n........................................................................ [ 44%]\n............................................................s........... [ 67%]\n........................................................................ [ 89%]\n.................................. [100%]\n319 passed, 3 skipped in 0.36s\n", "timed_out": false } ], "reason": null, "source_apply": { "elapsed_seconds": 0.00925383297726512, "returncode": 0, "stderr": "", "stdout": "" }, "valid": true } }