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

Fix duplicated error msgs from Docker container #476

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

karlhorky
Copy link
Member

@karlhorky karlhorky commented Nov 18, 2023

Before (eg. this GitHub Actions workflow run):

$ docker run ghcr.io/upleveled/preflight https://github.com/upleveled/next-portfolio-dev main
Cloning https://github.com/upleveled/next-portfolio-dev...
Installing dependencies...
Running Preflight...
Error: Command failed with exit code 1: preflight
[FAILED] Some changes have not been committed to Git:
[FAILED]         ?? v8-compile-cache-0/
🚀 UpLeveled Preflight v5.0.0
[STARTED] All changes committed to Git
[STARTED] node_modules/ folder ignored in Git
[STARTED] No extraneous files committed to Git
[STARTED] No secrets committed to Git
[STARTED] Use single package manager
[COMPLETED] No extraneous files committed to Git
[STARTED] Project folder name matches correct format
[COMPLETED] Project folder name matches correct format
[STARTED] No dependency problems
[STARTED] Next.js project has sharp installed
[STARTED] No unused dependencies
[STARTED] No dependencies without types
[COMPLETED] Next.js project has sharp installed
[COMPLETED] No secrets committed to Git
[STARTED] GitHub repo has deployed project link under About
[COMPLETED] Use single package manager
[STARTED] ESLint
[COMPLETED] node_modules/ folder ignored in Git
[STARTED] Stylelint
[STARTED] Prettier
[COMPLETED] No dependencies without types
[COMPLETED] Prettier
[STARTED] ESLint config is latest version
[COMPLETED] GitHub repo has deployed project link under About
[STARTED] Stylelint config is latest version
[COMPLETED] No unused dependencies
[COMPLETED] No dependency problems
[STARTED] Preflight is latest version
[COMPLETED] ESLint config is latest version
[COMPLETED] Stylelint config is latest version
[COMPLETED] Stylelint
[COMPLETED] Preflight is latest version
[COMPLETED] ESLint
    at makeError (file:///preflight/node_modules/.pnpm/[email protected]/node_modules/execa/lib/error.js:60:11)
    at handlePromise (file:///preflight/node_modules/.pnpm/[email protected]/node_modules/execa/index.js:12[4](https://github.com/upleveled/next-portfolio-dev/actions/runs/6915000171/job/18813457346#step:3:5):26)
    at process.processTicksAndRejections (node:internal/process/task_queues:9[5](https://github.com/upleveled/next-portfolio-dev/actions/runs/6915000171/job/18813457346#step:3:6):5)
    at async executeCommand (file:///preflight/clone-and-preflight.js:15:30)
    at async file:///preflight/clone-and-preflight.js:102:25 {
  shortMessage: 'Command failed with exit code 1: preflight',
  command: 'preflight',
  escapedCommand: 'preflight',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '🚀 UpLeveled Preflight v5.0.0\n' +
    '[STARTED] All changes committed to Git\n' +
    '[STARTED] node_modules/ folder ignored in Git\n' +
    '[STARTED] No extraneous files committed to Git\n' +
    '[STARTED] No secrets committed to Git\n' +
    '[STARTED] Use single package manager\n' +
    '[COMPLETED] No extraneous files committed to Git\n' +
    '[STARTED] Project folder name matches correct format\n' +
    '[COMPLETED] Project folder name matches correct format\n' +
    '[STARTED] No dependency problems\n' +
    '[STARTED] Next.js project has sharp installed\n' +
    '[STARTED] No unused dependencies\n' +
    '[STARTED] No dependencies without types\n' +
    '[COMPLETED] Next.js project has sharp installed\n' +
    '[COMPLETED] No secrets committed to Git\n' +
    '[STARTED] GitHub repo has deployed project link under About\n' +
    '[COMPLETED] Use single package manager\n' +
    '[STARTED] ESLint\n' +
    '[COMPLETED] node_modules/ folder ignored in Git\n' +
    '[STARTED] Stylelint\n' +
    '[STARTED] Prettier\n' +
    '[COMPLETED] No dependencies without types\n' +
    '[COMPLETED] Prettier\n' +
    '[STARTED] ESLint config is latest version\n' +
    '[COMPLETED] GitHub repo has deployed project link under About\n' +
    '[STARTED] Stylelint config is latest version\n' +
    '[COMPLETED] No unused dependencies\n' +
    '[COMPLETED] No dependency problems\n' +
    '[STARTED] Preflight is latest version\n' +
    '[COMPLETED] ESLint config is latest version\n' +
    '[COMPLETED] Stylelint config is latest version\n' +
    '[COMPLETED] Stylelint\n' +
    '[COMPLETED] Preflight is latest version\n' +
    '[COMPLETED] ESLint',
  stderr: '[FAILED] Some changes have not been committed to Git:\n' +
    '[FAILED]         ?? v[8](https://github.com/upleveled/next-portfolio-dev/actions/runs/6915000171/job/18813457346#step:3:9)-compile-cache-0/',
  cwd: 'project-to-check',
  all: '🚀 UpLeveled Preflight v5.0.0\n' +
    '[STARTED] All changes committed to Git\n' +
    '[STARTED] node_modules/ folder ignored in Git\n' +
    '[STARTED] No extraneous files committed to Git\n' +
    '[STARTED] No secrets committed to Git\n' +
    '[STARTED] Use single package manager\n' +
    '[COMPLETED] No extraneous files committed to Git\n' +
    '[STARTED] Project folder name matches correct format\n' +
    '[COMPLETED] Project folder name matches correct format\n' +
    '[STARTED] No dependency problems\n' +
    '[STARTED] Next.js project has sharp installed\n' +
    '[STARTED] No unused dependencies\n' +
    '[STARTED] No dependencies without types\n' +
    '[COMPLETED] Next.js project has sharp installed\n' +
    '[COMPLETED] No secrets committed to Git\n' +
    '[STARTED] GitHub repo has deployed project link under About\n' +
    '[COMPLETED] Use single package manager\n' +
    '[STARTED] ESLint\n' +
    '[COMPLETED] node_modules/ folder ignored in Git\n' +
    '[STARTED] Stylelint\n' +
    '[FAILED] Some changes have not been committed to Git:\n' +
    '[FAILED]         ?? v8-compile-cache-0/\n' +
    '[STARTED] Prettier\n' +
    '[COMPLETED] No dependencies without types\n' +
    '[COMPLETED] Prettier\n' +
    '[STARTED] ESLint config is latest version\n' +
    '[COMPLETED] GitHub repo has deployed project link under About\n' +
    '[STARTED] Stylelint config is latest version\n' +
    '[COMPLETED] No unused dependencies\n' +
    '[COMPLETED] No dependency problems\n' +
    '[STARTED] Preflight is latest version\n' +
    '[COMPLETED] ESLint config is latest version\n' +
    '[COMPLETED] Stylelint config is latest version\n' +
    '[COMPLETED] Stylelint\n' +
    '[COMPLETED] Preflight is latest version\n' +
    '[COMPLETED] ESLint',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

After (eg. this GitHub Actions workflow run):

$ docker run ghcr.io/upleveled/preflight https://github.com/upleveled/next-portfolio-dev main
Cloning https://github.com/upleveled/next-portfolio-dev...
Installing dependencies...
Running Preflight...
🚀 UpLeveled Preflight v[5](https://github.com/upleveled/next-portfolio-dev/actions/runs/6915000171/job/18813866437#step:3:6).0.0
[STARTED] All changes committed to Git
[STARTED] node_modules/ folder ignored in Git
[STARTED] No extraneous files committed to Git
[STARTED] No secrets committed to Git
[STARTED] Use single package manager
[COMPLETED] No extraneous files committed to Git
[STARTED] Project folder name matches correct format
[COMPLETED] Project folder name matches correct format
[STARTED] No dependency problems
[STARTED] Next.js project has sharp installed
[STARTED] No unused dependencies
[STARTED] No dependencies without types
[COMPLETED] Next.js project has sharp installed
[COMPLETED] No secrets committed to Git
[STARTED] GitHub repo has deployed project link under About
[COMPLETED] Use single package manager
[STARTED] ESLint
[COMPLETED] node_modules/ folder ignored in Git
[STARTED] Stylelint
[FAILED] Some changes have not been committed to Git:
[FAILED]         ?? v[8](https://github.com/upleveled/next-portfolio-dev/actions/runs/6915000171/job/18813866437#step:3:9)-compile-cache-0/
[STARTED] Prettier
[COMPLETED] No dependencies without types
[COMPLETED] Prettier
[STARTED] ESLint config is latest version
[COMPLETED] GitHub repo has deployed project link under About
[STARTED] Stylelint config is latest version
[COMPLETED] No unused dependencies
[COMPLETED] No dependency problems
[STARTED] Preflight is latest version
[COMPLETED] ESLint config is latest version
[COMPLETED] Stylelint config is latest version
[COMPLETED] Stylelint
[COMPLETED] Preflight is latest version
[COMPLETED] ESLint

Copy link

size-limit report 📦

Path Size
dist/preflight.esm.js 7.44 KB (0%)

@karlhorky karlhorky merged commit 3b3a78a into main Nov 18, 2023
7 checks passed
@karlhorky karlhorky deleted the fix-duplicated-error-messages-from-docker-container branch November 18, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant