Giter VIP home page Giter VIP logo

freeipa-pr-ci's Introduction

FreeIPA Pull Request CI

Scripts that are used by the PR CI testing infrastructure.

Setting up runner

  1. Create hosts file

    [runner]
    1.2.3.4
    
  2. Place freeipa_pr_ci private key in keys/

    This is only necessary if you want to publish logs to fedorapople. To omit this step, specify --skip-tags fedorapeople.

  3. Run the prepare_test_runners.yml playbook

    ansible-playbook \
      -i hosts \
      ansible/prepare_test_runners.yml
    

Setting up localhost as runner

The playbook has to be executed as root and you don't need nested virtualization.

sudo ansible-playbook \
  -i ansible/hosts/runner_localhost \
  ansible/prepare_test_runners.yml \
  --skip-tags nested_virt

Creating vagrant template box

  1. Run create-box-template

    This will create a vagrant box in /tmp/image/.

  2. Perform some basic tests on the box

    TODO: Something we want to automate in the future.

    • Use a basic Vagrantfile that uses this box

    • Check the box can be booted up

      If it's stuck in Waiting for IP address stage, you can connect with remote-viewer vnc://127.0.0.1:5900 to debug it

    • Verify your recent changes are present

  3. Upload the box to HashiCorp Atlas

    TODO: Another step that will be automated in the future.

    Description:

    Builds:
      - FreeIPA: <freeipa_git_sha>
      - PR CI: <pr_ci_git_sha>
    
    Changelog:
      - <change>
    
  4. Create a PR against FreeIPA with the updated box

    TODO: This requires GitHub integration with PR CI. Omit this step for now and just use the box in Vagrantfiles.

    This will run the PR CI tests with the new box. Once all the tests pass and the PR is merged, the PR CI will use the new template.

freeipa-pr-ci's People

Contributors

nicki-krizek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.