Skip to content

Commit 4ff7688

Browse files
committed
Merge branch 'feat/urgency' of github.com:p1gp1g/autopush-rs into feat/urgency
2 parents fa187a3 + ce37ecd commit 4ff7688

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
name: Restore Docker image cache
170170
command: |
171171
docker load -i /tmp/cache/autopush-integration-tests.tar
172-
docker tag autopush-integration-tests:build integration-tests
172+
docker tag autopush-integration-tests integration-tests
173173
- run:
174174
name: Integration tests (Bigtable)
175175
command: |
@@ -330,12 +330,12 @@ jobs:
330330
docker_layer_caching: true
331331
- run:
332332
name: Build Image
333-
command: docker build -t << parameters.image >>:build -f ./tests/<< parameters.path >>/Dockerfile .
333+
command: docker build -t << parameters.image >> -f ./tests/<< parameters.path >>/Dockerfile .
334334
- run:
335335
name: Save Docker Image to Workspace
336336
command: |
337337
mkdir -p /tmp/cache
338-
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>:build
338+
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>
339339
- persist_to_workspace:
340340
root: /tmp/cache
341341
paths:
@@ -360,12 +360,12 @@ jobs:
360360
docker buildx build --target planner -f ./tests/<< parameters.path >>/Dockerfile .
361361
docker buildx build --target cacher -f ./tests/<< parameters.path >>/Dockerfile .
362362
docker buildx build --target builder -f ./tests/<< parameters.path >>/Dockerfile .
363-
docker buildx build --target integration-tests -t << parameters.image >>:build -f ./tests/<< parameters.path >>/Dockerfile .
363+
docker buildx build --target integration-tests -t << parameters.image >> -f ./tests/<< parameters.path >>/Dockerfile .
364364
- run:
365365
name: Save Docker Image to Workspace
366366
command: |
367367
mkdir -p /tmp/cache
368-
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>:build
368+
docker save -o /tmp/cache/<< parameters.image >>.tar << parameters.image >>
369369
- persist_to_workspace:
370370
root: /tmp/cache
371371
paths:
@@ -415,8 +415,8 @@ jobs:
415415
fi
416416
echo "export GAR_IMAGE=\"<<parameters.registry-url>>/${GCP_GAR_PROJECT_ID}/${GCP_GAR_REPO}/<<parameters.image>>\"" >> $BASH_ENV
417417
source $BASH_ENV
418-
docker tag <<parameters.image>>:<<parameters.build_tag>> $GAR_IMAGE:$GAR_TAG
419-
docker tag <<parameters.image>>:<<parameters.build_tag>> $GAR_IMAGE:latest
418+
docker tag <<parameters.image>> $GAR_IMAGE:$GAR_TAG
419+
docker tag <<parameters.image>> $GAR_IMAGE:latest
420420
# push-image parameters:
421421
# https://circleci.com/developer/orbs/orb/circleci/gcp-gcr#commands-push-image
422422
- gcp-gcr/push-image:
@@ -457,7 +457,7 @@ workflows:
457457

458458
- build:
459459
name: build-autoconnect
460-
image: autoconnect:build
460+
image: autoconnect
461461
crate: autoconnect
462462
binary: autoconnect
463463
filters:
@@ -466,7 +466,7 @@ workflows:
466466

467467
- build:
468468
name: build-autoendpoint
469-
image: autoendpoint:build
469+
image: autoendpoint
470470
crate: autoendpoint
471471
binary: autoendpoint
472472
filters:
@@ -482,7 +482,7 @@ workflows:
482482
- build-test-container:
483483
name: Build End-To-End Test Image
484484
image: autopush-end-to-end-tests
485-
path: end-to-end
485+
path: notification
486486
filters:
487487
tags:
488488
only: /.*/

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ Before submitting a PR:
2424
your reviewer's responsibility to ensure your patch includes adequate tests.
2525

2626
When submitting a PR:
27+
- **[Sign all your git commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#ssh-commit-verification)**.
28+
We cannot accept any PR that does not have all commits signed. This is a policy
29+
put in place by our Security Operations team and is enforced by our CI processes.
2730
- You agree to license your code under the project's open source license
2831
([MPL 2.0](/LICENSE)).
2932
- Base your branch off the current `master`.
3033
- Add both your code and new tests if relevant.
31-
- Sign your git commit.
3234
- Run the test suite to make sure your code passes linting and tests.
3335
- Ensure your changes do not reduce code coverage of the test suite.
3436
- Please do not include merge commits in pull requests; include only commits
@@ -93,5 +95,5 @@ passed and the commit message is properly formatted.
9395
BREAKING CHANGE: This patch requires developer to lower expectations about
9496
what "delicious" and "cookie" may mean. Some sadness may result.
9597
96-
Closes #3.14, #9.75
98+
Closes #314, #975
9799
```

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
SHELL := /bin/sh
22
CARGO = cargo
3-
TESTS_DIR := tests
3+
# For unknown reasons, poetry on CI will sometimes "forget" what it's current path is, which
4+
# can confuse relative path lookups.
5+
# Let's be very explicit about it for now.
6+
TESTS_DIR := `pwd`/tests
47
TEST_RESULTS_DIR ?= workspace/test-results
58
PYTEST_ARGS ?= $(if $(SKIP_SENTRY),-m "not sentry") $(if $(TEST_STUB),,-m "not stub") # Stub tests do not work in CI
69
INTEGRATION_TEST_DIR := $(TESTS_DIR)/integration

PR_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Describe these changes.
44

5+
> **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.)
6+
57
## Testing
68

79
How should reviewers test?

0 commit comments

Comments
 (0)