Skip to content

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

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
JamesWTruher:jameswtruher/travisbadgefix10
Aug 8, 2017
Merged

Remove last-modified from headers from travis CI script#4522
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
JamesWTruher:jameswtruher/travisbadgefix10

Conversation

@JamesWTruher

@JamesWTruher James Truher (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

James Truher (@JamesWTruher) Please also add the issue it fixes.

@JamesWTruher

James Truher (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

Aditya Patwardhan (@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

James Truher (@JamesWTruher) Restarted the AppVeyor build.

@TravisEz13 Travis Plunk (TravisEz13) added the WG-Maintainers-Build specific to affecting the build label Aug 8, 2017
@TravisEz13
Travis Plunk (TravisEz13) merged commit 0e4cd63 into PowerShell:master Aug 8, 2017
@JamesWTruher
James Truher (JamesWTruher) deleted the jameswtruher/travisbadgefix10 branch September 23, 2023 05:33
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
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