Remove board-list from pool:faft-cr50

Deleting entries of the DUT board names from the
suite: faft_cr50_prepvt,faft_cr50_pvt, so we can
overcome the board list dependency.

BUG=chromium:1095731
Test=None

Change-Id: I35fa70ae99c6a61f0183ac94b8812d65c8be06ea
1 file changed
tree: 9a33fdf0bcefc826bf7bc11056d47b1bec2bd6c3
  1. bin/
  2. configs/
  3. venv/
  4. www/
  5. .gitignore
  6. .style.yapf
  7. __init__.py
  8. analytics.py
  9. analytics_unittest.py
  10. app.yaml
  11. appengine_config.py
  12. base_event.py
  13. base_event_unittest.py
  14. build_event.py
  15. build_event_unittest.py
  16. build_lib.py
  17. build_lib_unittest.py
  18. build_utils.py
  19. build_utils_unittest.py
  20. buildbucket.py
  21. buildbucket_unittest.py
  22. config_reader.py
  23. config_reader_unittest.py
  24. constants.py
  25. cron.py
  26. cron.yaml
  27. datastore_client.py
  28. datastore_client_unittest.py
  29. file_getter.py
  30. gae_import.py
  31. gae_test.py
  32. global_config.py
  33. local_import.py
  34. local_integration_test.py
  35. main.py
  36. OWNERS
  37. PRESUBMIT.cfg
  38. queue.yaml
  39. README.md
  40. requirements.txt
  41. rest_client.py
  42. runner.py
  43. sanity_test.py
  44. setup_environment.py
  45. stackdriver_lib.py
  46. task.py
  47. task_config_reader.py
  48. task_config_reader_unittest.py
  49. task_executor.py
  50. task_executor_unittest.py
  51. task_unittest.py
  52. test.yaml
  53. time_converter.py
  54. time_converter_unittest.py
  55. timed_event.py
  56. timed_event_unittest.py
  57. tot_manager.py
  58. tot_manager_unittest.py
  59. trigger_receiver.py
  60. trigger_receiver_unittest.py
  61. utils.py
  62. utils_unittest.py
README.md

Setup

Due to https://crbug.com/792690, this must be run outside the chroot.

  1. Install Google Cloud SDK:

    1. Follow the instructions to install the Python App Engine component.
  2. Log in to gcloud: gcloud auth login LDAP@google.com

  3. Install pip:

     sudo apt-get install python-pip
    
  4. If you only modify the files in configs/, run:

     python setup_environment.py --load_infra_libs
    

    to download the dependencies. Otherwise, load the credentials (need permission from CrOS Test Platform team) to conduct the unit and integration tests:

     python setup_environment.py --load_infra_libs --load_cred
    

Known Issues

  1. Failed to install third-packages in requirement.txt:

    Workround: Run pip install -t lib -r requirements.txt locally on your workstation to verify whether it could work.

  2. Failed to download credentials from ‘gs://suite-scheduler.google.com.a.appspot.com/credentials/’:

    Workround: Run gsutil ls gs://suite-scheduler.google.com.a.appspot.com/credentials/ locally on your workstation to verify whether you can fetch credentials with gsutil.

    If there's any auth issue, it may be because

    a. You‘re not using your corp account to login gcloud. Please run gcloud auth list to check what’s the used account for gcloud.

    b. Your corp account is not whitelisted by suite-scheduler project. Please contact @lxn to whitelist your ldap.

How to test:

  1. Run sanity test for config changes:

     python runner.py --test_type sanity
    
  2. Run unittest and integration for any changes in production code:

     python runner.py --test_type unittest
     python runner.py --test_type integration
    
  3. Run tests with debug mode:

     python runner.py --debug
    
  4. Run suite scheduler v2 as a local development server:

    If you want to verify any APIs locally, you can run suite scheduler v2 as a local development server (https://cloud.google.com/appengine/docs/standard/python/tools/using-local-server):

    a. Finally, start dev_appserver.py in a window:

       dev_appserver.py app.yaml \
           --port=8888 \
           --admin_port=8001 \
           --log_level=debug
    

    b. Test it:

       curl 'http://localhost:8888/cron/trigger_event', or open it in chrome.
    

    Please note that once a dev_appserver is started, it simulates data_store & task_queue, which means:

    a. The datastore doesn‘t contain any previous cron run’s information, so the first round of cron/trigger_event won't trigger any event.

    b. The task queue is newly created with 0 tasks in it unless cron/trigger_event adds tasks in it. Dev_appserver restart will cause the local task queue to get purged.

How to add or update your job to schedule a suite test:

  1. Add or update your job configuration in configs/suite_scheduler.ini.

  2. Update configs/lab_config.ini, if the suite test relies on new board or model. Note, suite scheduler does not automatically catch the new boards or models added to the lab.

  3. Run python runner.py --test_type sanity to ensure config is eligible.

  4. Submit the change and ping/file bug to infra team. Test platform deputy will rollout your change to the production. Once this is done, you may find the scheduling status of the new suite via our dashboard.