Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. DOCKER_COMPOSE_FLAGS ?= -f docker-compose.yml --log-level ERROR
  2. BUILD_NUMBER ?= local
  3. BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
  4. PROJECT_NAME = web
  5. BUILD_DIR_NAME = $(shell pwd | xargs basename | tr -cd '[a-zA-Z0-9_.\-]')
  6. export SHARELATEX_CONFIG ?= /app/test/acceptance/config/settings.test.saas.js
  7. export BASE_CONFIG ?= ${SHARELATEX_CONFIG}
  8. CFG_SAAS=/app/test/acceptance/config/settings.test.saas.js
  9. CFG_SERVER_CE=/app/test/acceptance/config/settings.test.server-ce.js
  10. CFG_SERVER_PRO=/app/test/acceptance/config/settings.test.server-pro.js
  11. DOCKER_COMPOSE := BUILD_NUMBER=$(BUILD_NUMBER) \
  12. BRANCH_NAME=$(BRANCH_NAME) \
  13. PROJECT_NAME=$(PROJECT_NAME) \
  14. MOCHA_GREP=${MOCHA_GREP} \
  15. docker-compose ${DOCKER_COMPOSE_FLAGS}
  16. MODULE_DIRS := $(shell find modules -mindepth 1 -maxdepth 1 -type d -not -name '.git' )
  17. MODULE_MAKEFILES := $(MODULE_DIRS:=/Makefile)
  18. MODULE_NAME=$(shell basename $(MODULE))
  19. $(MODULE_MAKEFILES): Makefile.module
  20. cp Makefile.module $@ || diff Makefile.module $@
  21. #
  22. # Clean
  23. #
  24. clean_ci:
  25. $(DOCKER_COMPOSE) down -v -t 0
  26. docker container list | grep 'days ago' | cut -d ' ' -f 1 - | xargs -r docker container stop
  27. docker image prune -af --filter "until=48h"
  28. docker network prune -f
  29. #
  30. # Tests
  31. #
  32. test: test_unit test_karma test_acceptance test_frontend
  33. test_module: test_unit_module test_acceptance_module
  34. #
  35. # Unit tests
  36. #
  37. test_unit: test_unit_all
  38. test_unit_all:
  39. COMPOSE_PROJECT_NAME=unit_test_all_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) run --rm test_unit npm run test:unit:all
  40. COMPOSE_PROJECT_NAME=unit_test_all_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  41. test_unit_all_silent:
  42. COMPOSE_PROJECT_NAME=unit_test_all_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) run --rm test_unit npm run test:unit:all:silent
  43. COMPOSE_PROJECT_NAME=unit_test_all_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  44. test_unit_app:
  45. COMPOSE_PROJECT_NAME=unit_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  46. COMPOSE_PROJECT_NAME=unit_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) run --name unit_test_$(BUILD_DIR_NAME) --rm test_unit
  47. COMPOSE_PROJECT_NAME=unit_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  48. TEST_SUITES = $(sort $(filter-out \
  49. $(wildcard test/unit/src/helpers/*), \
  50. $(wildcard test/unit/src/*/*)))
  51. MOCHA_CMD_LINE = \
  52. mocha \
  53. --exit \
  54. --file test/unit/bootstrap.js \
  55. --grep=${MOCHA_GREP} \
  56. --reporter spec \
  57. --timeout 25000 \
  58. .PHONY: $(TEST_SUITES)
  59. $(TEST_SUITES):
  60. $(MOCHA_CMD_LINE) $@
  61. J ?= 1
  62. test_unit_app_parallel_gnu_make: $(TEST_SUITES)
  63. test_unit_app_parallel_gnu_make_docker: export COMPOSE_PROJECT_NAME = \
  64. unit_test_parallel_make_$(BUILD_DIR_NAME)
  65. test_unit_app_parallel_gnu_make_docker:
  66. $(DOCKER_COMPOSE) down -v -t 0
  67. $(DOCKER_COMPOSE) run --rm test_unit \
  68. make test_unit_app_parallel_gnu_make --output-sync -j $(J)
  69. $(DOCKER_COMPOSE) down -v -t 0
  70. test_unit_app_parallel: test_unit_app_parallel_gnu_parallel
  71. test_unit_app_parallel_gnu_parallel: export COMPOSE_PROJECT_NAME = \
  72. unit_test_parallel_$(BUILD_DIR_NAME)
  73. test_unit_app_parallel_gnu_parallel:
  74. $(DOCKER_COMPOSE) down -v -t 0
  75. $(DOCKER_COMPOSE) run --rm test_unit npm run test:unit:app:parallel
  76. $(DOCKER_COMPOSE) down -v -t 0
  77. TEST_UNIT_MODULES = $(MODULE_DIRS:=/test_unit)
  78. $(TEST_UNIT_MODULES): %/test_unit: %/Makefile
  79. test_unit_modules: $(TEST_UNIT_MODULES)
  80. test_unit_module:
  81. $(MAKE) modules/$(MODULE_NAME)/test_unit
  82. #
  83. # Karma frontend tests
  84. #
  85. test_karma: build_test_karma test_karma_run
  86. test_karma_run:
  87. COMPOSE_PROJECT_NAME=karma_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  88. COMPOSE_PROJECT_NAME=karma_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) run --rm test_karma
  89. COMPOSE_PROJECT_NAME=karma_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  90. test_karma_build_run: build_test_karma test_karma_run
  91. #
  92. # Frontend tests
  93. #
  94. test_frontend:
  95. COMPOSE_PROJECT_NAME=frontend_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  96. COMPOSE_PROJECT_NAME=frontend_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) run --rm test_frontend
  97. COMPOSE_PROJECT_NAME=frontend_test_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  98. #
  99. # Acceptance tests
  100. #
  101. test_acceptance: test_acceptance_app test_acceptance_modules
  102. test_acceptance_saas: test_acceptance_app_saas test_acceptance_modules_merged_saas
  103. test_acceptance_server_ce: test_acceptance_app_server_ce test_acceptance_modules_merged_server_ce
  104. test_acceptance_server_pro: test_acceptance_app_server_pro test_acceptance_modules_merged_server_pro
  105. TEST_ACCEPTANCE_APP := \
  106. test_acceptance_app_saas \
  107. test_acceptance_app_server_ce \
  108. test_acceptance_app_server_pro \
  109. test_acceptance_app: $(TEST_ACCEPTANCE_APP)
  110. test_acceptance_app_saas: export COMPOSE_PROJECT_NAME=acceptance_test_saas_$(BUILD_DIR_NAME)
  111. test_acceptance_app_saas: export SHARELATEX_CONFIG=$(CFG_SAAS)
  112. test_acceptance_app_server_ce: export COMPOSE_PROJECT_NAME=acceptance_test_server_ce_$(BUILD_DIR_NAME)
  113. test_acceptance_app_server_ce: export SHARELATEX_CONFIG=$(CFG_SERVER_CE)
  114. test_acceptance_app_server_pro: export COMPOSE_PROJECT_NAME=acceptance_test_server_pro_$(BUILD_DIR_NAME)
  115. test_acceptance_app_server_pro: export SHARELATEX_CONFIG=$(CFG_SERVER_PRO)
  116. $(TEST_ACCEPTANCE_APP):
  117. $(DOCKER_COMPOSE) down -v -t 0
  118. $(DOCKER_COMPOSE) run --rm test_acceptance
  119. $(DOCKER_COMPOSE) down -v -t 0
  120. # We are using _make magic_ for turning these file-targets into calls to
  121. # sub-Makefiles in the individual modules.
  122. # These sub-Makefiles need to be kept in sync with the template, hence we
  123. # add a dependency on each modules Makefile and cross-link that to the
  124. # template at the very top of this file.
  125. # Example: `web$ make modules/server-ce-scripts/test_acceptance_server_ce`
  126. # Description: Run the acceptance tests of the server-ce-scripts module in a
  127. # Server CE Environment.
  128. # Break down:
  129. # Target: modules/server-ce-scripts/test_acceptance_server_ce
  130. # -> depends on modules/server-ce-scripts/Makefile
  131. # -> add environment variable BASE_CONFIG=$(CFG_SERVER_CE)
  132. # -> BASE_CONFIG=/app/test/acceptance/config/settings.test.server-ce.js
  133. # -> automatic target: `make -C server-ce-scripts test_acceptance_server_ce`
  134. # -> automatic target: run `make test_acceptance_server_ce` in module
  135. # Target: modules/server-ce-scripts/Makefile
  136. # -> depends on Makefile.module
  137. # -> automatic target: copies the file when changed
  138. TEST_ACCEPTANCE_MODULES = $(MODULE_DIRS:=/test_acceptance)
  139. $(TEST_ACCEPTANCE_MODULES): %/test_acceptance: %/Makefile
  140. $(TEST_ACCEPTANCE_MODULES): modules/%/test_acceptance:
  141. $(MAKE) test_acceptance_module MODULE_NAME=$*
  142. TEST_ACCEPTANCE_MODULES_SAAS = $(MODULE_DIRS:=/test_acceptance_saas)
  143. $(TEST_ACCEPTANCE_MODULES_SAAS): %/test_acceptance_saas: %/Makefile
  144. $(TEST_ACCEPTANCE_MODULES_SAAS): export BASE_CONFIG = $(CFG_SAAS)
  145. # This line adds `/test_acceptance_saas` suffix to all items in $(MODULE_DIRS).
  146. TEST_ACCEPTANCE_MODULES_SERVER_CE = $(MODULE_DIRS:=/test_acceptance_server_ce)
  147. # This line adds a dependency on the modules Makefile.
  148. $(TEST_ACCEPTANCE_MODULES_SERVER_CE): %/test_acceptance_server_ce: %/Makefile
  149. # This line adds the environment variable BASE_CONFIG=$(CFG_SERVER_CE) to all
  150. # invocations of `web$ make modules/foo/test_acceptance_server_ce`.
  151. $(TEST_ACCEPTANCE_MODULES_SERVER_CE): export BASE_CONFIG = $(CFG_SERVER_CE)
  152. TEST_ACCEPTANCE_MODULES_SERVER_PRO = $(MODULE_DIRS:=/test_acceptance_server_pro)
  153. $(TEST_ACCEPTANCE_MODULES_SERVER_PRO): %/test_acceptance_server_pro: %/Makefile
  154. $(TEST_ACCEPTANCE_MODULES_SERVER_PRO): export BASE_CONFIG = $(CFG_SERVER_PRO)
  155. CLEAN_TEST_ACCEPTANCE_MODULES = $(MODULE_DIRS:=/clean_test_acceptance)
  156. $(CLEAN_TEST_ACCEPTANCE_MODULES): %/clean_test_acceptance: %/Makefile
  157. clean_test_acceptance_modules: $(CLEAN_TEST_ACCEPTANCE_MODULES)
  158. clean_ci: clean_test_acceptance_modules
  159. test_acceptance_module_noop:
  160. @echo
  161. @echo Module '$(MODULE_NAME)' does not run in ${LABEL}.
  162. @echo
  163. TEST_ACCEPTANCE_MODULE_MAYBE_IN := \
  164. test_acceptance_module_maybe_in_saas \
  165. test_acceptance_module_maybe_in_server_ce \
  166. test_acceptance_module_maybe_in_server_pro \
  167. test_acceptance_module: $(TEST_ACCEPTANCE_MODULE_MAYBE_IN)
  168. test_acceptance_module_maybe_in_saas: export BASE_CONFIG=$(CFG_SAAS)
  169. test_acceptance_module_maybe_in_server_ce: export BASE_CONFIG=$(CFG_SERVER_CE)
  170. test_acceptance_module_maybe_in_server_pro: export BASE_CONFIG=$(CFG_SERVER_PRO)
  171. # We need to figure out whether the module is loaded in a given environment.
  172. # This information is stored in the (base-)settings.
  173. # We get the full list of modules and check for a matching module entry.
  174. # Either the grep will find and emit the module, or exits with code 1, which
  175. # we handle with a fallback to a noop make target.
  176. # Run the node command in a docker-compose container which provides the needed
  177. # npm dependencies (from disk in dev-env or from the CI image in CI).
  178. # Pick the test_unit service which is very light-weight -- the test_acceptance
  179. # service would start mongo/redis.
  180. $(TEST_ACCEPTANCE_MODULE_MAYBE_IN): test_acceptance_module_maybe_in_%:
  181. $(MAKE) $(shell \
  182. SHARELATEX_CONFIG=$(BASE_CONFIG) \
  183. $(DOCKER_COMPOSE) run --rm test_unit \
  184. node test/acceptance/getModuleTargets test_acceptance_$* \
  185. | grep -e /$(MODULE_NAME)/ || echo test_acceptance_module_noop LABEL=$* \
  186. )
  187. # See docs for test_acceptance_server_ce how this works.
  188. test_acceptance_module_saas: export BASE_CONFIG = $(CFG_SAAS)
  189. test_acceptance_module_saas:
  190. $(MAKE) modules/$(MODULE_NAME)/test_acceptance_saas
  191. test_acceptance_module_server_ce: export BASE_CONFIG = $(CFG_SERVER_CE)
  192. test_acceptance_module_server_ce:
  193. $(MAKE) modules/$(MODULE_NAME)/test_acceptance_server_ce
  194. test_acceptance_module_server_pro: export BASE_CONFIG = $(CFG_SERVER_PRO)
  195. test_acceptance_module_server_pro:
  196. $(MAKE) modules/$(MODULE_NAME)/test_acceptance_server_pro
  197. # See docs for test_acceptance_server_ce how this works.
  198. TEST_ACCEPTANCE_MODULES_MERGED_INNER = $(MODULE_DIRS:=/test_acceptance_merged_inner)
  199. $(TEST_ACCEPTANCE_MODULES_MERGED_INNER): %/test_acceptance_merged_inner: %/Makefile
  200. test_acceptance_modules_merged_inner:
  201. $(MAKE) $(shell \
  202. SHARELATEX_CONFIG=$(BASE_CONFIG) \
  203. node test/acceptance/getModuleTargets test_acceptance_merged_inner \
  204. )
  205. # See docs for test_acceptance_server_ce how this works.
  206. test_acceptance_modules_merged_saas: export COMPOSE_PROJECT_NAME = \
  207. acceptance_test_modules_merged_saas_$(BUILD_DIR_NAME)
  208. test_acceptance_modules_merged_saas: export BASE_CONFIG = $(CFG_SAAS)
  209. test_acceptance_modules_merged_server_ce: export COMPOSE_PROJECT_NAME = \
  210. acceptance_test_modules_merged_server_ce_$(BUILD_DIR_NAME)
  211. test_acceptance_modules_merged_server_ce: export BASE_CONFIG = $(CFG_SERVER_CE)
  212. test_acceptance_modules_merged_server_pro: export COMPOSE_PROJECT_NAME = \
  213. acceptance_test_modules_merged_server_pro_$(BUILD_DIR_NAME)
  214. test_acceptance_modules_merged_server_pro: export BASE_CONFIG = $(CFG_SERVER_PRO)
  215. # All these variants run the same command.
  216. # Each target has a different set of environment defined above.
  217. TEST_ACCEPTANCE_MODULES_MERGED_VARIANTS = \
  218. test_acceptance_modules_merged_saas \
  219. test_acceptance_modules_merged_server_ce \
  220. test_acceptance_modules_merged_server_pro \
  221. $(TEST_ACCEPTANCE_MODULES_MERGED_VARIANTS):
  222. $(DOCKER_COMPOSE) down -v -t 0
  223. $(DOCKER_COMPOSE) run --rm test_acceptance make test_acceptance_modules_merged_inner
  224. $(DOCKER_COMPOSE) down -v -t 0
  225. test_acceptance_modules: $(TEST_ACCEPTANCE_MODULES_MERGED_VARIANTS)
  226. #
  227. # CI tests
  228. #
  229. ci:
  230. MOCHA_ARGS="--reporter tap" \
  231. $(MAKE) test
  232. #
  233. # Lint & format
  234. #
  235. ORG_PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  236. RUN_LINT_FORMAT ?= \
  237. docker run --rm ci/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER)
  238. NODE_MODULES_PATH := ${PATH}:${PWD}/node_modules/.bin:/app/node_modules/.bin
  239. WITH_NODE_MODULES_PATH = \
  240. format_backend \
  241. format_frontend \
  242. format_misc \
  243. format_styles \
  244. format_test_app_unit \
  245. format_test_app_rest \
  246. format_test_modules \
  247. $(TEST_SUITES) \
  248. $(WITH_NODE_MODULES_PATH): export PATH=$(NODE_MODULES_PATH)
  249. lint: lint_backend
  250. lint_backend:
  251. npx eslint \
  252. app.js \
  253. 'app/**/*.js' \
  254. 'modules/*/index.js' \
  255. 'modules/*/app/**/*.js' \
  256. --max-warnings=0
  257. lint: lint_frontend
  258. lint_frontend:
  259. npx eslint \
  260. 'frontend/**/*.js' \
  261. 'modules/*/frontend/**/*.js' \
  262. --max-warnings=0
  263. lint: lint_test
  264. lint_test: lint_test_app
  265. lint_test_app: lint_test_app_unit
  266. lint_test_app_unit:
  267. npx eslint \
  268. 'test/unit/**/*.js' \
  269. --max-warnings=0
  270. lint_test_app: lint_test_app_rest
  271. lint_test_app_rest:
  272. npx eslint \
  273. 'test/**/*.js' \
  274. --ignore-pattern 'test/unit/**/*.js' \
  275. --max-warnings=0
  276. lint_test: lint_test_modules
  277. lint_test_modules:
  278. npx eslint \
  279. 'modules/*/test/**/*.js' \
  280. --max-warnings=0
  281. lint: lint_misc
  282. # migrations, scripts, webpack config, karma config
  283. lint_misc:
  284. npx eslint . \
  285. --ignore-pattern app.js \
  286. --ignore-pattern 'app/**/*.js' \
  287. --ignore-pattern 'modules/*/app/**/*.js' \
  288. --ignore-pattern 'modules/*/index.js' \
  289. --ignore-pattern 'frontend/**/*.js' \
  290. --ignore-pattern 'modules/*/frontend/**/*.js' \
  291. --ignore-pattern 'test/**/*.js' \
  292. --ignore-pattern 'modules/*/test/**/*.js' \
  293. --max-warnings=0
  294. lint: lint_pug
  295. lint_pug:
  296. bin/lint_pug_templates
  297. lint_in_docker:
  298. $(RUN_LINT_FORMAT) make lint -j --output-sync
  299. format: format_js
  300. format_js:
  301. npm run --silent format
  302. format: format_styles
  303. format_styles:
  304. npm run --silent format:styles
  305. format_fix:
  306. npm run --silent format:fix
  307. format_styles_fix:
  308. npm run --silent format:styles:fix
  309. format_in_docker:
  310. $(RUN_LINT_FORMAT) make format -j --output-sync
  311. #
  312. # Build & publish
  313. #
  314. IMAGE_CI ?= ci/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER)
  315. IMAGE_REPO ?= gcr.io/overleaf-ops/$(PROJECT_NAME)
  316. IMAGE_REPO_BRANCH ?= $(IMAGE_REPO):$(BRANCH_NAME)
  317. IMAGE_REPO_MASTER ?= $(IMAGE_REPO):master
  318. IMAGE_REPO_FINAL ?= $(IMAGE_REPO_BRANCH)-$(BUILD_NUMBER)
  319. export SENTRY_RELEASE ?= ${COMMIT_SHA}
  320. build_deps:
  321. docker build --pull \
  322. --cache-from $(IMAGE_REPO_BRANCH)-deps \
  323. --cache-from $(IMAGE_REPO_MASTER)-deps \
  324. --tag $(IMAGE_REPO_BRANCH)-deps \
  325. --target deps \
  326. .
  327. build_dev:
  328. docker build \
  329. --build-arg SENTRY_RELEASE \
  330. --cache-from $(IMAGE_REPO_BRANCH)-deps \
  331. --cache-from $(IMAGE_CI)-dev \
  332. --tag $(IMAGE_CI) \
  333. --tag $(IMAGE_CI)-dev \
  334. --target dev \
  335. .
  336. build_webpack:
  337. $(MAKE) build_webpack_once \
  338. || $(MAKE) build_webpack_once
  339. build_webpack_once:
  340. docker build \
  341. --build-arg SENTRY_RELEASE \
  342. --cache-from $(IMAGE_CI)-dev \
  343. --cache-from $(IMAGE_CI)-webpack \
  344. --tag $(IMAGE_CI)-webpack \
  345. --target webpack \
  346. .
  347. build:
  348. docker build \
  349. --build-arg SENTRY_RELEASE \
  350. --cache-from $(IMAGE_CI)-webpack \
  351. --cache-from $(IMAGE_REPO_FINAL) \
  352. --tag $(IMAGE_REPO_FINAL) \
  353. .
  354. build_test_karma:
  355. COMPOSE_PROJECT_NAME=karma_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) build test_karma
  356. publish:
  357. docker push $(DOCKER_REPO)/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER)
  358. tar:
  359. COMPOSE_PROJECT_NAME=tar_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) run --rm tar
  360. COMPOSE_PROJECT_NAME=tar_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0
  361. MODULE_TARGETS = \
  362. $(TEST_ACCEPTANCE_MODULES_SAAS) \
  363. $(TEST_ACCEPTANCE_MODULES_SERVER_CE) \
  364. $(TEST_ACCEPTANCE_MODULES_SERVER_PRO) \
  365. $(TEST_ACCEPTANCE_MODULES_MERGED_INNER) \
  366. $(CLEAN_TEST_ACCEPTANCE_MODULES) \
  367. $(TEST_UNIT_MODULES) \
  368. $(MODULE_TARGETS):
  369. $(MAKE) -C $(dir $@) $(notdir $@) BUILD_DIR_NAME=$(BUILD_DIR_NAME)
  370. .PHONY:
  371. $(MODULE_TARGETS) \
  372. compile_modules compile_modules_full clean_ci \
  373. test test_module test_unit test_unit_app \
  374. test_unit_modules test_unit_module test_karma test_karma_run \
  375. test_karma_build_run test_frontend test_acceptance test_acceptance_app \
  376. test_acceptance_modules test_acceptance_module ci format format_fix lint \
  377. build build_test_karma publish tar