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);