Skip to content

python3Packages.dateparser: patch flaky test#189312

Merged
mweinelt merged 1 commit intoNixOS:masterfrom
mweinelt:dateparser-patch-flaky-test
Sep 1, 2022
Merged

python3Packages.dateparser: patch flaky test#189312
mweinelt merged 1 commit intoNixOS:masterfrom
mweinelt:dateparser-patch-flaky-test

Conversation

@mweinelt
Copy link
Member

@mweinelt mweinelt commented Sep 1, 2022

The dateparser module has a test that works with the current day of the
month and uses it in June 2020. This breaks everytime we build the
package on the 31st of a month.

scrapinghub/dateparser#1053

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

The dateparser module has a test that works with the current day of the
month and uses it in June 2020. This breaks everytime we build the
package on the 31st of a month, because June only has 30 days.

```
❯ cal 6 2020
      Juni 2020
Mo Di Mi Do Fr Sa So
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
```

scrapinghub/dateparser#1053
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Sep 1, 2022
@mweinelt
Copy link
Member Author

mweinelt commented Sep 1, 2022

@ofborg build python3.pkgs.dateparser

@mweinelt mweinelt merged commit dc47970 into NixOS:master Sep 1, 2022
@mweinelt mweinelt deleted the dateparser-patch-flaky-test branch September 1, 2022 17:41
@ofborg ofborg bot requested a review from dotlambda September 1, 2022 17:46
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Sep 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

Successfully created backport PR #189315 for release-22.05.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

The process '/usr/bin/git' failed with exit code 1

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

The process '/usr/bin/git' failed with exit code 1

vcunat added a commit that referenced this pull request Oct 31, 2022
Our patch from PR #189312 wasn't complete; let's take the upstream one.
I tested on 31st that it really passes now.
vcunat added a commit that referenced this pull request Oct 31, 2022
Our patch from PR #189312 wasn't complete; let's take the upstream one.
I tested on 31st that it really passes now.

(cherry picked from commit e85bc94)
@vcunat
Copy link
Member

vcunat commented Oct 31, 2022

Oh, it's 31st again 🤦🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants