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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(command-deploy): align file filtering with buildbot #1272
Conversation
let actualContent | ||
try { | ||
const response = await fetch(`${siteUrl}${path}`) | ||
if (response.ok) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the test always fail when response.ok
is not true
? If so, I am wondering if there should be a t.true(response.ok)
?
Also wondering about whether the test should always fail when fetch()
or response.text()
throws. In which case, t.notThrowsAsync() could be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, nevermind, I see that content
is sometimes undefined
in some of the tests. 馃憤
let actualContent | ||
try { | ||
const response = await fetch(`${siteUrl}${path}`) | ||
if (response.ok) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, nevermind, I see that content
is sometimes undefined
in some of the tests. 馃憤
2ae6666
to
5f6d0f8
Compare
Tests are failing since the team we're using to deploy edge handlers on CI doesn't have access to do so anymore. |
- Summary
Related to netlify/js-client#157 and #1227.
Fixes #1225 (comment)
The CLI deploy command relies on
js-client
default filter to skip some files when deploying.This is done here:
https://github.com/netlify/js-client/blob/55650048fc7fe6288816c1dc172b27024cbd1586/src/deploy/util.js#L8
and trying to emulate the code here:
https://github.com/netlify/open-api/blob/e72e2eb2d7eedf02bccc5916fc0330022f7f823b/go/porcelain/deploy.go#L692
This PR fixes a few discrepancies with our buildbot:
.public
) - fixes part of Manual deployment hangs with a deployment folder that starts with a dot聽#1227.node_modules
when inside a publish folder. Fixes Community report: CLI behaviour does not match containerized behaviour regarding .gitignore files聽#1225 (comment) and matches buildbot behaviour. Only difference is thatnode_modules
are ignored if a user tries to publish the current project dir.\/__MACOSX
part wasn't working as I'm not sure howbasename
can result in a string containing a/
.- Test plan
Added tests
- Description for the changelog
Align deploy file filtering with buildbot
- A picture of a cute animal (not mandatory but encouraged)
馃惔