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

violinist-dev / queue-starter / 10588112174

23 Aug 2024 04:44PM UTC coverage: 68.571%. Remained the same
10588112174

push

github

web-flow
Run tests every night (#135)

38 of 80 branches covered (47.5%)

Branch coverage included in aggregate %.

250 of 340 relevant lines covered (73.53%)

26.99 hits per line

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

46.67
/src/createPruneJob.ts
1
import promisify from './promisify'
1✔
2
import * as Docker from 'dockerode'
1✔
3
const bunyan = require('bunyan')
1✔
4
const docker = new Docker()
1✔
5
const config = require('../config')
1✔
6
const log = bunyan.createLogger({ name: 'queue-starter', hostname: config.hostname })
1✔
7

8
function createPruneJob (img) {
9
  return async function () {
×
10
    try {
11
      log.info({
×
12
        img
13
      }, 'Prune img for ' + img)
14
      const startTime = Date.now()
×
15
      const pruneData = await promisify(docker.pruneImages.bind(docker, {
×
16
        label: 'ghcr.io/violinist-dev/update-check-runner:' + img,
17
        dangling: true
18
      }))
19
      log.info({
×
20
        pruneData,
21
        img
22
      }, 'Prune data')
23
      const pruneTime = Date.now() - startTime
×
24
      log.info({
×
25
        pruneTime,
26
        img
27
      }, 'Prune finished for ' + img)
28
    } catch (err) {
29
      log.error(err, 'There was an error: ')
×
30
    }
31
  }
32
}
33

34
module.exports = createPruneJob
1✔
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

© 2026 Coveralls, Inc