rh-openstack-ci-team
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Handling OpenStack tempest skip list ###### tags: `Design` ## Problem Statement From train release onwards, We moved to openstack-ansible-os_tempest ansible role for running tempest in TripleO CI Jobs in periodic pipeline, check and gate jobs. It also leads to deprecation of validate-tempest. The only bits which is used from validate-tempest TQE role is global skip list shared across all jobs. It means if a tempest tests starts failing, we file a bug then add the tests to the global skip lists. By Starting of Ussuri Release, Promotion pipeline got little change. Now we have: * Component Pipeline * where component specific jobs gets triggered. * for example, If network related projects has content change then Network specific related jobs will be get triggered to test the network bits * Periodic Pipeline * Where all the components are tested together with a series of jobs then the contents moves to upstream and check gate pipeline. * Upstream Check and Gate Pipeline * Where a set of tripleo ci jobs get triggered based on their projects. Now, Since we have a global skip list, if a new failing tests goes to global skip list. It is going to get skipped at all pipeline including integration, periodic and upstream (check and gate pipeline). The drawback of global skip list is that we might not able to test a particular feature or scenario at different pipeline leading to faulty content delivery in Upstream and we might miss unknown issues. The current skip list has following schema: ``` known_failures: - test: 'neutron_tempest_plugin.scenario.test_dns_integration.DNSIntegrationTests' reason: 'Remove this blacklist when OVS 2.12 will be released and https://patchwork.ozlabs.org/patch/1102717/ merged.' lp: 'https://bugs.launchpad.net/tripleo/+bug/1832166' ``` And ``` - test: 'tempest.api.network.test_networks.NetworksTest.test_external_network_visibility' reason: 'Running on undercloud' undercloud: true ``` ## Proposed Solution Goal is to skip to avoid skipping tests at global level. Since any pipeline is collection of a set of jobs and here is the current skip list schema: ``` known_failures: - test: 'neutron_tempest_plugin.scenario.test_dns_integration.DNSIntegrationTests' reason: 'Remove this blacklist when OVS 2.12 will be released and https://patchwork.ozlabs.org/patch/1102717/ merged.' lp: 'https://bugs.launchpad.net/tripleo/+bug/1832166' ``` And ``` - test: 'tempest.api.network.test_networks.NetworksTest.test_external_network_visibility' reason: 'Running on undercloud' undercloud: true ``` So we can add a new key job_name in the above skip list schema. So the new schema will be: ``` known_failures: - test: 'neutron_tempest_plugin.scenario.test_dns_integration.DNSIntegrationTests' reason: 'Remove this blacklist when OVS 2.12 will be released and https://patchwork.ozlabs.org/patch/1102717/ merged.' lp: 'https://bugs.launchpad.net/tripleo/+bug/1832166' job_name: [<list of job name>] # Note: Job name will be a list. ``` There might be a case where we want to skip a test based on tempest conf feature enabled or disabled flags. Then there schema will be: ``` known_failures: - test: 'neutron_tempest_plugin.scenario.test_dns_integration.DNSIntegrationTests' reason: 'Remove this blacklist when OVS 2.12 will be released and https://patchwork.ozlabs.org/patch/1102717/ merged.' lp: 'https://bugs.launchpad.net/tripleo/+bug/1832166' feature_skip: [tempest_tempest_conf_flags] ``` ## How to achieve the goal? 1. Move the current skip list to a new repo: -> opendev.org/openstack/openstack-tempest-skiplist 2. Add the above scheam in the global skip list 3. Design skiplist parser to parse the skip list and generate tempest skip list based on conditions 4. Integreating ** openstack-tempest-skiplist ** as a ansible collection as add as a part of os_tempest role? 5. Create a tool which will read the yaml file, and generate the skipped list based on the criterias (release, job name, installer, etc) 6. Designing the tool to auto skip the tests from here ## Things Done till now 1. New repo creation reviews * https://review.opendev.org/713809 * https://review.opendev.org/714030 * https://github.com/raukadah/openstack-tempest-skiplist ## Action Items * Arx to talk about openstack-tempest-skiplist in openstack-ansible meeting * Finalize the schema * current schema: https://opendev.org/openstack/openstack-tempest-skiplist/src/branch/master/roles/validate-tempest/vars/tempest_skip_master.yml ``` - test: 'telemetry_tempest_plugin.scenario.test_telemetry_integration.TestTelemetryIntegration' reason: 'telemetry tests failed due to One or more ports have an IP allocation from this subnet' lp: 'https://bugs.launchpad.net/tripleo/+bug/1792862' ``` ``` - test: 'tempest.api.network.test_networks.NetworksTest.test_external_network_visibility' reason: 'Running on undercloud' undercloud: true jobs: - tripleo-bla-bla-bla - tripleo-ble-ble-ble releases: - master - newton - queens ``` * What would be the new schema? * Start the cli command * Name of the command [ots] * Create the args: * MVP * --installer * --release * --job * Future * --installer * --feature or keyword * Create ansible collection/module * Create jobs to verify integrity of the yaml file ## Tasks for MVP * Define the YAML file structure * Yaml file are defined as: ```yaml - test: 'test to be skipped' installers: - tripleo releases: - release1 lp: launchpad bz: bugzilla reason: reason to skip on release 1 - release2 lp: launchpad bz: bugzilla reason: reason to skip on release 2 jobs: - job1 - job2 ``` Where: * test is the full test name to be used. * Installers are the type of installer that will execute tempest, right now is just tempest * Each test need to have a releases dict with at least one release * Each release must have either a launchpad or a bugzilla link, and a reason. You don't need to have both bz and lp but one is required. * Optional a test can have a list of jobs where this test will be skipped, if no job list is defined, the test will be skipped everywhere * start the cli command * Use Cliff * Consolidate the yaml file per release in one single file * create ansible collection/module * hook with os_tempest or fs052 job ## Additional Requirments from PM @s * ensure the skip lists have a yaml linter job defined and running * start designing a molecule job that would ensure functionality. May need to run infrared plugin tests here as well. ## Questions/Ideas/FAQs * How to make it extensible? * (mkopec) extensible how? Can you give an example? * How to consume with os_tempest? * Does everything is going to be in a single yaml file? * Should we also create some check jobs? * to verify that every test is mentioned only once * to check that all the keywords (release, job, ...) are valid (to avoid putting there keywords not recognized by the tool responsible for filtering ...) * What would be the output/input of the tools? * (mkopec) I think the output should be a tempest blacklist like file and the input is a yaml list where every item looks like above mentioned schema # Tempest skip list improvements RFE ## Durring the centos-8 bootstrap * please only blacklist tests in zuul unless the test fails in * component pipeline * integration pipeline * upstream check / gate ## Improve skip list to incorporate job name: * by including the job name we will be able to skip the test at the appropriate level w/o duplicating code in zuul. ## Improvements for os-ansible-tempest + infrared integration ## FEEDBACK from your RUCK AND OR ROVERS * install worked fine.. * validate worked * the skip has the right test listed ``` [rlandy@localhost openstack-tempest-skiplist]$ tempest-skip list --file roles/validate-tempest/vars/tempest_skip.yml --release master | grep volumes_luks │························ | barbican_tempest_plugin.tests.scenario.test_volume_encryption.VolumeEncryptionTest.test_encrypted_cinder_volumes_luks | ``` * this should be highlighted https://docs.openstack.org/openstack-tempest-skiplist/latest/listyaml/listyaml.html * add a test to skip via the cli * no clue, no doc * Is one meant to add a skip via the tool or by hand.. I thought the tool * same question for removing tests... is the tool only informative or will it remove tests that you select. How does one get into that select menu btw? * note that you need to add check jobs and periodic jobs separately. It's a complete name match. (that is what I missed). * If the file should only be managed by the tool, we should add a note to the file saying so. Most files managed by tools have a note telling you not to edit them manually.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully