10000 Remove last-modified from headers from travis CI script by JamesWTruher · Pull Request #4522 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Remove last-modified from headers from travis CI script #4522

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

Merged

Conversation

JamesWTruher
Copy link
Collaborator
@JamesWTruher JamesWTruher commented Aug 7, 2017

It causes a no such resource error when used

When invoke-webrequest is invoked, the call fails with a resource not found error and the badge is not updated. The documentation is pretty spotty with regard to what that resource (last-modified) could have done. It should be enough to set the cache-control header value to let browsers know to refresh the badge value rather than pulling it from cache.

this change should enable the PowerShell main page to report the proper state of the daily build on travis.

@@ -50,7 +50,6 @@ function Set-DailyBuildBadge
$headers = @{
Copy link
Member

Choose a reason for hiding this comment

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

$now is not used any more. We should remove it.

Copy link
Member

Choose a reason for hiding this comment

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

It is still being used in x-ms-date

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's still used - two lines higher

@adityapatwardhan
Copy link
Member

Can we add more description in the PR as to how this change fixes the issue.

@TravisEz13
Copy link
Member

Also, AppVeyor failed in filesystem provider tests. Can we investigate?

@adityapatwardhan
Copy link
Member

@JamesWTruher Please also add the issue it fixes.

@JamesWTruher
Copy link
8000
Collaborator Author
JamesWTruher commented Aug 7, 2017

it looks like failure is in new test code that went in on 8/2 from jeffbi, i'm not sure whether this is a new failure, with a change only in travis.ps1 I'm having difficulty believing my change caused this.

@JamesWTruher
Copy link
Collaborator Author

@adityapatwardhan updated description

@JamesWTruher
Copy link
Collaborator Author

is there a way to restart the job in appveyor?

@adityapatwardhan
Copy link
Member

@JamesWTruher Restarted the AppVeyor build.

@TravisEz13 TravisEz13 added the Area-Maintainers-Build specific to affecting the build label Aug 8, 2017
@TravisEz13 TravisEz13 merged commit 0e4cd63 into PowerShell:master Aug 8, 2017
@JamesWTruher JamesWTruher deleted the jameswtruher/travisbadgefix10 branch September 23, 2023 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Maintainers-Build specific to affecting the build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0