feat: add service support to analytics mechnism #9863
main.yml
on: pull_request
e2e-tests
/
e2e-tests
4m 10s
Matrix: it-tests / it-tests
documentation-pr
/
deploy-on-azure-static-webapp
0s
documentation-main
/
deploy-on-azure-static-webapp
publish-packages
/
publish-cascading
publish-packages
/
publish-extensions
Annotations
13 errors and 8 warnings
ng add analytics › should add analytics to an application:
packages/@o3r/analytics/schematics/index.it.spec.ts#L33
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:33:31)
|
ng add analytics › should add analytics to a library:
packages/@o3r/analytics/schematics/index.it.spec.ts#L62
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:62:31)
|
it-tests / it-tests (ubuntu-latest, npm, o3r-project-with-app)
Process completed with exit code 1.
|
ng add analytics › should add analytics to an application:
packages/@o3r/analytics/schematics/index.it.spec.ts#L33
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:33:31)
|
ng add analytics › should add analytics to a library:
packages/@o3r/analytics/schematics/index.it.spec.ts#L62
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:62:31)
|
Create new sdk command › should generate an empty SDK ready to be used:
packages/@ama-sdk/create/src/index.it.spec.ts#L126
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: yarn schematics @ama-sdk/schematics:typescript-core --spec-path ../../swagger-spec.yml
STDERR:
/home/runner/work/otter/otter/.cache/test-app/cache/@openapitools-openapi-generator-cli-npm-2.13.4-6ee43e4cd5-10c0.zip/node_modules/@openapitools/openapi-generator-cli/main.js:2
(()=>{\"use strict\";var e=[,e=>{e.exports=require(\"@nestjs/core\")},(e,t,r)=>{var i,o,a;Object.defineProperty(t,\"__esModule\",{value:!0}),t.AppModule=void 0;const s=r(3),n=r(4),p=r(5),c=r(6),l=r(7),d=r(8),g=r(10),h=r(28),u=process.env.HTTP_PROXY||process.env.HTTPS_PROXY,m={};u&&(m.proxy=!1,m.httpsAgent=new h.HttpsProxyAgent(u));let f=class AppModule{constructor(e,t,r){this.program=e,this.versionManager=t,this.passThroughService=r,this.onApplicationBootstrap=async()=>{let e=this.versionManager.getSelectedVersion();if(!e){const[{version:t}]=await this.versionManager.search([\"latest\"]).toPromise();await this.versionManager.setSelectedVersion(t),e=t}await this.versionManager.downloadIfNeeded(e),await this.passThroughService.init(),this.program.parse(process.argv)}}};t.AppModule=f,t.AppModule=f=s.__decorate([(0,n.Module)({imports:[p.HttpModule.register({...m})],controllers:[d.VersionManagerController],providers:[g.UIService,g.ConfigService,g.GeneratorService,g.PassThroughService,g.VersionManagerService,{provide:l.COMMANDER_PROGRAM,useValue:new c.Command(\"openapi-generator-cli\").helpOption(!1).usage(\"<command> [<args>]\").option(\"--openapitools <openapitools.json>\",\"Use the specified openapi-generator-cli configuration file\")},{provide:l.LOGGER,useValue:console}]}),s.__param(0,(0,n.Inject)(l.COMMANDER_PROGRAM)),s.__metadata(\"design:paramtypes\",[\"function\"==typeof(i=void 0!==c.Command&&c.Command)?i:Object,\"function\"==typeof(o=void 0!==g.VersionManagerService&&g.VersionManagerService)?o:Object,\"function\"==typeof(a=void 0!==g.PassThroughService&&g.PassThroughService)?a:Object])],f)},e=>{e.exports=require(\"tslib\")},e=>{e.exports=require(\"@nestjs/common\")},e=>{e.exports=require(\"@nestjs/axios\")},e=>{e.exports=require(\"commander\")},(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.COMMANDER_PROGRAM=t.LOGGER=void 0,t.LOGGER=Symbol(\"LOGGER\"),t.COMMANDER_PROGRAM=Symbol(\"COMMANDER_PROGRAM\")},(e,t,r)=>{var i,o,a,s;Object.defineProperty(t,\"__esModule\",{value:!0}),t.VersionManagerController=void 0;const n=r(3),p=r(4),c=r(7),l=r(6),d=n.__importDefault(r(9)),g=r(10);let h=class VersionManagerController{constructor(e,t,r,i){this.logger=e,this.program=t,this.ui=r,this.service=i,this.mainCommand=this.program.command(\"version-manager\").description(\"Manage used / installed generator version\"),this.listCommand=this.mainCommand.command(\"list [versionTags...]\").description(\"lists all published versions\").option(\"-j, --json\",\"print as json\",!1).action((e=>this.list(e))),this.setCommand=this.mainCommand.command(\"set <versionTags...>\").description(\"set version to use\").action((e=>this.set(e))),this.list=async e=>{const t=await this.service.search(e).toPromise();if(this.listCommand.opts().json)return void this.logger.log(JSON.stringify(t,null,2));if(t.length<1)return void this.logger.log(d.default.red(\"No results for: \"+e.join(\" \")));const{version:r,installed:i}=await this.table(t),o=await this.service.isSelectedVersion(r),a=(e,t=(()=>null),r=(e=>e))=>({name:r(e),value:t}),s=[a(\"exit\")];i?o||s.unshift(a(\"remove\",(()=>this.service.remove(r)),d.default.red)):s.unshift(a(\"download\",(()=>this.service.download(r)),d.default.yellow)),o||s.unshift(a(\"use\",(()=>this.service.setSelectedVersion(r)),d.default.green)),await(await this.ui.list({name:\"next\",message:\"Whats next?\",choices:s}))()},this.set=async e=>{const t=await this.service.search(e).toPromise();t.length>0?await this.service.setSelectedVersion(t[0].version):this.logger.log(d.default.red(`Unable to find version matching criteria \"${e.join(\" \")}\"`))},this.table=e=>this.ui.table({printColNum:!1,message:\"The following releases are available:\",name:\"version\",rows:e.map(
|
it-tests / it-tests (ubuntu-latest, yarn, o3r-project-with-app)
Process completed with exit code 1.
|
ng add analytics › should add analytics to an application:
packages/@o3r/analytics/schematics/index.it.spec.ts#L33
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:33:31)
|
ng add analytics › should add analytics to a library:
packages/@o3r/analytics/schematics/index.it.spec.ts#L62
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:62:31)
|
it-tests / it-tests (windows-latest, npm, o3r-project-with-app)
Process completed with exit code 1.
|
ng add analytics › should add analytics to an application:
packages/@o3r/analytics/schematics/index.it.spec.ts#L33
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:33:31)
|
ng add analytics › should add analytics to a library:
packages/@o3r/analytics/schematics/index.it.spec.ts#L62
expect(received).toBe(expected) // Object.is equality
Expected: 10
Received: 11
at Object.<anonymous> (schematics/index.it.spec.ts:62:31)
|
it-tests / it-tests (windows-latest, yarn, o3r-project-with-app)
Process completed with exit code 1.
|
checks / test (ubuntu-latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
checks / test (windows-latest)
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
|
checks / test (windows-latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
it-tests / it-tests (ubuntu-latest, npm, o3r-project-with-app)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
it-tests / it-tests (ubuntu-latest, yarn, o3r-project-with-app)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
it-tests / it-tests (windows-latest, npm, o3r-project-with-app)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
it-tests / it-tests (windows-latest, yarn, o3r-project-with-app)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "it-reports-ubuntu-latest-npm", "it-reports-ubuntu-latest-yarn", "it-reports-windows-latest-npm", "it-reports-windows-latest-yarn", "ut-reports-ubuntu-latest", "ut-reports-windows-latest".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
dist
Expired
|
36.5 MB |
|
documentation
Expired
|
77.4 MB |
|
it-reports-ubuntu-latest-npm
Expired
|
15 KB |
|
it-reports-ubuntu-latest-yarn
Expired
|
145 KB |
|
it-reports-windows-latest-npm
Expired
|
14.8 KB |
|
it-reports-windows-latest-yarn
Expired
|
14.8 KB |
|
it-tests-ubuntu-latest-npm
Expired
|
475 MB |
|
it-tests-ubuntu-latest-yarn
Expired
|
235 MB |
|
it-tests-windows-latest-npm
Expired
|
3.16 MB |
|
it-tests-windows-latest-yarn
Expired
|
13.6 MB |
|
ut-reports-ubuntu-latest
Expired
|
326 KB |
|
ut-reports-windows-latest
Expired
|
327 KB |
|
verdaccio
Expired
|
14.9 MB |
|