History log of /external/autotest/frontend/migrations/098_add_require_ssp.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c9e1714424621786322d0e6ea48ac167bf35ce16 19-Feb-2015 Dan Shi <dshi@chromium.org> [autotest] Add a new field require_ssp in afe_jobs table

When a job is created, data in control file is parsed and saved in afe_jobs.
scheduler picks up the database row and tries to compile the commandline for
autoserv to run. require_ssp (require server-side packaging) is a new field
will be added to control file to force to use/do not use ssp when running
a server side test.

If the value is True or None(default), server-side packaging will be applied
to run server side test, if global config AUTOSERV/enable_ssp_container is
set to True.

Since the attribute can only be retrieved when parsing control file, it needs
to be stored in afe_jobs table. Therefore, the new field is added to the table.

require_ssp is nullable and has no default value, so the sql command should
only take several minutes to finish in production database.

BUG=chromium:453624
TEST=local run migrate.py sync and migrate.py sync 97
run scheduler locally and run a dummy suite, confirm scheduler and other
components work without issue (refer to bug 459523).

DEPLOY=migrate, db must be migrated after this CL is pushed to prod. Otherwise
scheduler will fail.

Change-Id: I7c65150b7ee3309310fdbed42b5079e564845a65
Reviewed-on: https://chromium-review.googlesource.com/251340
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/frontend/migrations/098_add_require_ssp.py
60007cb606bfa60ad5e90ac356cc6284a5af2f46 18-Feb-2015 Simran Basi <sbasi@chromium.org> Revert "[autotest] Add a new field require_ssp in afe_jobs table"

This reverts commit e17ca03ed8d26c17261e47abd3f41fc5bbc98768.

Change-Id: I3300de55bfe3e0266095a3e43094f9ba0fb0f79d
Reviewed-on: https://chromium-review.googlesource.com/250691
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Trybot-Ready: Dan Shi <dshi@chromium.org>
/external/autotest/frontend/migrations/098_add_require_ssp.py
e17ca03ed8d26c17261e47abd3f41fc5bbc98768 12-Feb-2015 Dan Shi <dshi@chromium.org> [autotest] Add a new field require_ssp in afe_jobs table

When a job is created, data in control file is parsed and saved in afe_jobs.
scheduler picks up the database row and tries to compile the commandline for
autoserv to run. require_ssp (require server-side packaging) is a new field
will be added to control file to force to use/do not use ssp when running
a server side test.

If the value is True or None(default), server-side packaging will be applied
to run server side test, if global config AUTOSERV/enable_ssp_container is
set to True.

Since the attribute can only be retrieved when parsing control file, it needs
to be stored in afe_jobs table. Therefore, the new field is added to the table.

require_ssp is nullable and has no default value, so the sql command should
only take several minutes to finish in production database.

BUG=chromium:453624
TEST=local run migrate.py sync and migrate.py sync 97

Change-Id: I509ae60f50c116df5ee76b2d302c35bb75551adc
Reviewed-on: https://chromium-review.googlesource.com/249170
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/frontend/migrations/098_add_require_ssp.py