Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Update Cargo. #1406

Merged
merged 1 commit into from
Mar 23, 2019
Merged

Update Cargo. #1406

merged 1 commit into from
Mar 23, 2019

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Mar 21, 2019

Required for the bump in toml.

Required for the bump in toml.
@ehuss
Copy link
Contributor Author

ehuss commented Mar 21, 2019

I'm assuming the CI failure is not related to this update? Are these tests particularly flaky on HFS? Trying locally, I can't repro on APFS, but happens frequently on HFS. We have a bunch of special cases in Cargo's testsuite to deal with this. I'm not sure if anyone has looked into it at all.

@Xanewok
Copy link
Member

Xanewok commented Mar 22, 2019

That's actually very insightful! I don't have a macOS machine myself so I didn't delve deeper into that myself but yeah, we have some specific spurious macOS failures. @ehuss mind pointing me to the part of the Cargo's testsuite that's related to the HFS?

@ehuss
Copy link
Contributor Author

ehuss commented Mar 22, 2019

I opened #1407 to show a temporary solution, which may give some hints.

Generally you have to be careful with timestamps on HFS since they are such low resolution. In Cargo's testsuite, it detects if it is running on HFS with a very crude check. In the project builder, the mtime is set one second into the past here to ensure that building a project a second time will appear fresh. I tried that on the rls testsuite but it doesn't make a difference. Additionally we have some conditional sleeps for tests that need to rebuild the target multiple times. However, I don't think that's the case here, either. I see a few places in the RLS codebase that deal with time information. I tried investigating the one in rls-analysis but it doesn't seem related. I don't know enough about rls to investigate much further, but I suspect it is something similar to that line in rls-analysis.

@Xanewok
Copy link
Member

Xanewok commented Mar 23, 2019

Thanks for the insight! 👍 I'll merge this if it's blocking you in any way and will come back to the HFS details later on, if you don't mind.

@Xanewok Xanewok merged commit 8976875 into rust-lang:master Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants