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

The testing farm status and log URL is not included in action log #130

Closed
henrywang opened this issue Mar 7, 2024 · 9 comments
Closed

Comments

@henrywang
Copy link

henrywang commented Mar 7, 2024

The action log should include testing farm log/result URL (http://artifacts.osci.xxxx.xxx/testing-farm/uuid/). So the test status can be found from that URL.

Run sclorg/testing-farm-as-github-action@v2
  with:
    compose: CentOS-Stream-9
    api_key: ***
    git_url: https://github.com/abc/abc.git
    git_ref: main
    arch: x86_64
    tmt_context: arch=x86_64
    tmt_plan_regex: aws
    tf_scope: private
    secrets: QUAY_USERNAME=***;QUAY_PASSWORD=***;QUAY_SECRET=***;AWS_ACCESS_KEY_ID=***;AWS_SECRET_ACCESS_KEY=***
    variables: TEST_OS=centos-stream-9;ARCH=x86_64;AWS_REGION=us-east-1
    api_url: https://api.dev.testing-farm.io/v0.1
    github_token: ***
    create_issue_comment: false
    pull_request_status_name: Fedora
    update_pull_request_status: false
    create_github_summary: true
    copr: epel-7-x86_64
    environment_settings: {}
    timeout: 480
  env:
    AWS_REGION: us-east-1
@zmiklank
Copy link
Collaborator

zmiklank commented Mar 7, 2024

Hi.

These values are available as action outputs, see here.
However, as I just saw in our README.md, this is not really documented anywhere. We should add it there.
Also would it help you to show the URL in the testing-farm-as-github-action logs?

@henrywang
Copy link
Author

Thanks @zmiklank! I'm using version v2, but URL can't be found in v2. Which version should I use? Thanks.

@jamacku
Copy link
Member

jamacku commented Mar 8, 2024

@henrywang Logs can be accessed from the Job Summary here, though the link isn't clickable. We should fix that:

https://github.com/osbuild/bootc-image-builder/actions/runs/8188230378?pr=248#summary-22398042194

@zmiklank
Copy link
Collaborator

zmiklank commented Mar 8, 2024

@henrywang, a PR that adds test log URL to logs and to job outputs has been merged. We will release new minor version of tfaga probably sometime next week. So best option for you would imo be to wait for that release. If you use v2, you will get this new minor release automatically.

@henrywang
Copy link
Author

@henrywang Logs can be accessed from the Job Summary here, though the link isn't clickable. We should fix that:

https://github.com/osbuild/bootc-image-builder/actions/runs/8188230378?pr=248#summary-22398042194

Thanks for your reply. The summary is added when the test finished(success, failed or error). I can't get test progress in this case.

@jamacku
Copy link
Member

jamacku commented Mar 8, 2024

Thank you, that is a good point, it should be easy to add in progress summary - @zmiklank

@zmiklank
Copy link
Collaborator

Thank you, that is a good point, it should be easy to add in progress summary - @zmiklank

For now the URL is displayed in the Action's log, meaning the "regression" has been removed, as v1 had this in its log.
Therefore I would consider adding the URL to in progress summary as nice to have feature without high priority.

@zmiklank
Copy link
Collaborator

New tfaga has just been released. I have created issues for things that were discussed here: #135, #134.

@henrywang please check if this solution works for you and close this issue if yes.

@henrywang
Copy link
Author

Thanks @zmiklank for fixing this. Testing farm log works in my repo PR test. Let's close this issue.

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

No branches or pull requests

3 participants