Skip to content

Conversation

@benjoe1126
Copy link
Collaborator

Created github workflows that test homework exercises and labor exercises as well

@benjoe1126 benjoe1126 requested review from levaitamas and rg0now March 17, 2025 20:49
@levaitamas
Copy link
Member

Thanks @benjoe1126 ! This is a highly anticipated enhancement. I am busy these days, but I will check it shortly.

Copy link
Member

@levaitamas levaitamas left a comment

Choose a reason for hiding this comment

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

Very cool stuff! I went through the changes and left some comments. These are mostly minor notes and comments are welcome. I plan to run these actions in a fork to better understand the components and the action chains.

TAGS: ${{ inputs.tags }}
ACTION_PATH: ${{ github.action_path }}
run: |
bash $GITHUB_ACTION_PATH/build.sh
Copy link
Member

Choose a reason for hiding this comment

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

If we want to stick to the env var, this line makes more sense to me:

Suggested change
bash $GITHUB_ACTION_PATH/build.sh
bash $ACTION_PATH/build.sh

BTW do we need this env var? This should work too:

Suggested change
bash $GITHUB_ACTION_PATH/build.sh
bash ${{ github.action_path }}/build.sh

Copy link
Collaborator Author

@benjoe1126 benjoe1126 May 24, 2025

Choose a reason for hiding this comment

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

I ended up removing the ACTION_PATH env var, can't quite remember why it was there to begin with, but it was not used anyway.
The GITHUB_ACTION_PATH has to stay tho, as ${{ github.action_path }} is a github context directive and can't be interpreted by the script executed on the runner.

Copy link
Member

Choose a reason for hiding this comment

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

The GITHUB_ACTION_PATH has to stay tho, as ${{ github.action_path }} is a github context directive and can't be interpreted by the script executed on the runner.

The shell script does not use the env var; using the context directive in this line is fine as the GHA runner reads it.

inputs:
kube-distro:
type: choice
description: "The type of kubernetes distribution to use, i.e minikube, kind"
Copy link
Member

Choose a reason for hiding this comment

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

Cool! Note: on the long run we will enable just one option to simplify debugging.

Copy link
Member

Choose a reason for hiding this comment

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

The problem is: we use minikube now, but kind is more performant.


kubernetes-tests:
type: string
description: "The name(s) of the kubernetes test(s) to be run, if you want to run multiple, provide them separated with spaces, e.g 'kvstore splitdim', if you provide 'all', it will execute all kubernetes tests"
Copy link
Member

Choose a reason for hiding this comment

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

We have three cases if I recall correctly: "helloworld" "splitdim", "kvstore" I would put a phrasing like this:

Suggested change
description: "The name(s) of the kubernetes test(s) to be run, if you want to run multiple, provide them separated with spaces, e.g 'kvstore splitdim', if you provide 'all', it will execute all kubernetes tests"
description: "Kubernetes tests to be run. Options: 'helloworld' 'splitdim', 'kvstore', 'all'. if you want to run multiple, provide them separated with spaces (e.g., 'kvstore splitdim'); 'all' means execute all tests"

@levaitamas levaitamas linked an issue Apr 1, 2025 that may be closed by this pull request
3 tasks
@levaitamas levaitamas changed the title Automated testing feat: Implement automated testing with GHA Apr 1, 2025
made report generating function

separated report logic into its own file

changed template html and also fixed issue with templating

removed needless function call

fixed report and modified the makefile

fixed report target

added report action

testing out workflow

testing workflo2

now properly runs test on push

testing out report

fixed branch
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.

Automate exercise and lab testing with Github Actions

3 participants