Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

File flakes for presubmit runs #1281

Merged
merged 3 commits into from
Jul 7, 2016
Merged

Conversation

lavalamp
Copy link
Contributor

Still working on this-- mostly clean up at the moment.

{
bucket: "kubernetes-jenkins",
pathParts: []interface{}{"logs", "kubernetes-gce-e2e", 1458},
expect: "https://www.googleapis.com/storage/v1/b/kubernetes-jenkins/o?prefix=%2Flogs%2Fkubernetes-gce-e2e%2F1458%2F",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@freehan can you verify the correctness of this test?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks fine to me.

I think I saw a golang gcs client somewhere. Why not use that one instead of writing a new one? I almost pull it last time when I was doing the gcs list stuff.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

next time, maybe I will. Already got this working though :)

On Tue, Jun 28, 2016 at 3:13 PM, Minhan Xia notifications@github.com
wrote:

In test-utils/utils/bucket_test.go
#1281 (comment):

+package utils
+
+import (

  • "testing"
    +)

+func TestExpandListURL(t *testing.T) {

  • table := []struct {
  •   bucket    string
    
  •   pathParts []interface{}
    
  •   expect    string
    
  • }{
  •   {
    
  •       bucket:    "kubernetes-jenkins",
    
  •       pathParts: []interface{}{"logs", "kubernetes-gce-e2e", 1458},
    
  •       expect:    "https://www.googleapis.com/storage/v1/b/kubernetes-jenkins/o?prefix=%2Flogs%2Fkubernetes-gce-e2e%2F1458%2F",
    

It looks fine to me.

I think I saw a golang gcs client somewhere. Why not use that one instead
of writing a new one? I almost pull it last time when I was doing the gcs
list stuff.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/contrib/pull/1281/files/cb8cb59b65946addb0eb0514c835879c0634316a#r68853952,
or mute the thread
https://github.com/notifications/unsubscribe/AAnglvndl0tzYlJp9-CSm0xB3ShJh6uiks5qQZyEgaJpZM4JASOK
.

@lavalamp lavalamp changed the title WIP: File flakes for presubmit runs File flakes for presubmit runs Jun 29, 2016
@lavalamp
Copy link
Contributor Author

OK, I think this is ready or very close. @eparis or @minhan can one of you take a look?

Recommend reviewing commit-by-commit.

@lavalamp
Copy link
Contributor Author

OK, in my test setup, this works-- it made https://github.com/lavalamp/issue-testing/issues/150#issuecomment-229750994 after a passing run of the e2e test on kubernetes/kubernetes#27898

// LogDir is the directory of the pr builder jenkins
PRLogDir = "pr-logs"
// PullLogDir is the directory of the pr builder jenkins
PullLogDir = "pr-logs"
Copy link
Contributor

Choose a reason for hiding this comment

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

why not leave it PRLogDir?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed my mind partway through (it's added in this PR, just changed in the second commit).

@lavalamp
Copy link
Contributor Author

lavalamp commented Jul 1, 2016

Fix pushed, PTAL

@lavalamp
Copy link
Contributor Author

lavalamp commented Jul 6, 2016

@freehan or @eparis I'd love to get this merged this week... :)

@freehan
Copy link
Contributor

freehan commented Jul 7, 2016

LGTM

@freehan freehan added the lgtm Indicates that a PR is ready to be merged. label Jul 7, 2016
@lavalamp
Copy link
Contributor Author

lavalamp commented Jul 7, 2016

\o/

@lavalamp lavalamp merged commit f7f8ea8 into kubernetes-retired:master Jul 7, 2016
foxish pushed a commit to foxish/contrib that referenced this pull request Jan 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants