Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Pepr Set Version Script Broke IB Build Process #1043

Open
cmwylie19 opened this issue Aug 8, 2024 · 0 comments
Open

New Pepr Set Version Script Broke IB Build Process #1043

cmwylie19 opened this issue Aug 8, 2024 · 0 comments
Assignees

Comments

@cmwylie19
Copy link
Collaborator

Environment

Device and OS:
App version:
Kubernetes distro being used:
Other:

Steps to reproduce

> node scripts/set-version.js
/app/scripts/set-version.js:13
  version = process.env.GITHUB_REF_NAME.split("");
                                        ^
TypeError: Cannot read properties of undefined (reading 'split')
    at generateVersion (/app/scripts/set-version.js:13:41)
    at Object.<anonymous> (/app/scripts/set-version.js:40:17)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49
Node.js v20.15.1
npm error code 1
npm error path /app
npm error command failed
npm error command sh -c node scripts/set-version.js
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-08-08T13_25_14_373Z-debug-0.log
subprocess exited with status 1
subprocess exited with status 1
Error: building at STEP "RUN apk add --update nodejs npm &&     npm --no-git-tag-version version ${PEPR_BUILD_VERSION} &&     npm ci &&     npm run build &&     npm cache clean --force &&     rm -fr node_modules/@types &&     rm -fr node_modules/ramda/dist &&     rm -fr node_modules/ramda/es &&     find . -name "*.ts" -type f -delete &&     mkdir node_modules/pepr && cp -r dist node_modules/pepr/dist && cp package.json node_modules/pepr/package.json": exit status 1
| Exception                    | ERROR    | Failed calling build, error: Buildah.build failed

Expected result

Actual Result

Visual Proof (screenshots, videos, text, etc)

Severity/Priority

Additional Context

Add any other context or screenshots about the technical debt here.

@cmwylie19 cmwylie19 self-assigned this Aug 8, 2024
cmwylie19 added a commit that referenced this issue Aug 9, 2024
## Description

Remove scripts from `Dockerfile` (Homework) and also fixed the IB
Pipeline


![image](https://github.com/user-attachments/assets/75ade7de-9adf-4775-9747-ce1c7a2c1bf1)


## Related Issue

Fixes #
<!-- or -->
Relates to #1043 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [ ] [Contributor Guide
Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request)
followed

---------

Signed-off-by: Case Wylie <cmwylie19@defenseunicorns.com>
Co-authored-by: schaeferka <kim@defenseunicorns.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

No branches or pull requests

1 participant