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

infra: Better name for kickstart test run log bundles #5648

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

M4rtinK
Copy link
Contributor

@M4rtinK M4rtinK commented May 13, 2024

Instead of just "logs.zip", lets name the log bundles based on the PR number, timestamp and branch SHA.

This way it should be much easier to make sense of downloaded log bundles from various PRs.

@M4rtinK M4rtinK added infrastructure Changes affecting mostly infrastructure f41 labels May 13, 2024
@M4rtinK M4rtinK force-pushed the master-better_name_for_kstest_log_bundle branch from cb9095f to edc35f2 Compare May 13, 2024 14:04
@M4rtinK M4rtinK changed the title Better name for kickstart test run log bundles infra: Better name for kickstart test run log bundles May 13, 2024
@M4rtinK
Copy link
Contributor Author

M4rtinK commented May 13, 2024

/kickstart-test --testtype smoke

@KKoukiou
Copy link
Contributor

Did you test this on your fork?

@M4rtinK
Copy link
Contributor Author

M4rtinK commented May 14, 2024

Did you test this on your fork?

I know something special is needed to test the workflow changes but so far I have not found it documented anywhere. :P Any pointers how to do that ? @jkonecny12 @KKoukiou

@M4rtinK
Copy link
Contributor Author

M4rtinK commented May 14, 2024

It of course does not get run when I just run it on this PR - that would be too simple and convenient I guess. ;-)

Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

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

Needs a bit more polishing.

.github/workflows/kickstart-tests.yml Outdated Show resolved Hide resolved
.github/workflows/kickstart-tests.yml Show resolved Hide resolved
@jkonecny12
Copy link
Member

Did you test this on your fork?

I know something special is needed to test the workflow changes but so far I have not found it documented anywhere. :P Any pointers how to do that ? @jkonecny12 @KKoukiou

Unfortunately you are correct. For this to work you need a self hosted runner on your fork which is not trivial to setup. I'll take a look on this.

@M4rtinK M4rtinK force-pushed the master-better_name_for_kstest_log_bundle branch from edc35f2 to 085e16c Compare May 14, 2024 11:47
@M4rtinK
Copy link
Contributor Author

M4rtinK commented May 14, 2024

Unfortunately you are correct. For this to work you need a self hosted runner on your fork which is not trivial to setup. I'll take a look on this.

Thanks! I have a few other ideas for the kickstart workflows, but I really need to be able to test them during development & ideally how to set workflow testing up should be part of the workflow development documentation so more people can contribute as well. :)

@KKoukiou KKoukiou force-pushed the master-better_name_for_kstest_log_bundle branch 9 times, most recently from 039e0f5 to cc771cb Compare May 15, 2024 13:21
@M4rtinK
Copy link
Contributor Author

M4rtinK commented May 15, 2024

/kickstart-test --testtype smoke

M4rtinK and others added 2 commits May 15, 2024 16:59
Instead of just "logs.zip", lets name the log bundles based
on the PR number, timestamp and branch SHA.

This way it should be much easier to make sense of downloaded log
bundles from various PRs.
@KKoukiou KKoukiou force-pushed the master-better_name_for_kstest_log_bundle branch from cc771cb to efe5825 Compare May 15, 2024 14:59
@KKoukiou KKoukiou force-pushed the master-better_name_for_kstest_log_bundle branch from efe5825 to 29b3301 Compare May 15, 2024 15:06
Copy link
Contributor

@KKoukiou KKoukiou left a comment

Choose a reason for hiding this comment

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

It does not like it:

Run actions/upload-artifact@v4
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/github/actions-runner/_work/anaconda/anaconda. This will be the root directory of the artifact
With the provided path, there will be 35 files uploaded
Error: The artifact name is not valid: kstest_logs_pr5648-2024-05-15_15:06:25-29b330179fae063b76829247d38f9f4b843c09a8. Contains the following character: Colon :

Invalid characters include: Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?, Carriage return \r, Line feed \n, Backslash , Forward slash /

@KKoukiou KKoukiou marked this pull request as draft May 20, 2024 13:24
pr_num="${{ github.event.issue.number }}"
timestamp=${{ steps.teimstamp.outputs.timestamp }}
sha="${{ steps.pr_api.outcome == 'success' && fromJson(steps.pr_api.outputs.data).head.sha }}"
echo "image_description=pr$pr_num-$timestamp-$sha" >> $GITHUB_OUTPUT
Copy link
Contributor

Choose a reason for hiding this comment

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

I realize this can be nicely made reusable role among this workflow and the build-image workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f41 infrastructure Changes affecting mostly infrastructure
3 participants