Skip to content
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

simulate content-origin-request #3047

Merged
merged 23 commits into from
Mar 2, 2021

Conversation

peterbe
Copy link
Contributor

@peterbe peterbe commented Feb 25, 2021

Just trying out some stuff.

@peterbe peterbe marked this pull request as ready for review February 25, 2021 12:30
@@ -70,6 +70,7 @@ exports.handler = async (event) => {
const path = request.uri.endsWith("/")
? request.uri.slice(0, -1)
: request.uri;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry.

@peterbe
Copy link
Contributor Author

peterbe commented Feb 25, 2021

@escattone Ok. Now, this new workflow runs some jest tests. I'm expecting it to fail actually because we don't yet have all your new changes. Basically, this PR won't pass until #2922 is merged.

@peterbe peterbe requested a review from escattone February 26, 2021 16:43
deployer/aws-lambda/content-origin-request/server.test.js Outdated Show resolved Hide resolved
deployer/aws-lambda/content-origin-request/server.test.js Outdated Show resolved Hide resolved
.github/workflows/content-origin-request.yml Show resolved Hide resolved
deployer/aws-lambda/README.md Outdated Show resolved Hide resolved
deployer/aws-lambda/README.md Outdated Show resolved Hide resolved
@peterbe peterbe requested a review from escattone March 1, 2021 14:23
Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterbe I love the changes except one. See below.

.github/workflows/content-origin-request.yml Show resolved Hide resolved
.github/workflows/content-origin-request.yml Outdated Show resolved Hide resolved
Co-authored-by: Ryan Johnson <escattone@gmail.com>
@peterbe peterbe requested a review from escattone March 2, 2021 13:15
@escattone escattone merged commit c6dfe3e into mdn:main Mar 2, 2021
@peterbe peterbe deleted the simulate-content-origin-request branch March 2, 2021 20:03
peterbe added a commit to peterbe/yari that referenced this pull request Jun 1, 2021
* simulate content-origin-request

* specifics

* oops

* eslint

* start server in background

* polka is smaller

* calm down eslint

* debugging

* node_modules caching

* undebugging

* add basic unit test start

* eslint

* querystring

* more tests

* more tests and stuff

* tests updated based on feedback

* way more conservative with caching node_modules

* all feedback addressed

* Update .github/workflows/content-origin-request.yml

Co-authored-by: Ryan Johnson <escattone@gmail.com>

Co-authored-by: Ryan Johnson <escattone@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants