Skip to content

Cleanup: simplify flag parsing and merge into mflag (rebase ++)#8158

Closed
SvenDowideit wants to merge 7 commits intomoby:masterfrom
SvenDowideit:cleanup-flags-sven
Closed

Cleanup: simplify flag parsing and merge into mflag (rebase ++)#8158
SvenDowideit wants to merge 7 commits intomoby:masterfrom
SvenDowideit:cleanup-flags-sven

Conversation

@SvenDowideit
Copy link
Copy Markdown
Contributor

this is to get #7551 updated for merge.

I've added the missing non-global validation functions, and rebased

@SvenDowideit SvenDowideit changed the title Cleanup flags sven Cleanup: simplify flag parsing and merge into mflag (rebase ++) Sep 22, 2014
@SvenDowideit
Copy link
Copy Markdown
Contributor Author

@vieux

@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented Sep 22, 2014

gofmt failed
Also probably you should close #7551

@SvenDowideit
Copy link
Copy Markdown
Contributor Author

(I haven't closed the original because i'm not 100% sure the somewhat large number of changes I've had to make are right)

looks like I'm going to need some help - there's an integration test failure that I don't know enough about:

[PASSED]: create - echo test123
SIGQUIT: quit
PC=0x42f353

goroutine 17 [syscall]:
runtime.notetsleepg(0x7ff3ee9e2f60, 0xdf8475800)
    /usr/local/go/src/pkg/runtime/lock_futex.c:198 +0x46 fp=0x7ff3ee9e2f38 sp=0x7ff3ee9e2f08
runtime.MHeap_Scavenger()
    /usr/local/go/src/pkg/runtime/mheap.c:532 +0xa3 fp=0x7ff3ee9e2fa8 sp=0x7ff3ee9e2f38
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445 fp=0x7ff3ee9e2fb0 sp=0x7ff3ee9e2fa8
created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:207

goroutine 16 [chan receive, 4 minutes]:
testing.RunTests(0x8a9088, 0x9fc160, 0x107, 0x107, 0x77b101)
    /usr/local/go/src/pkg/testing/testing.go:505 +0x923
testing.Main(0x8a9088, 0x9fc160, 0x107, 0x107, 0xa03140, 0x0, 0x0, 0xa03140, 0x0, 0x0)
    /usr/local/go/src/pkg/testing/testing.go:435 +0x84
main.main()
    github.com/docker/docker/integration-cli/_test/_testmain.go:621 +0x10c

goroutine 19 [finalizer wait, 1 minutes]:
runtime.park(0x414860, 0x9fdb70, 0x9fa529)
    /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x9fdb70, 0x9fa529)
    /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 20 [syscall, 9 minutes]:
os/signal.loop()
    /usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1

@SvenDowideit
Copy link
Copy Markdown
Contributor Author

mmm, and then I ran the tests again, and they passed....

Comment thread runconfig/parse.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be removed. It was moved to api/client/commands.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@SvenDowideit Arggg, forgot to remove this one. Sorry about that! Can you amend?

@tiborvass
Copy link
Copy Markdown
Contributor

@SvenDowideit I'll send you a PR, it will be easier than commenting.

@SvenDowideit
Copy link
Copy Markdown
Contributor Author

@tiborvass awesome, thanks :)

@tiborvass
Copy link
Copy Markdown
Contributor

LGTM

Comment thread integration-cli/docker_cli_run_test.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you do exact check of error? We have already one false-pass test where we don't check error.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I vote for a simple: strings.Contains(out, "Conflicting options")

Also, the Test has to start with TestRun.

@jessfraz
Copy link
Copy Markdown
Contributor

LGTM

Comment thread runconfig/parse.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@SvenDowideit I forgot to remove all this block which is redundant since we already set those fields when creating the config variable.

Solomon Hykes and others added 6 commits September 24, 2014 12:29
Signed-off-by: Solomon Hykes <[email protected]>

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <[email protected]> (github: SvenDowideit)
Signed-off-by: Solomon Hykes <[email protected]>

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <[email protected]> (github: SvenDowideit)
Signed-off-by: Solomon Hykes <[email protected]>

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <[email protected]> (github: SvenDowideit)
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <[email protected]> (github: SvenDowideit)
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <[email protected]> (github: SvenDowideit)
Signed-off-by: Tibor Vass <[email protected]>

Docker-DCO-1.1-Signed-off-by: Tibor Vass <[email protected]> (github: SvenDowideit)
@SvenDowideit
Copy link
Copy Markdown
Contributor Author

updating, building and testing. - docker build -t tag . and --filter work. so its looking up.

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <[email protected]> (github: SvenDowideit)
@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented Sep 24, 2014

These files are not properly gofmt'd:
 - integration-cli/docker_cli_run_test.go

@tiborvass
Copy link
Copy Markdown
Contributor

Ping @SvenDowideit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants