Bug: 两个不同环境几乎同时发布的时候会出现环境变量/打包命令的错误
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Spug 版本:
v3.3.2
问题重现步骤
1.同一个项目的两个不同环境
2.申请审核发布的时候,几乎同时点击发布按钮发布两个项目
报错/问题截图
导致项目发布的时候使用了同一套环境变量或者是使用了同样的打包命令,导致项目运行错误
如下图,打包命令传入参数为umaster
但是实际运行的时候却传递了另一个环境的变量,导致服务运行异常了
期望的结果
各个环境维持自己正确的环境变量
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing two nearly simultaneous releases for different environments in the same project, then trace how each release obtains its environment variables and build command. Done means concurrent releases consistently use their own environment-specific values and no longer cause the other environment's service to fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100