Skip to content

Kerolasa/init wd#85

Open
kerolasa wants to merge 5 commits intocloudflare:masterfrom
kerolasa:kerolasa/init-wd
Open

Kerolasa/init wd#85
kerolasa wants to merge 5 commits intocloudflare:masterfrom
kerolasa:kerolasa/init-wd

Conversation

@kerolasa
Copy link
Copy Markdown

@kerolasa kerolasa commented Jan 13, 2026

  • chore: fix gofmt test failure

    The build failed with following message.

      Run test -z "$(gofmt -l ./ | tee /dev/stderr)"
      doc.go
      Error: Process completed with exit code 1.F
    

    Signed-off-by: Sami Kerola kerolasa@cloudflare.com

  • DNS-12599: avoid failing upgrade due to initWD being empty

    When an initial working directory fails to populate upgrades will fail even
    when user supplied pid file is defined. This change fixes the issue.

    Also add more information to error messages as a consequence of pull review.

    Reviewed-by: Christian Elmerot christian@elmerot.se
    Reference: Kerolasa/init wd #85 (comment)
    Signed-off-by: Sami Kerola kerolasa@cloudflare.com

  • chore: do not use deprecated ioutls package

    Reference: https://pkg.go.dev/io/ioutil
    Signed-off-by: Sami Kerola kerolasa@cloudflare.com

  • chore: vendor update 2026-01-13

    Signed-off-by: Sami Kerola kerolasa@cloudflare.com

kerolasa added a commit to kerolasa/tableflip that referenced this pull request Jan 21, 2026
When an initial working directory fails to populate upgrades will fail even
when user supplied pid file is defined.  This change fixes the issue.

Also add more information to error messages as a consequence of pull review.

Reviewed-by: Christian Elmerot <christian@elmerot.se>
Reference: cloudflare#85 (comment)
Signed-off-by: Sami Kerola <kerolasa@cloudflare.com>
Signed-off-by: Sami Kerola <kerolasa@cloudflare.com>
Reference: https://pkg.go.dev/io/ioutil
Signed-off-by: Sami Kerola <kerolasa@cloudflare.com>
When an initial working directory fails to populate upgrades will fail even
when user supplied pid file is defined.  This change fixes the issue.

Also add more information to error messages as a consequence of pull review.

Reviewed-by: Christian Elmerot <christian@elmerot.se>
Reference: cloudflare#85 (comment)
Signed-off-by: Sami Kerola <kerolasa@cloudflare.com>
The build failed with following message.

    Run test -z "$(gofmt -l ./ | tee /dev/stderr)"
    doc.go
    Error: Process completed with exit code 1.F

Signed-off-by: Sami Kerola <kerolasa@cloudflare.com>
When sending my earlier changes to review test failed with following message.

    --- FAIL: TestFdsFiles (0.00s)
    fds_test.go:451: Expected file "fd:test1:", got "fd:test2:"
    fds_test.go:451: Expected file "fd:test2:", got "fd:test1:"

It turns out one cannot trust order of items in a golang map.  It is best to
sort the output so that results are a stable set.  Notice that I chose sorting
the test results, not what code is generating.  On a real system order of these
items should not matter, so there is no point to spend time sorting them.

Reference: https://github.com/cloudflare/tableflip/pull/85/files
Signed-off-by: Sami Kerola <kerolasa@cloudflare.com>
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.

2 participants