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

mini-yetus : Improve error reporting #4194

Merged
merged 1 commit into from
Sep 1, 2024
Merged

Conversation

shjala
Copy link
Member

@shjala shjala commented Aug 31, 2024

Improve error reporting in mini-yetus.sh script and don't exit if files doesn't exist. Instead, print an error message and continue. This can happen if the current branch is built on top of the source branch but source branch has diverged and some files are not present in the current branch. This changes allow the script to atleast run yetus on the files that do exist in the current branch.

Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable

@OhmSpectator
Copy link
Member

@shjala, could you please rebase it on top of the master? I want to check how the fixes in workflow introduced in another PR behave...

@shjala
Copy link
Member Author

shjala commented Aug 31, 2024

@shjala, could you please rebase it on top of the master? I want to check how the fixes in workflow introduced in another PR behave...

sure. What happened to eden? it is all red.

@shjala shjala requested a review from OhmSpectator August 31, 2024 18:30
Improve error reporting in mini-yetus.sh script and don't exit if files
dosn't exist. Instead, print an error message and continue. This can happen
if the current branch is built on top of the source branch but source
branch has diverged and some files are not present in the current branch.
This changes allow the script to atleast run yetus on the files that do
exist in the current branch.

Signed-off-by: Shahriyar Jalayeri <shahriyar@zededa.com>
Copy link

codecov bot commented Aug 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.69%. Comparing base (695652b) to head (07bd535).
Report is 51 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4194   +/-   ##
=======================================
  Coverage   19.69%   19.69%           
=======================================
  Files           8        8           
  Lines        2600     2600           
=======================================
  Hits          512      512           
  Misses       1985     1985           
  Partials      103      103           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's run the tests once more... The change itself should not break the tests, but it will be useful to know that the tests are red.

@OhmSpectator
Copy link
Member

OhmSpectator commented Sep 1, 2024

@yash-zededa, any ideas about what happens with Eden tests on master?

make[2]: Entering directory '/home/runner/actions-runner/_work/eve/eve/eden/tests/workflow'
mkdir -p /home/runner/actions-runner/_work/eve/eve/eden/dist/tests/workflow/
/home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden-linux-amd64 utils template eden.workflow.tests.txt > workflow.default.txt
EDEN_TEST=small /home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden-linux-amd64 utils template eden.workflow.tests.txt > workflow.small.txt
EDEN_TEST=large /home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden-linux-amd64 utils template eden.workflow.tests.txt > workflow.large.txt
cp -a *.yml *.txt testdata /home/runner/actions-runner/_work/eve/eve/eden/dist/tests/workflow/
Run actions/download-artifact@v4
  with:
    github-token: ***
    name: eve-kvm-amd64-generic
    path: artifacts
    merge-multiple: false
    repository: lf-edge/eve
Downloading single artifact
Error: Unable to download artifact(s): Not Found

@yash-zededa
Copy link
Collaborator

@yash-zededa, any ideas about what happens with Eden tests on master?

make[2]: Entering directory '/home/runner/actions-runner/_work/eve/eve/eden/tests/workflow'
mkdir -p /home/runner/actions-runner/_work/eve/eve/eden/dist/tests/workflow/
/home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden-linux-amd64 utils template eden.workflow.tests.txt > workflow.default.txt
EDEN_TEST=small /home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden-linux-amd64 utils template eden.workflow.tests.txt > workflow.small.txt
EDEN_TEST=large /home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden-linux-amd64 utils template eden.workflow.tests.txt > workflow.large.txt
cp -a *.yml *.txt testdata /home/runner/actions-runner/_work/eve/eve/eden/dist/tests/workflow/
Run actions/download-artifact@v4
  with:
    github-token: ***
    name: eve-kvm-amd64-generic
    path: artifacts
    merge-multiple: false
    repository: lf-edge/eve
Downloading single artifact
Error: Unable to download artifact(s): Not Found

Found the issue raising PR to fix it.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try fixed get run id.

@OhmSpectator
Copy link
Member

Waiting for a runner to pick up this job... Already 1 hour... Looks suspicious.

@yash-zededa yash-zededa closed this Sep 1, 2024
@yash-zededa yash-zededa reopened this Sep 1, 2024
@yash-zededa
Copy link
Collaborator

yash-zededa commented Sep 1, 2024

Apologies, closed by mistake.

@OhmSpectator the runners were occupied with the lf-edge master run. Few jobs are started now.

The issue is fixed now.

Download artifact has finished successfully
Run docker load -q -i artifacts/eve-kvm-amd64-generic.tar
docker load -q -i artifacts/eve-kvm-amd64-generic.tar
docker image ls

Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, the PR helped to fix another issue, thanks)

@OhmSpectator OhmSpectator merged commit b88019a into lf-edge:master Sep 1, 2024
63 of 78 checks passed
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

Successfully merging this pull request may close these issues.

4 participants