Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing test path for manifest during WPT syncing. #27230

Merged
merged 2 commits into from Jul 10, 2020
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Merge loading and updating manifest states when syncing.

  • Loading branch information
jdm committed Jul 10, 2020
commit f84d03b070893a0c64dd68de7431f5fd46364e73
[]
],
"sync.py": [
"0a41f706ebc3760729d9ba553076fe0d7e0b40b8",
"c3da2098d3c55dd5a79fa662a112335a03fcaa33",
[]
],
"tree.py": [
@@ -92,24 +92,18 @@ def create(self, state):
self.logger.debug("New base commit is %s" % state.sync_commit.sha1)


class LoadManifest(Step):
"""Load the test manifest"""
class UpdateManifest(Step):
"""Update the manifest to match the tests in the sync tree checkout"""

provides = ["manifest_path", "test_manifest"]

def create(self, state):
from manifest import manifest
state.manifest_path = os.path.join(state.metadata_path, "MANIFEST.json")
state.test_manifest = manifest.Manifest(state.sync["path"], "/")


class UpdateManifest(Step):
"""Update the manifest to match the tests in the sync tree checkout"""

def create(self, state):
from manifest import manifest, update
update.update(state.sync["path"], state.test_manifest)
manifest.write(state.test_manifest, state.manifest_path)
state.test_manifest = manifest.load_and_update(state.sync["path"],
state.manifest_path,
"/",
write_manifest=True)


class CopyWorkTree(Step):
@@ -149,7 +143,6 @@ class SyncFromUpstreamRunner(StepRunner):
"""(Sub)Runner for doing an upstream sync"""
steps = [UpdateCheckout,
GetSyncTargetCommit,
LoadManifest,
UpdateManifest,
CopyWorkTree,
CreateSyncPatch]
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.