0.1.2 release (#22)

* 0.1.2 release

* trace the error and show a user readable message
This commit is contained in:
Thomas Boop
2022-06-23 08:57:14 -04:00
committed by GitHub
parent eb47baaf5e
commit e2033b29c7
4 changed files with 7 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "hooks", "name": "hooks",
"version": "0.1.1", "version": "0.1.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hooks", "name": "hooks",
"version": "0.1.1", "version": "0.1.2",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/jest": "^27.5.1", "@types/jest": "^27.5.1",

View File

@@ -1,6 +1,6 @@
{ {
"name": "hooks", "name": "hooks",
"version": "0.1.1", "version": "0.1.2",
"description": "Three projects are included - k8s: a kubernetes hook implementation that spins up pods dynamically to run a job - docker: A hook implementation of the runner's docker implementation - A hook lib, which contains shared typescript definitions and utilities that the other packages consume", "description": "Three projects are included - k8s: a kubernetes hook implementation that spins up pods dynamically to run a job - docker: A hook implementation of the runner's docker implementation - A hook lib, which contains shared typescript definitions and utilities that the other packages consume",
"main": "", "main": "",
"directories": { "directories": {

View File

@@ -1,3 +1,4 @@
import * as core from '@actions/core'
import * as k8s from '@kubernetes/client-node' import * as k8s from '@kubernetes/client-node'
import { ContainerInfo, Registry } from 'hooklib' import { ContainerInfo, Registry } from 'hooklib'
import * as stream from 'stream' import * as stream from 'stream'
@@ -200,12 +201,13 @@ export async function execPodStep(
if (resp.status === 'Success') { if (resp.status === 'Success') {
resolve(resp.code) resolve(resp.code)
} else { } else {
reject( core.debug(
JSON.stringify({ JSON.stringify({
message: resp?.message, message: resp?.message,
details: resp?.details details: resp?.details
}) })
) )
reject(resp?.message)
} }
} }
) )

View File

@@ -1,7 +1,6 @@
## Features ## Features
- Loosened the restriction on `ACTIONS_RUNNER_CLAIM_NAME` to be optional, not required for k8s hooks
## Bugs ## Bugs
- Improved error handling so that more actionable error messages are displayed for k8s hooks failures [#19]
## Misc ## Misc