commit | cb97686d8b3f7107bdc76dca73e0b7cf0f61cee1 | [log] [tgz] |
---|---|---|
author | Jason Kusuma <jkusuma@google.com> | Thu Jul 14 02:06:59 2022 |
committer | Jason Kusuma <jkusuma@google.com> | Thu Jul 14 02:23:33 2022 |
tree | d3c5173d9e3ef9b23dda50f3a1037076eaa3fec5 | |
parent | 414f5667e3c2ce99895c71e774c6c796dea709d4 [diff] |
config: Update tko_jobs grace_period capacity from 500 -> 2000. Try to increase grace period capacity to reduce the likelihood of skipped ids which lead to skipped export of results. BUG=b:238030516 TEST=None Change-Id: I2c26ec0a1307bf50b9441f9374e25beb1e2dc869
Install mysql client:
sudo apt-get install default-libmysqlclient-dev libssl-dev
Install python libs:
make load-libs
_mysql.c:2005:41: error: 'MYSQL' {aka 'struct st_mysql'} has no member named 'reconnect'
:
This may happen on Debian based system. Workaround: Run sudo sed '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h -i.bkp
.
Run unit test:
make unit-test
config-dev
file:tko: credentials: hostname: your_sql_instance_ip username: sql_use password: sql_password database: sql_db_name timezone: US/Pacific
Run ci_results_archiver
locally:
make run-local
Note, this will run in one-shot mode with the dev config. Make sure your desktop IP has been whitelisted by the TKO Cloud SQL instance. To export data to BigQuery, you need a service account json key in the folder. For internal users, run make load-credentials
first.
Build the docker locally:
make local-build
Build docker on GCP:
make cloud-build
By default it creates the image to project google.com:chromeos-lab
. If this is not your preference, please configure it in Makefile
.
If you want to deploy the docker to ChromeOS Lab project, please refer our internal doc for more details.