Skip to content

Commit

Permalink
Merge branch 'feat/urgency' of github.com:p1gp1g/autopush-rs into fea…
Browse files Browse the repository at this point in the history
…t/urgency
  • Loading branch information
p1gp1g committed Jan 10, 2025
2 parents 57024a7 + ce37ecd commit 2e4f2d1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
name: Restore Docker image cache
command: |
docker load -i /tmp/cache/autopush-integration-tests.tar
docker tag autopush-integration-tests:build integration-tests
docker tag autopush-integration-tests integration-tests
- run:
name: Integration tests (Bigtable)
command: |
Expand Down Expand Up @@ -330,12 +330,12 @@ jobs:
docker_layer_caching: true
- run:
name: Build Image
command: docker build -t << parameters.image >>:build -f ./tests/<< parameters.path >>/Dockerfile .
command: docker build -t << parameters.image >> -f ./tests/<< parameters.path >>/Dockerfile .
- run:
name: Save Docker Image to Workspace
command: |
mkdir -p /tmp/cache
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>:build
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>
- persist_to_workspace:
root: /tmp/cache
paths:
Expand All @@ -360,12 +360,12 @@ jobs:
docker buildx build --target planner -f ./tests/<< parameters.path >>/Dockerfile .
docker buildx build --target cacher -f ./tests/<< parameters.path >>/Dockerfile .
docker buildx build --target builder -f ./tests/<< parameters.path >>/Dockerfile .
docker buildx build --target integration-tests -t << parameters.image >>:build -f ./tests/<< parameters.path >>/Dockerfile .
docker buildx build --target integration-tests -t << parameters.image >> -f ./tests/<< parameters.path >>/Dockerfile .
- run:
name: Save Docker Image to Workspace
command: |
mkdir -p /tmp/cache
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>:build
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>
- persist_to_workspace:
root: /tmp/cache
paths:
Expand Down Expand Up @@ -415,8 +415,8 @@ jobs:
fi
echo "export GAR_IMAGE=\"<<parameters.registry-url>>/${GCP_GAR_PROJECT_ID}/${GCP_GAR_REPO}/<<parameters.image>>\"" >> $BASH_ENV
source $BASH_ENV
docker tag <<parameters.image>>:<<parameters.build_tag>> $GAR_IMAGE:$GAR_TAG
docker tag <<parameters.image>>:<<parameters.build_tag>> $GAR_IMAGE:latest
docker tag <<parameters.image>> $GAR_IMAGE:$GAR_TAG
docker tag <<parameters.image>> $GAR_IMAGE:latest
# push-image parameters:
# https://circleci.com/developer/orbs/orb/circleci/gcp-gcr#commands-push-image
- gcp-gcr/push-image:
Expand Down Expand Up @@ -457,7 +457,7 @@ workflows:

- build:
name: build-autoconnect
image: autoconnect:build
image: autoconnect
crate: autoconnect
binary: autoconnect
filters:
Expand All @@ -466,7 +466,7 @@ workflows:

- build:
name: build-autoendpoint
image: autoendpoint:build
image: autoendpoint
crate: autoendpoint
binary: autoendpoint
filters:
Expand All @@ -482,7 +482,7 @@ workflows:
- build-test-container:
name: Build End-To-End Test Image
image: autopush-end-to-end-tests
path: end-to-end
path: notification
filters:
tags:
only: /.*/
Expand Down
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ Before submitting a PR:
your reviewer's responsibility to ensure your patch includes adequate tests.

When submitting a PR:
- **[Sign all your git commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#ssh-commit-verification)**.
We cannot accept any PR that does not have all commits signed. This is a policy
put in place by our Security Operations team and is enforced by our CI processes.
- You agree to license your code under the project's open source license
([MPL 2.0](/LICENSE)).
- Base your branch off the current `master`.
- Add both your code and new tests if relevant.
- Sign your git commit.
- Run the test suite to make sure your code passes linting and tests.
- Ensure your changes do not reduce code coverage of the test suite.
- Please do not include merge commits in pull requests; include only commits
Expand Down Expand Up @@ -93,5 +95,5 @@ passed and the commit message is properly formatted.
BREAKING CHANGE: This patch requires developer to lower expectations about
what "delicious" and "cookie" may mean. Some sadness may result.
Closes #3.14, #9.75
Closes #314, #975
```
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
SHELL := /bin/sh
CARGO = cargo
TESTS_DIR := tests
# For unknown reasons, poetry on CI will sometimes "forget" what it's current path is, which
# can confuse relative path lookups.
# Let's be very explicit about it for now.
TESTS_DIR := `pwd`/tests
TEST_RESULTS_DIR ?= workspace/test-results
PYTEST_ARGS ?= $(if $(SKIP_SENTRY),-m "not sentry") $(if $(TEST_STUB),,-m "not stub") # Stub tests do not work in CI
INTEGRATION_TEST_DIR := $(TESTS_DIR)/integration
Expand Down
2 changes: 2 additions & 0 deletions PR_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Describe these changes.

> **NOTE:** We can only accept PRS with all commits [signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#ssh-commit-verification). PRs that contain _any_ unsigned commits will not be accepted and the PR _must_ be resubmitted. If this is something you cannot provide, please disclose and a team member _may_ duplicate the PR as signed for you (depending on availablity and priority. Thank you for your understanding and cooperation.)
## Testing

How should reviewers test?
Expand Down

0 comments on commit 2e4f2d1

Please sign in to comment.