Fix various bugs in the new syncing script
[WebKit.git] / Websites / perf.webkit.org / tools / sync-buildbot.js
index 2db9ec2..4e925e9 100755 (executable)
@@ -21,6 +21,18 @@ function main(argv)
 
 function syncLoop(options)
 {
+    // FIXME: Fix Manifest.fetch() to use ensureSingleton to create model objects.
+    global.AnalysisTask._fetchAllPromise = null;
+    global.AnalysisTask.clearStaticMap();
+    global.BuildRequest.clearStaticMap();
+    global.CommitLog.clearStaticMap();
+    global.Metric.clearStaticMap();
+    global.Platform.clearStaticMap();
+    global.Repository.clearStaticMap();
+    global.RootSet.clearStaticMap();
+    global.Test.clearStaticMap();
+    global.TestGroup.clearStaticMap();
+
     let serverConfig = JSON.parse(fs.readFileSync(options['--server-config-json'], 'utf8'));
     let buildbotConfig = JSON.parse(fs.readFileSync(options['--buildbot-config-json'], 'utf8'));
     let buildbotRemote = new RemoteAPI(buildbotConfig.server);