debug
This commit is contained in:
parent
418a29d1a0
commit
7ee036d7e7
6 changed files with 11 additions and 10 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -21,6 +21,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
- run: ps aux
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: bazelbuild/examples
|
||||
|
|
|
|||
7
dist/main/index.js
vendored
7
dist/main/index.js
vendored
|
|
@ -97047,15 +97047,14 @@ async function restoreCache(cacheConfig) {
|
|||
async function startRemoteCacheServer() {
|
||||
core.startGroup("Remote cache server")
|
||||
|
||||
core.debug(`Remote cache server log file path: ${config.remoteCacheServer.logPath}`)
|
||||
core.info(`Remote cache server log file path: ${config.remoteCacheServer.logPath}`)
|
||||
const log = fs.openSync(config.remoteCacheServer.logPath, 'a')
|
||||
const serverProcess = fork(__nccwpck_require__.ab + "remote-cache-server.js", [], {
|
||||
detached: true,
|
||||
stdio: ['ignore', log, log, 'ipc']
|
||||
stdio: ['ignore', log, log]
|
||||
})
|
||||
serverProcess.unref()
|
||||
|
||||
core.info(`Started remote cache server (${serverProcess.pid}`)
|
||||
core.info(`Started remote cache server (${serverProcess.pid})`)
|
||||
core.saveState('remote-cache-server-pid', serverProcess.pid.toString())
|
||||
core.endGroup()
|
||||
}
|
||||
|
|
|
|||
3
dist/post/index.js
vendored
3
dist/post/index.js
vendored
|
|
@ -95940,7 +95940,6 @@ const core = __nccwpck_require__(2186)
|
|||
const glob = __nccwpck_require__(8090)
|
||||
const config = __nccwpck_require__(5532)
|
||||
const { getFolderSize } = __nccwpck_require__(4962)
|
||||
const { execSync } = __nccwpck_require__(2081)
|
||||
|
||||
async function run() {
|
||||
await stopRemoteCacheServer()
|
||||
|
|
@ -95948,6 +95947,8 @@ async function run() {
|
|||
}
|
||||
|
||||
async function stopRemoteCacheServer() {
|
||||
core.info(fs.readFileSync(config.remoteCacheServer.logPath, 'utf8'))
|
||||
|
||||
const pid = core.getState('remote-cache-server-pid')
|
||||
if (pid) {
|
||||
try {
|
||||
|
|
|
|||
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
5
index.js
5
index.js
|
|
@ -181,11 +181,10 @@ async function restoreCache(cacheConfig) {
|
|||
async function startRemoteCacheServer() {
|
||||
core.startGroup("Remote cache server")
|
||||
|
||||
core.debug(`Remote cache server log file path: ${config.remoteCacheServer.logPath}`)
|
||||
core.info(`Remote cache server log file path: ${config.remoteCacheServer.logPath}`)
|
||||
const log = fs.openSync(config.remoteCacheServer.logPath, 'a')
|
||||
const serverProcess = fork(path.join(__dirname, 'remote-cache-server.js'), [], {
|
||||
detached: true,
|
||||
stdio: ['ignore', log, log, 'ipc']
|
||||
stdio: ['ignore', log, log]
|
||||
})
|
||||
serverProcess.unref()
|
||||
|
||||
|
|
|
|||
3
post.js
3
post.js
|
|
@ -5,7 +5,6 @@ const core = require('@actions/core')
|
|||
const glob = require('@actions/glob')
|
||||
const config = require('./config')
|
||||
const { getFolderSize } = require('./util')
|
||||
const { execSync } = require('child_process')
|
||||
|
||||
async function run() {
|
||||
await stopRemoteCacheServer()
|
||||
|
|
@ -13,6 +12,8 @@ async function run() {
|
|||
}
|
||||
|
||||
async function stopRemoteCacheServer() {
|
||||
core.info(fs.readFileSync(config.remoteCacheServer.logPath, 'utf8'))
|
||||
|
||||
const pid = core.getState('remote-cache-server-pid')
|
||||
if (pid) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue