• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pace / bricks / 13717956986

06 Mar 2025 02:30PM UTC coverage: 51.823% (-4.8%) from 56.612%
13717956986

push

github

web-flow
Merge pull request #406 from pace/gomod-update

This updates all dependencies to the latest version, excluding

github.com/bsm/redislock
github.com/dave/jennifer

as newer versions lead to unwanted behavior.

54 of 82 new or added lines in 9 files covered. (65.85%)

453 existing lines in 15 files now uncovered.

4889 of 9434 relevant lines covered (51.82%)

20.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/maintenance/terminationlog/termlog_linux_amd64.go
1
// Package terminationlog helps to fill the kubernetes termination log.
2
// From the doc:
3
// Termination messages provide a way for containers to write information
4
// about fatal events to a location where it can be easily retrieved and
5
// surfaced by tools like dashboards and monitoring software. In most
6
// cases, information that you put in a termination message should also
7
// be written to the general Kubernetes logs.
8
package terminationlog
9

10
import (
11
        "os"
12
        "syscall"
13
)
14

15
// termLog default location of kubernetes termination log
16
const termLog = "/dev/termination-log"
17

UNCOV
18
func init() {
×
UNCOV
19
        file, err := os.OpenFile(termLog, os.O_RDWR, 0o666)
×
UNCOV
20

×
UNCOV
21
        if err == nil {
×
22
                logFile = file
×
23

×
24
                // redirect stderr to the termLog
×
25
                syscall.Dup2(int(logFile.Fd()), 2) // nolint: errcheck
×
26
        }
×
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc