Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up hardware testing #720

Open
mwasilew opened this issue Sep 10, 2024 · 7 comments
Open

Setting up hardware testing #720

mwasilew opened this issue Sep 10, 2024 · 7 comments
Assignees

Comments

@mwasilew
Copy link
Contributor

This ticket is about setting up testing on hardware. Below there is a list of things to setup in order to start testing:

  1. LAVA lab
    This is already setup. We host qcm6490 (qcs6490) and it can run boot test using OE build

  2. qa-reports group and project
    I created group qcom. It currently only contains a test project that has restricted visibility. What is the name of the project we want to keep the test results in?

  3. Setup github integration for result reporting
    The idea of test result reporting is to push the test status to the commit directly. This avoids running a github action for the whole duration of the test job (plus waiting time if there is a queue). Once tests are completed, the status will be pushed using github API. This can be done for a commit (cron builds) or PR. On PR it shows as an additional check. For this integration to work it is required to setup a token with the following permissions:

    • Read access to metadata
    • Read and Write access to commit statuses

    Token needs to be uploaded to qa-reports

  4. Store build artifacts where LAVA can download them from
    LAVA can download with additional headers to avoid exposing artifacts to unauthorized download. Password or token has to be stored in LAVA master.

  5. Define test jobs
    I think we should start with boot test on qcs6490. More tests can be added later. I think at this point we can't test with ethernet due to missing firmware. This reduces the number of tests we can actually run.

  6. Adding test submission action to the workflow
    This can be done after github token is setup. Submit action repository is located here: https://github.com/foundriesio/qa-reports-action. I will start a PR on that shortly.

@mwasilew
Copy link
Contributor Author

@ricardosalveti @doanac

@ricardosalveti
Copy link
Contributor

  1. qa-reports group and project
    I created group qcom. It currently only contains a test project that has restricted visibility. What is the name of the project we want to keep the test results in?

We can probably use 'quic-yocto' as a way to indicate that these are jobs coming out of this org.

  1. Define test jobs
    I think we should start with boot test on qcs6490. More tests can be added later. I think at this point we can't test with ethernet due to missing firmware. This reduces the number of tests we can actually run.

Yes, boot test is already a great start.

  1. Adding test submission action to the workflow
    This can be done after github token is setup. Submit action repository is located here: https://github.com/foundriesio/qa-reports-action. I will start a PR on that shortly.

Thanks for starting this up.

@sbanerjee-quic
Copy link
Contributor

@mwasilew @ricardosalveti how to view the dashboard that displays the run result for boot test?

@mwasilew
Copy link
Contributor Author

@sbanerjee-quic results will be posted somewhere here: https://qa-reports.foundries.io/qcom/. Right now there is nothing as we haven't started running any tests yet.

@mwasilew
Copy link
Contributor Author

Ah, I forgot to mention there should be a link to test results on each commit we test - PR and cron testing.

@mwasilew
Copy link
Contributor Author

I think this is mostly done. The last bit is checking schema on the lava job templates. I'll submit a PR today. Point 2 is not implemented at the moment and reporting is done in github actions using https://github.com/EnricoMi/publish-unit-test-result-action

@ricardosalveti ricardosalveti transferred this issue from qualcomm-linux/meta-qcom-hwe Jan 27, 2025
@mwasilew
Copy link
Contributor Author

This is completed for meta-qcom-hwe. I guess we need to replicate the same setup for meta-qcom now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

4 participants