This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 19 Oct, 2021 2 commits
  2. 18 Oct, 2021 1 commit
  3. 15 Oct, 2021 1 commit
    • Mahmood Ali's avatar
      ease building Linux binaries on macOS (#11329) · c46c530a
      Mahmood Ali authored
      Meant for development purposes only, so one can compile binary on a
      macos host then start a Docker container or scp the binary to a linux
      host easily.
      
      The resulting binary is statically linked and has very subtle
      differences. e.g. static binaries use go native network stack that
      honor /etc/hosts and /etc/resolve differently from the glibc
      implementation. In development environment, I don't expect these to
      materially change our experience.
      c46c530a
  4. 14 Oct, 2021 11 commits
  5. 13 Oct, 2021 5 commits
  6. 12 Oct, 2021 6 commits
  7. 11 Oct, 2021 4 commits
    • Ben Buzbee's avatar
      Log error if there are no event handlers registered · 337c5d76
      Ben Buzbee authored
      We see this error all the time
      ```
      no handler registered for event
      event.Message=, event.Annotations=, event.Timestamp=0001-01-01T00:00:00Z, event.TaskName=, event.AllocID=, event.TaskID=,
      ```
      
      So we're handling an even with all default fields. I noted that this can
      happen if only err is set as in
      
      ```
      func (d *driverPluginClient) handleTaskEvents(reqCtx context.Context, ch chan *TaskEvent, stream proto.Driver_TaskEventsClient) {
      	defer close(ch)
      	for {
      		ev, err := stream.Recv()
      		if err != nil {
      			if err != io.EOF {
      				ch <- &TaskEvent{
      					Err: grpcutils.HandleReqCtxGrpcErr(err, reqCtx, d.doneCtx),
      				}
      			}
      ```
      
      In this case Err fails to be serialized by the logger, see this test
      
      ```
      
      	ev := &drivers.TaskEvent{
      		Err: fmt.Errorf("errz"),
      	}
      	i.logger.Warn("ben test", "event", ev)
      	i.logger.Warn("ben test2", "event err str", ev.Err.Error())
      	i.logger.Warn("ben test3", "event err", ev.Err)
      	ev.Err = nil
      	i.logger.Warn("ben test4", "nil error", ev....
      337c5d76
    • Bryce Kalow's avatar
      721f388f
    • Aleksandr Zagaevskiy's avatar
      0620bb04
    • James Rasell's avatar
      Merge pull request #11283 from hashicorp/f-update-hclog-dep · 8378d00d
      James Rasell authored
      deps: update hashicorp/go-hclog to v1.0.0
      8378d00d
  8. 07 Oct, 2021 4 commits
  9. 06 Oct, 2021 6 commits