Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
TravisEz13 merged 1 commit into
PowerShell:masterPowerShell/PowerShell:masterfrom
JamesWTruher:jameswtruher/travisbadgefix10JamesWTruher/PowerShell-1:jameswtruher/travisbadgefix10Copy head branch name to clipboard
Aug 8, 2017
Merged

Remove last-modified from headers from travis CI script#4522
TravisEz13 merged 1 commit into
PowerShell:masterPowerShell/PowerShell:masterfrom
JamesWTruher:jameswtruher/travisbadgefix10JamesWTruher/PowerShell-1:jameswtruher/travisbadgefix10Copy head branch name to clipboard

Conversation

@JamesWTruher

@JamesWTruher JamesWTruher commented Aug 7, 2017

Copy link
Copy Markdown
Collaborator

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.

Comment thread tools/travis.ps1
@@ -50,7 +50,6 @@ function Set-DailyBuildBadge
$headers = @{

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@TravisEz13

Copy link
Copy Markdown
Member

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

@adityapatwardhan

Copy link
Copy Markdown
Member

@JamesWTruher Please also add the issue it fixes.

@JamesWTruher

JamesWTruher commented Aug 7, 2017

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
Collaborator Author

@adityapatwardhan updated description

@JamesWTruher

Copy link
Copy Markdown
Collaborator Author

is there a way to restart the job in appveyor?

@adityapatwardhan

Copy link
Copy Markdown
Member

@JamesWTruher Restarted the AppVeyor build.

@TravisEz13 TravisEz13 added the WG-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

WG-Maintainers-Build specific to affecting the build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.