* refactor: calculate revision first before render AC and Components * fix flaky e2e case * add e2e test