Bug 277309
| Summary: | REGRESSION(276883@main): common/checkout/scm/scm_unittest.py::GitTestWithMock::test_push_local_commits_to_server_* | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> |
| Component: | Tools / Tests | Assignee: | Jonathan Bedard <jbedard> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfan2, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=271965 | ||
Sam Sneddon [:gsnedders]
Once again, the fact we don't run the SCM tests once again bites us.
Running via tox and pytest, which doesn't skip these by default:
FAILED common/checkout/scm/scm_unittest.py::GitTestWithMock::test_push_local_commits_to_server_with_username_and_without_password - AttributeError: 'Git' object has no attribute 'has_authorization_for_realm'
FAILED common/checkout/scm/scm_unittest.py::GitTestWithMock::test_push_local_commits_to_server_without_username_and_password - AttributeError: 'Git' object has no attribute 'has_authorization_for_realm'
FAILED common/checkout/scm/scm_unittest.py::GitTestWithMock::test_push_local_commits_to_server_without_username_and_with_password - AttributeError: 'Git' object has no attribute 'has_authorization_for_realm'
This gets thrown from:
def push_local_commits_to_server(self, username=None, password=None):
dcommit_command = ['svn', 'dcommit', '--rmdir']
> if (not username or not password) and not self.has_authorization_for_realm(self.svn_server_realm):
E AttributeError: 'Git' object has no attribute 'has_authorization_for_realm'
common/checkout/scm/git.py:492: AttributeError
The correct answer here is probably to just remove `Git.push_local_commits_to_server`, given `git-svn dcommit` and our SVN server being gone, but it does have several callers. I presume just everything using it is just dead code that I failed to catch when I tried to remove dead code before. I think webkit-patch's land-unsafe, land-attachment, land-from-bug, and revert at least all use that code path, and I don't know if we expect any of these to still be functional at all?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/132770101>