WIP: automated-testing #9

Draft
cascode wants to merge 30 commits from automated-testing into main
Collaborator

#3

Using gitea actions runner for automated lint, build, and test.

When a PR is opened or a push is made to main or a push is made to a branch that has an open PR, if it includes changes to the cargo files or files in the src directory, then these checks will run in CI.

The builder image is based on an official rust builder on alpine. It may make more sense to use one of their debian-based images as the base instead; up for discussion, i just have personal preference towards alpine. added a dockerfile for the builder in the ci folder.

if we increase the max upload size on nginx, then i can upload the builder image to the communitymedia container registry and change all the image tags to refer there (which will make the ci workflow portable outside of just my personal runner)

right now we have one runner on one of my machines. the gitea runner documentation is kinda bad and the feature itself feels pretty beta (at least in comparison to gitlab), ran into some weird stuff. but it's working ok now. i can document some of that in an additional ci-readme if that would be useful. setting up new runners should be pretty straightforward now that i understand the process.

TODO before merging:

  • switch images to use container registry
  • only run checks when committing code or cargo changes

TODO at some future date tbd, i can make a new issue for these:

  • caching build from build stage to test stage
  • caching build or deps from one workflow execution to the next
  • caching git checkout from one stage to the next

(i feel ok leaving these as-is for now because i'm the only one who may incur costs from this lack of caching right now, since mine is the only runner)

#3 Using gitea actions runner for automated lint, build, and test. When a PR is opened or a push is made to main or a push is made to a branch that has an open PR, if it includes changes to the cargo files or files in the src directory, then these checks will run in CI. The builder image is based on an official rust builder on alpine. It may make more sense to use one of their debian-based images as the base instead; up for discussion, i just have personal preference towards alpine. added a dockerfile for the builder in the ci folder. **if we increase the max upload size on nginx**, then i can upload the builder image to the communitymedia container registry and change all the image tags to refer there (which will make the ci workflow portable outside of just my personal runner) right now we have one runner on one of my machines. the gitea runner documentation is kinda bad and the feature itself feels pretty beta (at least in comparison to gitlab), ran into some weird stuff. but it's working ok now. i can document some of that in an additional ci-readme if that would be useful. setting up new runners should be pretty straightforward now that i understand the process. TODO before merging: - [ ] switch images to use container registry - [x] only run checks when committing code or cargo changes TODO at some future date tbd, i can make a new issue for these: - caching build from build stage to test stage - caching build or deps from one workflow execution to the next - caching git checkout from one stage to the next (i feel ok leaving these as-is for now because i'm the only one who may incur costs from this lack of caching right now, since mine is the only runner)
cascode added 18 commits 2023-10-21 16:14:39 -04:00
This reverts commit 81158ca818.
add rustfmt
Some checks failed
checks / format (push) Failing after 2s
checks / format (pull_request) Failing after 2s
b98fd1352a
add debug ls
Some checks failed
checks / format (push) Failing after 3s
checks / format (pull_request) Failing after 2s
35bb9081ab
add debug ls
Some checks failed
checks / format (push) Failing after 2s
checks / format (pull_request) Failing after 3s
7e49f33b95
add checkout
Some checks failed
checks / format (push) Failing after 8s
checks / format (pull_request) Failing after 3s
9c97e00d5a
add node
Some checks failed
checks / format (push) Failing after 43s
checks / format (pull_request) Failing after 43s
8fb226fafd
test
Some checks failed
checks / format (push) Failing after 39s
2659b641ba
test
Some checks failed
checks / format (push) Failing after 6s
a32e7757c5
fix fmt
All checks were successful
checks / format (push) Successful in 6s
f55d57c8ef
move some steps into the base image
All checks were successful
checks / format (push) Successful in 5s
e56a40a469
automated build and test
Some checks failed
checks / format (push) Failing after 27s
3ef2eff8c3
names and images changes
Some checks failed
checks / lint (push) Successful in 4s
checks / build (push) Failing after 27s
checks / test (push) Failing after 27s
668e5dbacd
image changes
Some checks failed
checks / lint (push) Successful in 5s
checks / build (push) Successful in 2m12s
checks / test (push) Failing after 29s
d6dfe7e525
add build deps to ci docker image
Some checks reported warnings
checks / lint (push) Successful in 4s
checks / test (push) Has been cancelled
checks / build (push) Has been cancelled
c287334af2
image changes
All checks were successful
checks / lint (push) Successful in 5s
checks / build (push) Successful in 2m11s
checks / test (push) Successful in 2m3s
c7b13c2572
cascode added 1 commit 2023-10-21 16:16:02 -04:00
cascode added 1 commit 2023-10-21 16:17:23 -04:00
change triggers
All checks were successful
checks / lint (pull_request) Successful in 5s
checks / build (pull_request) Successful in 2m6s
checks / test (pull_request) Successful in 2m3s
3fa9d65966
cascode added 1 commit 2023-10-21 16:24:52 -04:00
change triggers
All checks were successful
checks / lint (pull_request) Successful in 5s
checks / build (pull_request) Successful in 2m6s
checks / test (pull_request) Successful in 1m56s
763ebea60a
Author
Collaborator

also, are we going to do PR squashes, or should i squash this myself before merge?

also, are we going to do PR squashes, or should i squash this myself before merge?
cascode requested review from ajr 2023-10-21 16:29:16 -04:00
cascode requested review from sundog 2023-10-21 16:29:16 -04:00
cascode requested review from vulfox 2023-10-21 16:29:32 -04:00
cascode added 1 commit 2023-10-21 16:40:10 -04:00
try removing runner tag
All checks were successful
checks / lint (pull_request) Successful in 4s
checks / build (pull_request) Successful in 2m9s
checks / test (pull_request) Successful in 2m0s
7682dc022c
cascode added 1 commit 2023-10-21 16:41:37 -04:00
remove runner tag
All checks were successful
checks / lint (pull_request) Successful in 5s
checks / build (pull_request) Successful in 2m12s
checks / test (pull_request) Successful in 2m2s
cf0d51fca5
cascode added 1 commit 2023-10-21 16:50:40 -04:00
only run on some path changes
All checks were successful
lint / lint (pull_request) Successful in 4s
checks / build (pull_request) Successful in 2m10s
checks / test (pull_request) Successful in 1m58s
79d263cbb7
cascode added 1 commit 2023-10-21 16:54:39 -04:00
re-merge file
All checks were successful
checks / lint (pull_request) Successful in 5s
checks / build (pull_request) Successful in 2m16s
checks / test (pull_request) Successful in 2m1s
06708f6038
cascode added 1 commit 2023-10-21 17:10:53 -04:00
cascode added 2 commits 2023-10-21 17:12:22 -04:00
This reverts commit a0e6005acd.
more concise
All checks were successful
checks / lint (pull_request) Successful in 4s
checks / build (pull_request) Successful in 2m13s
checks / test (pull_request) Successful in 2m0s
3cad519f00
cascode added 1 commit 2023-10-21 17:14:09 -04:00
cascode added 1 commit 2023-10-21 17:14:41 -04:00
Revert "var for images"
All checks were successful
checks / lint (pull_request) Successful in 4s
checks / build (pull_request) Successful in 2m11s
checks / test (pull_request) Successful in 2m2s
13d7fce0be
This reverts commit 0c3ecb2730.
Collaborator

also, are we going to do PR squashes, or should i squash this myself before merge?

I vote PR squashes, that way we can get a little messy but just squash to merge.

> also, are we going to do PR squashes, or should i squash this myself before merge? I vote PR squashes, that way we can get a little messy but just squash to merge.
cascode force-pushed automated-testing from 13d7fce0be to 1d1f05cfb6 2023-10-26 20:32:29 -04:00 Compare
cascode force-pushed automated-testing from 1d1f05cfb6 to d85d6285d2 2023-10-26 20:34:17 -04:00 Compare
All checks were successful
checks / lint (pull_request) Successful in 5s
checks / build (pull_request) Successful in 2m15s
checks / test (pull_request) Successful in 2m9s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin automated-testing:automated-testing
git checkout automated-testing
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MountainTownTechnology/aural_isle#9
No description provided.