Azure / Azure/openapi-diff

TypeError issue reported by OAD in CI for azure-rest-api-specs repo

未关闭
#134 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
290
派生
50
平均合并
5 天 13 小时
30 天内合并 PR
5

描述

@sergey-shandar
https://travis-ci.org/Azure/azure-rest-api-specs/jobs/513289560
```
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined

at validateString (internal/validators.js:125:11)

at Object.join (path.js:1147:7)

at exports.Logger.get [as filepath] (/home/travis/build/Azure/azure-rest-api-specs/node_modules/@azure/oad/dist/lib/util/logging.js:92:39)

at Object.compare (/home/travis/build/Azure/azure-rest-api-specs/node_modules/@azure/oad/dist/lib/validate.js:26:67)

at runOad (/home/travis/build/Azure/azure-rest-api-specs/scripts/breaking-change.js:68:26)

at runScript (/home/travis/build/Azure/azure-rest-api-specs/scripts/breaking-change.js:148:27)

at process._tickCallback (internal/process/next_tick.js:68:7)
```

贡献指南

打开贡献指南

调研方向

Start with the Travis CI job linked in the issue and inspect scripts/breaking-change.js around runOad at line 68 and its caller around line 148. Trace how the OAD logger reaches logging.js and validate.js, then reproduce the failure in the CI workflow. Done means the breaking-change check no longer throws the undefined path TypeError.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
ci-cd, cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。