Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分布式编译服务器连不上时,应该回滚到本地编译 #2491

Closed
Domain opened this issue Jun 25, 2022 · 3 comments
Closed

分布式编译服务器连不上时,应该回滚到本地编译 #2491

Domain opened this issue Jun 25, 2022 · 3 comments

Comments

@Domain
Copy link
Contributor

Domain commented Jun 25, 2022

你在什么场景下需要该功能?

配置了分布式编译,但是有些时候服务器连不上,这时候会编译失败,提示 server unreachable

描述可能的解决方案

编译开始时就尝试连接服务器,如果失败了,回滚到本地编译,而不是编译失败

描述你认为的候选方案

No response

其他信息

No response

@Domain
Copy link
Contributor Author

Domain commented Jun 25, 2022

另外,fastbuild分布式编译的时候,本地文件都编译完了之后,会自动编译已经分发出去的文件,哪一个先完成就用哪一个,这在网络环境比较差,或者远程机器比较卡的时候很有用,不知道xmake是否也有类似的功能。

@Domain
Copy link
Contributor Author

Domain commented Jun 25, 2022

同理,远程缓存服务器连不上时,也不应该编译失败,要么不缓存,要么本地缓存

@waruqi
Copy link
Member

waruqi commented Jun 25, 2022

server unreachable 自动 fallback 我搞了下。dev

另外,fastbuild分布式编译的时候,本地文件都编译完了之后,会自动编译已经分发出去的文件,哪一个先完成就用哪一个,这在网络环境比较差,或者远程机器比较卡的时候很有用,不知道xmake是否也有类似的功能。

没有,暂时懒得搞。。

@waruqi waruqi closed this as completed Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants