-
Notifications
You must be signed in to change notification settings - Fork 5
test(act): add plugin-validator tests #457
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
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
0e31e23
test(act): mock steps and jobs, add artifacts interface, add more tests
xnyo b42aea7
re-add localRepositoryArgs function
xnyo d7f10a3
args cleanup
xnyo 238ec5e
cleanup args, add some comments
xnyo 1d82d60
removed unused function NoOpStep
xnyo bc73fae
Update cache warmup workflow inputs
xnyo eddefd6
restore dist mockdata from main
xnyo 225a1fa
add comments
xnyo 9309d1b
small docstrings updates
xnyo 0bfdbf0
Merge branch 'main' into giuseppe/act-follow-up-3
xnyo 6f8c5a0
fix cache warmup
xnyo 9c4a289
Merge remote-tracking branch 'origin/giuseppe/act-follow-up-3' into g…
xnyo 549d015
mock GCS
xnyo 448c469
gcs tests
xnyo 2d38c79
update clean-act-tmp Makefile target
xnyo 1253914
parallel gcs tests
xnyo 12a8ae8
enable gha
xnyo 30daf5c
output from mocked gcs upload step
xnyo 22eeb65
add docstrings
xnyo acb3274
Merge branch 'main' into giuseppe/act-gcs
xnyo 4c97d32
remove extra branch
xnyo f308522
add comments
xnyo a37a0da
refactoring
xnyo 25f00f8
Merge branch 'main' into giuseppe/act-gcs
xnyo 29d179f
fix mock gcs upload output
xnyo 710ff84
fix(ci): fix universal zip url output in gcs step
xnyo f3e4c7c
update gcs tests assertions
xnyo 6623680
remove pr event skip
xnyo ec7be72
update assertions
xnyo 3fbb646
Merge remote-tracking branch 'origin/giuseppe/act-gcs' into giuseppe/…
xnyo 9ed528d
remove extra output
xnyo 2ebb8ce
keep walking in checkFilesExist
xnyo e87c3ff
Merge branch 'main' into giuseppe/act-gcs
xnyo 84c6cff
allow WithNoOpStep to replace steps in any job
xnyo 7914ca3
tweaks to validator to make it run in act + docker
xnyo 8d5747d
fix package.sh not working with POSIX sed
xnyo 007565c
Add mock-dist-artifacts Makefile target, refactor Makefile
xnyo 89123ff
plugin validator ci tests
xnyo 19964a2
add dist-artifacts-unsigned mockdata
xnyo 2aa9877
parse gha summary
xnyo 9007ab6
parse gha summary arguments
xnyo 46440ae
add WithVerbose
xnyo 4beb9a6
assert validator summary entries
xnyo fc87678
disable verbose
xnyo d981545
enable act
xnyo afd0adf
fix mock packaged dist artifact step output
xnyo 00fb1b0
add test case for validator failure
xnyo 365af52
fix dist folder for simple-frontend-yarn test case
xnyo 33ba86c
run in parallel
xnyo 90fd77d
remove plugin-validator container after running it
xnyo a1ea7d4
sanity check mockdata folders before mounting them
xnyo 9e822ee
update comments
xnyo a812218
fix validator tests
xnyo 34f08c9
refactoring
xnyo 1614501
use FailNow
xnyo 9fb685f
remove unnecessary comment
xnyo c31e7aa
remove another unnecessary comment
xnyo 0e76613
Merge branch 'main' into giuseppe/act-gcs
xnyo 48fd515
update makefile
xnyo 6414d7e
Merge branch 'main' into giuseppe/act-gcs
xnyo c1d4f65
update act cache warmup versions
xnyo aa39fd1
Merge branch 'giuseppe/act-gcs' into giuseppe/ac-validator
xnyo 010e917
Merge branch 'main' into giuseppe/ac-validator
xnyo 4bba106
revert pr trigger
xnyo 3a68fe6
add clean-lfs makefile target
xnyo 60f82f1
actionlint
xnyo e7db501
Merge branch 'main' into giuseppe/ac-validator
xnyo fab4111
renamed "summary" to more correct "annotation"
xnyo 5f26f58
disable osv-scanner to fix flaky tests
xnyo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| # Prints all testdata plugins found in the tests/ folder to stdout, one per line. | ||
| # The "act" folder is excluded since it contains the tests themselves. | ||
| # Can be used to loop over all test plugins, like this: | ||
| # | ||
| # for tc in $(./scripts/find-tests.sh); do | ||
| # echo $tc | ||
| # done | ||
|
|
||
| cd tests | ||
| find . -maxdepth 1 -type d ! -name '.' ! -name 'act' -print |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| if [ "$#" -ne 1 ]; then | ||
| echo "Usage: $0 <test-plugin-folder-name>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "[$1] Preparing mockdata (dist-artifacts)" | ||
| cd "$(dirname "$0")/.." | ||
|
|
||
|
|
||
| mkdir -p "tests/act/mockdata/dist-artifacts-unsigned/$1" | ||
|
|
||
| echo "[$1] Packaging os/arch ZIPs" | ||
| # Will exit with 0 if the plugin has no backend | ||
| # (in that case, there's no need for os/arch ZIPs, just universal) | ||
| ./actions/internal/plugins/package/package.sh "tests/act/mockdata/dist/$1" "tests/act/mockdata/dist-artifacts-unsigned/$1" | ||
|
|
||
| echo "[$1] Packaging universal ZIPs" | ||
| ./actions/internal/plugins/package/package.sh -u "tests/act/mockdata/dist/$1" "tests/act/mockdata/dist-artifacts-unsigned/$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\wis not POSIX compliant and doesn't work on Mac OS