Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Latest commit

 

History

History
38 lines (31 loc) · 1.74 KB

Updating_plugins_for_large_tests.md

File metadata and controls

38 lines (31 loc) · 1.74 KB

How to run Pluginsync for large tests

The following steps are necessary for updating plugins to the new large test framework.

In the snap-pluginsync repo:

  • Fork and clone repo of plugin you want to run large tests on
  • Fork repo and clone snap-pluginsync
  • Make sure ssh-agent is running and your GitHub ssh key is loaded by running ssh-add -l (it should list your key)
  • Run $ ./pluginsync.sh
    • If this errors make sure ssh keys are set up

In container:

  • run $ msync update -f {plugin_name} —noop

  • to exit container: $ exit

  • cd into modules/{plugin_name}

  • Commit changes and push pluginsync branch to your github repo

    • If you plan to make a PR with this branch, make sure you set the following variables in .sync.yml in the .travis.yml section

      sudo: true services: docker

  • cd OUT of snap-plugignsync and INTO {plugin_name} <— The one you cloned earlier

  • git fetch and git checkout the pluginsync branch that you just pushed

  • Run large tests with $ make test-large

    • To run in debug mode so you can examine the container while still running, run $ DEMO=true make test-large
    • To examine the container, in a separate terminal run $ docker exec -it $(docker ps | sed -n 's/\(\)\s*intelsdi\/snap.*/\1/p') /bin/bash
    • To view Snap daemon log, in separate terminal run, $ docker logs $(docker ps | sed -n 's/\(\)\s*intelsdi\/snap.*/\1/p’)
  • If your plugin has a large_tests.sh or something similar in its /scripts directory, delete that. It is no longer necessary.

Once you create your PR, check the travis ci output to verify the following items are showing up:

  • large test is part of the travis ci test matrix
  • large test should load and verify at least one task

FIN