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
a27214c8da Revert "test"
This reverts commit 81158ca818.
checks / format (push) Failing after 2s Details
checks / format (pull_request) Failing after 2s Details
b98fd1352a
add rustfmt
checks / format (push) Failing after 3s Details
checks / format (pull_request) Failing after 2s Details
35bb9081ab
add debug ls
checks / format (push) Failing after 2s Details
checks / format (pull_request) Failing after 3s Details
7e49f33b95
add debug ls
checks / format (push) Failing after 8s Details
checks / format (pull_request) Failing after 3s Details
9c97e00d5a
add checkout
checks / format (push) Failing after 43s Details
checks / format (pull_request) Failing after 43s Details
8fb226fafd
add node
checks / format (push) Failing after 39s Details
2659b641ba
test
checks / format (push) Failing after 6s Details
a32e7757c5
test
checks / format (push) Successful in 6s Details
f55d57c8ef
fix fmt
checks / format (push) Successful in 5s Details
e56a40a469
move some steps into the base image
checks / format (push) Failing after 27s Details
3ef2eff8c3
automated build and test
checks / lint (push) Successful in 4s Details
checks / build (push) Failing after 27s Details
checks / test (push) Failing after 27s Details
668e5dbacd
names and images changes
checks / lint (push) Successful in 5s Details
checks / build (push) Successful in 2m12s Details
checks / test (push) Failing after 29s Details
d6dfe7e525
image changes
checks / lint (push) Successful in 4s Details
checks / test (push) Has been cancelled Details
checks / build (push) Has been cancelled Details
c287334af2
add build deps to ci docker image
checks / lint (push) Successful in 5s Details
checks / build (push) Successful in 2m11s Details
checks / test (push) Successful in 2m3s Details
c7b13c2572
image changes
cascode added 1 commit 2023-10-21 16:16:02 -04:00
cascode added 1 commit 2023-10-21 16:17:23 -04:00
checks / lint (pull_request) Successful in 5s Details
checks / build (pull_request) Successful in 2m6s Details
checks / test (pull_request) Successful in 2m3s Details
3fa9d65966
change triggers
cascode added 1 commit 2023-10-21 16:24:52 -04:00
checks / lint (pull_request) Successful in 5s Details
checks / build (pull_request) Successful in 2m6s Details
checks / test (pull_request) Successful in 1m56s Details
763ebea60a
change triggers
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
checks / lint (pull_request) Successful in 4s Details
checks / build (pull_request) Successful in 2m9s Details
checks / test (pull_request) Successful in 2m0s Details
7682dc022c
try removing runner tag
cascode added 1 commit 2023-10-21 16:41:37 -04:00
checks / lint (pull_request) Successful in 5s Details
checks / build (pull_request) Successful in 2m12s Details
checks / test (pull_request) Successful in 2m2s Details
cf0d51fca5
remove runner tag
cascode added 1 commit 2023-10-21 16:50:40 -04:00
lint / lint (pull_request) Successful in 4s Details
checks / build (pull_request) Successful in 2m10s Details
checks / test (pull_request) Successful in 1m58s Details
79d263cbb7
only run on some path changes
cascode added 1 commit 2023-10-21 16:54:39 -04:00
checks / lint (pull_request) Successful in 5s Details
checks / build (pull_request) Successful in 2m16s Details
checks / test (pull_request) Successful in 2m1s Details
06708f6038
re-merge file
cascode added 1 commit 2023-10-21 17:10:53 -04:00
cascode added 2 commits 2023-10-21 17:12:22 -04:00
checks / lint (pull_request) Successful in 4s Details
checks / build (pull_request) Successful in 2m13s Details
checks / test (pull_request) Successful in 2m0s Details
3cad519f00
more concise
cascode added 1 commit 2023-10-21 17:14:09 -04:00
cascode added 1 commit 2023-10-21 17:14:41 -04:00
checks / lint (pull_request) Successful in 4s Details
checks / build (pull_request) Successful in 2m11s Details
checks / test (pull_request) Successful in 2m2s Details
13d7fce0be
Revert "var for images"
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
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b automated-testing main
git pull origin automated-testing

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff automated-testing
git push origin main
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MountainTownTechnology/aural_isle#9
No description provided.