Skip to content
Snippets Groups Projects
  1. Sep 21, 2024
  2. Jul 30, 2024
    • Stan Hu's avatar
      Add debug log message for resolving Docker credentials · 34f62809
      Stan Hu authored
      Previously it was difficult to debug which Docker credentials were
      loaded and why if `DOCKER_AUTH_CONFIG` were specified.
      
      This commit adds a debug message that shows which auth sources loaded
      from which config. For example:
      
      ```
      Loaded Docker credentials, source = "$DOCKER_AUTH_CONFIG", hostnames = [public.ecr.aws 312968203986.dkr.ecr.us-west-2.amazonaws.com], error = <nil>  job=4000 project=2 runner=fz-mj8s9
      Loaded Docker credentials, source = "/Users/stanhu/.docker/config.json", hostnames = [dev.gitlab.org:5005 registry.gitlab.com], error = <nil>  job=4000 project=2 runner=fz-mj8s9
      Loaded Docker credentials, source = "job payload (GitLab Registry)", hostnames = [gitlab.example.com:5050 registry.gitlab.example.com:443], error = <nil>  job=4000 project=2 runner=fz-mj8s9
      Authenticating with credentials from $DOCKER_AUTH_CONFIG  job=4000 project=2 runner=fz-mj8s9
      ```
      
      Changelog: added
      Verified
      34f62809
  3. May 31, 2024
  4. May 14, 2024
  5. Nov 23, 2023
  6. Nov 22, 2023
    • Axel von Bertoldi's avatar
      Hide docker executor init behind a feature flag · b6b367bb
      Axel von Bertoldi authored
      Over in
      !4446, we,
      among other things, added use of the `Init` option when creating
      containers in the docker executor. We did this for all containers,
      unconditionally. This was the wrong choice. It should have:
      - been done only for service and build images. The helper image doesn't
        need this.
      - been hidden behind a feature flag. Turns our there are a number of
        conditions where making tini-init PID 1 breaks things.
      Verified
      b6b367bb
  7. Nov 15, 2023
    • Axel von Bertoldi's avatar
      Use Init=true when creating ALL docker containers · 82679c69
      Axel von Bertoldi authored
      This will run `/sbin/docker-init -- sh` as PID 1, which will correctly
      propagate SIGTERM (and other signals) to child process. Note that if any
      of the child processes are shells, signal propagation will effectively
      stop at that process since shells have the prickly property of
      swallowing signals. All this to say this running the container with a
      proper init system is not enough to guarantee graceful shutdown of the
      container. We'll fox that later.
      Verified
      82679c69
  8. Nov 14, 2023
  9. Jun 26, 2023
  10. Jun 22, 2023
  11. Apr 28, 2023
  12. Mar 22, 2023
  13. Mar 21, 2023
  14. Mar 02, 2023
  15. Oct 03, 2022
    • Axel von Bertoldi's avatar
      Remove unused mocks · b2980030
      Axel von Bertoldi authored
      Verified
      b2980030
    • Axel von Bertoldi's avatar
      Add go:generate directives to generate mocks · 3945f505
      Axel von Bertoldi authored
      This is the minimum set of mocks required (i.e. actually used by tests).
      
      I've added the directive directly above the interface that needs to be
      mocked. Another alternative is to put the directive in the test file
      that uses the mock, but there are cases where a mock is used in more
      than one file, and other where the mock is used outside of the package
      in which the corresponding interface is defined, both of which made
      things more awkward than the approach taken here.
      Verified
      3945f505
  16. Sep 14, 2022
    • Axel von Bertoldi's avatar
      Stop using "io/ioutil" package · b002f718
      Axel von Bertoldi authored
      The linter was emitting warnings about this, and would likely eventually
      outright fail, so we may as well fix it before that happens.
      Verified
      b002f718
    • Axel von Bertoldi's avatar
      Remove redundant build test directives · 29ab2eb7
      Axel von Bertoldi authored
      I'm not sure why we have both the new `//go:build ...` and the old
      `// +build ...` build directives, but the latter seem superfluous now.
      Verified
      29ab2eb7
    • Axel von Bertoldi's avatar
      Add more mocks · d4d0d9b8
      Axel von Bertoldi authored
      Looks like the new version of mockery creates mocks for "function
      types", whereas the previous version we used did not. Alas, there is no
      runtime flag to skip creation of mocks for function types.
      
      I'm commiting them here to make progress, but we can also keep track of
      them and delete/ignore them.
      Verified
      d4d0d9b8
    • Axel von Bertoldi's avatar
      Regenerate mocks · b418e347
      Axel von Bertoldi authored
      Run `make mocks` to regenerate all mocks. Running this actually
      generates net-new mocks and causes a test compilation failure, but we'll
      address those later. This commit ONLY regenerates and updates
      already-tracked mocks.
      Verified
      b418e347
  17. Jun 06, 2022
    • Eng Zer Jun's avatar
      test: use `T.TempDir` to create temporary test directory · 68c19cde
      Eng Zer Jun authored
      This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
      directory created by `t.TempDir` is automatically removed when the test
      and all its subtests complete.
      
      Prior to this commit, temporary directory created using `ioutil.TempDir`
      needs to be removed manually by calling `os.RemoveAll`, which is omitted
      in some tests. The error handling boilerplate e.g.
      	defer func() {
      		if err := os.RemoveAll(dir); err != nil {
      			t.Fatal(err)
      		}
      	}
      is also tedious, but `t.TempDir` handles this for us nicely.
      
      Reference: https://pkg.go.dev/testing#T.TempDir
      
      
      Signed-off-by: default avatarEng Zer Jun <engzerjun@gmail.com>
      Verified
      68c19cde
  18. Mar 30, 2022
  19. Dec 17, 2021
  20. Sep 30, 2021
  21. Sep 20, 2021
  22. Aug 21, 2021
  23. Aug 16, 2021
  24. May 25, 2021
  25. Mar 17, 2021
  26. Jan 27, 2021
  27. Jan 11, 2021
  28. Nov 16, 2020
  29. Sep 25, 2020
  30. Sep 09, 2020
  31. Aug 19, 2020
  32. Jul 21, 2020
Loading