• 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

38.89
/src/createPullJob.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 createPullJob (version) {
9
  return async function () {
×
10
    try {
11
      const img = 'ghcr.io/violinist-dev/update-check-runner:' + version
×
12
      log.info({
×
13
        img
14
      }, 'Pulling img for ' + img)
15
      const startTime = Date.now()
×
16
      const stream = await promisify(docker.pull.bind(docker, img))
×
17
      for await (const _ of stream) {
×
18
        // Ignore this, but use the variable so standard does not complain.
19
        let chunk = _
×
20
        chunk = chunk.toString()
×
21
      }
22
      const pullTime = Date.now() - startTime
×
23
      log.info({
×
24
        pullTime,
25
        img
26
      }, 'Pull finished for ' + img)
27
    } catch (err) {
28
      log.error(err, 'There was an error: ')
×
29
    }
30
  }
31
}
32

33
module.exports = createPullJob
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