Code Monkey home page Code Monkey logo

dci-lint's People

Contributors

dependabot[bot] avatar petermetz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

dci-lint's Issues

feat: create and publish github action

  1. Create the separate GitHub repo for the action
  2. Write the code for the action, most importantly the docker-entrypoint.sh that acts as the adapter between GH Actions and the DCI Lint command line interface.

feat: command line interface

Requests should be acceptable as a JSON string from the standard input.
This is needed so that GitHub actions can pass said requests in via the command line for evaluation.

ci(github): set up fly.io automated deployments

This can be a job that depends on the container image publishing job to
succeed first and then performing the fly.io deployment via that newly
published container image.

Another option could be to use fly.io's NodeJS flavored deployments but it is
unclear whether this would be simpler or in some other way advantageous like
if they had better terms for the free tier for these flavors or something.

fix(cmd-api-server): health-check endpoint crash - no OpenAPI metadata

$ yarn tap --ts --timeout=6666 --no-coverage pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.362Z] DEBUG (config-service): Configuration validation OK.
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.363Z] INFO (api-server): Setting tls.DEFAULT_MAX_VERSION to TLSv1.3...
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.364Z] INFO (api-server): wwwRoot: ./node_modules/@dci-lint/cockpit/www/
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.364Z] INFO (api-server): resolvedWwwRoot:
/****/dci-lint/node_modules/@dci-lint/cockpit/www
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.364Z] INFO (api-server): resolvedIndexHtml:
/****/dci-lint/node_modules/@dci-lint/cockpit/www/index.html
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.366Z] INFO (api-server): Cockpit net.AddressInfo { address:
'127.0.0.1', family: 'IPv4', port: 37591 }
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.370Z] INFO (api-server): Starting to install web services...
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.371Z] DEBUG (IgnoreFileParser): Created instance OK
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.371Z] INFO (api-server): DCI Lint API net.AddressInfo { address:
'127.0.0.1', family: 'IPv4', port: 40441 }
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.371Z] INFO (api-server): DCI Lint API reachable http://127.0.0.1:40441
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.371Z] INFO (api-server): Cockpit reachable http://127.0.0.1:37591
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 2> Not Found: not found
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 2>     at
/****/dci-lint/node_modules/express-openapi-validator/src/middlewares/openapi.metadata.ts:58:13
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 2>     at
/****/dci-lint/node_modules/express-openapi-validator/src/openapi.validator.ts:147:18
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 2>     at processTicksAndRejections (node:internal/process/task_queues:95:5)
​ FAIL ​ pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts
 ✖ Error: Request failed with status code 404

  test: pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts
  operator: error
  at: bound
    (/****/dci-lint/node_modules/tape-promise/node_modules/onetime/index.js:30:12)
  stack: >-
    Error: Request failed with status code 404
        at createError (/****/dci-lint/node_modules/axios/lib/core/createError.js:16:15)
        at settle (/****/dci-lint/node_modules/axios/lib/core/settle.js:17:12)
        at IncomingMessage.handleStreamEnd (/****/dci-lint/node_modules/axios/lib/adapters/http.js:269:11)
        at IncomingMessage.emit (node:events:525:35)
        at IncomingMessage.emit (node:domain:489:12)
        at endReadableNT (node:internal/streams/readable:1359:12)
        at processTicksAndRejections (node:internal/process/task_queues:82:21)

pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.501Z] INFO (api-server): Shutting down API server ...
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.501Z] INFO (api-server): Closing HTTP server of the API...
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.502Z] INFO (api-server): Close HTTP server of the API OK
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.502Z] INFO (api-server): Closing HTTP server of the cockpit ...
pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1> [2022-12-21T23:22:50.502Z] INFO (api-server): Close HTTP server of the cockpit OK
​ FAIL ​ pkg/test-cmd-api-server/src/test/typescript/integration/api-server.test.ts 1 failed of 1 3s
 ✖ Error: Request failed with status code 404

build(dockerfile): add flavor that builds from source

The current (default) Dockerfile pulls the latest npm package by default but this has issues with release automation where the npm publishing and the dockerfile building are happening in parallel.

We need another src.Dockerfile that builds from source so that the dev-main tagged docker images are built with the latest and greatest dev code.

fix(dockerfile): healthcheck is broken due to missing wget

Most likely a regression caused by the migration to Debian from Ubuntu.

Depends on #35

"Health": {
            "Status": "unhealthy",
            "FailingStreak": 223,
            "Log": [
                {
                    "Start": "2022-12-21T00:32:55.422124341-08:00",
                    "End": "2022-12-21T00:32:55.48794025-08:00",
                    "ExitCode": 127,
                    "Output": "/healthcheck.sh: 3: wget: not found\n"
                },
                {
                    "Start": "2022-12-21T00:32:56.492328924-08:00",
                    "End": "2022-12-21T00:32:56.579029061-08:00",
                    "ExitCode": 127,
                    "Output": "/healthcheck.sh: 3: wget: not found\n"
                },

Assignees: @petermetz
Labels: bug,dependencies

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.