smartfog / fogflow

FogFlow is a standard-based IoT fog computing framework that supports serverless computing and edge computing with advanced programming models
https://fogflow.readthedocs.io
BSD 3-Clause "New" or "Revised" License
123 stars 45 forks source link

Updating CI/CD scripts to adapt recent version + addition of new NGSI-LD test cases #374

Closed BabutaAniket closed 2 years ago

BabutaAniket commented 2 years ago

Pull request contains below addition:

BabutaAniket commented 2 years ago

@showersky I have updated the pull request with the latest version of development branch.

I was facing this issue in designer/main.js :

node:internal/process/promises:265
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, open 'public/data/meta/.db.json.tmp'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'public/data/meta/.db.json.tmp'
}

I faced this issue while building components from source. As in .github/workflows, the components are built from source, the persistence testcases are failing.

So, I have added a new line of code(in designer/main.js) to make a working directory for the storage of internal metadata. fs.mkdir('public/data/meta/', { recursive: true })

showersky commented 2 years ago

this folder will be mapped from a local path into the container when we deploy the designer. But it is good to add this so that the folder can be created if it does not exist. I have added it into the development branch. Could you pull the new development branch and then make a new PR for the other test scripts?

BabutaAniket commented 2 years ago

Thanks for clarifying.

Could you pull the new development branch and then make a new PR for the other test scripts?

Yes, I will do that.