Skip to content

Fix ddocYear test regression#10802

Merged
wilzbach merged 1 commit intodlang:masterfrom
kinke:patch-1
Feb 19, 2020
Merged

Fix ddocYear test regression#10802
wilzbach merged 1 commit intodlang:masterfrom
kinke:patch-1

Conversation

@kinke
Copy link
Contributor

@kinke kinke commented Feb 19, 2020

Apparently introduced by #9478; the placeholder was already used in 4736cf4 and later restored another time in 4e8d1cd.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @kinke! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + dmd#10802"

Apparently introduced by dlang#9478; the placeholder was already used in 4736cf4 and later restored another time in 4e8d1cd.
@kinke
Copy link
Contributor Author

kinke commented Feb 19, 2020

I've added a little check for that placeholder, in the hopes of never seeing this regress again (it has been introduced in 2013, #1699).

@wilzbach wilzbach merged commit 972b773 into dlang:master Feb 19, 2020
@kinke kinke deleted the patch-1 branch February 19, 2020 01:40
WebDrake added a commit to WebDrake/ldc2.snap that referenced this pull request Feb 19, 2020
Using `chown` to set `root` as the owner of `/` was suggested on the
snapcraft forums, and appears to work for others:
https://forum.snapcraft.io/t/permissions-problem-using-snapcraft-in-azure-pipelines/13258/14

Unfortunately this exposes a nasty regression in the DMD testsuite: the
`ddocYear` test-case hard-encodes an expected year, when it should be a
placeholder that gets replaced with the year when the build takes place.
We can work around this by using `sed` to replace the hardcoded year.

It will be necessary to update this workaround for LDC 1.20.x (when the
hardcoded year switches from 2019 to 2020), and it should be possible to
remove the workaround entirely with LDC 1.21, thanks to an upstream fix
that should land in the next DMD frontend release:
dlang/dmd#10802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants