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

[release-0.5] Fix computation of range length in certain cases (fix 0.5/#20373) #20396

Merged
merged 2 commits into from
Mar 1, 2017

Conversation

StefanKarpinski
Copy link
Member

This is the 0.5 edition: with this change a, b, n are always hit exactly by a:s:a+n*s construction tests. There are two parts to the fix:

  1. check that the lifted rational endpoint is exact even after we've reduced terms of the fractions;
  2. apply the same fix that I've proposed for the length in the non-lifted case.

@tkelman tkelman changed the title Fix computation of range length in certain cases (fix 0.5/#20373) [release-0.5] Fix computation of range length in certain cases (fix 0.5/#20373) Feb 2, 2017
@kshyatt kshyatt added the collections Data structures holding multiple items, e.g. sets label Feb 3, 2017
@StefanKarpinski
Copy link
Member Author

@tkelman: is there a known problem with CI for 0.5, is this why you can't get 0.5.1 out?

@StefanKarpinski
Copy link
Member Author

Blocked on #20483.

@tkelman
Copy link
Contributor

tkelman commented Feb 11, 2017

I don't want to merge behavior changes onto release-0.5 without regression-testing them against pkgeval, so I'm going to change the target branch of this and pull it into a larger backport branch first

@StefanKarpinski
Copy link
Member Author

I need to update this to include further fixes. Now that CI should work, I can push that.

This is the 0.5 edition: with this change a, b, n are always hit
exactly by a:s:a+n*s construction tests. There are two parts to
the fix: 1) check that the lifted rational endpoint is exact even
*after* we've reduced terms of the fractions; 2) apply the same
fix that I've proposed for the length in the non-lifted case.

Combined backport of these commits:

    - e849169
    - b7ad743

range tests: allow any range length that hits stop (#20532)

(cherry picked from commit b7ad743)
@StefanKarpinski
Copy link
Member Author

This is ready to go for 0.5, @tkelman. Feel free to merge, cherry-pick, whatever suits you.

@StefanKarpinski
Copy link
Member Author

Bump.

@tkelman tkelman changed the base branch from release-0.5 to tk/backports-0.5.1 February 22, 2017 15:50
@tkelman tkelman merged commit 7f1e1a0 into tk/backports-0.5.1 Mar 1, 2017
@tkelman tkelman deleted the sk/frfix0.5 branch March 1, 2017 14:08
@GregPlowman GregPlowman mentioned this pull request May 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
collections Data structures holding multiple items, e.g. sets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants