Commit b7780ba
authored
feat(toxgen): Remove timestamp prone to merge conflicts (#4860)
### Description
Most of the merge conflicts concerning `tox.ini` come from the timestamp
of the last update. If two PRs regenerate `tox.ini`, they'll be
guaranteed to have a merge conflict that needs to be resolved by hand.
This is time consuming and unnecessary.
We still need some way of figuring out when the file was last updated.
This is important for checking unwanted edits to `tox.ini` (instead of
to the template it's generated from). In order to check for them, we
need to regenerate the file on the current branch and compare it to the
committed version. However, if there have been new package versions in
the meantime, these would then pop up in the diff. One solution is to
regenerate the file ignoring any new releases after the last update,
which is what we were using the last updated timestamp for.
In this PR, we simply figure out the timestamp from `git` history,
removing the need for storing it explicitly anywhere.
#### Issues
<!--
* resolves: #1234
* resolves: LIN-1234
-->
#### Reminders
- Please add tests to validate your changes, and lint your code using
`tox -e linters`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)1 parent 4e1b96c commit b7780ba
File tree
5 files changed
+27
-34
lines changed- .github/workflows
- scripts/populate_tox
5 files changed
+27
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
509 | 510 | | |
510 | 511 | | |
511 | 512 | | |
512 | | - | |
513 | | - | |
514 | | - | |
| 513 | + | |
515 | 514 | | |
516 | 515 | | |
517 | 516 | | |
| |||
530 | 529 | | |
531 | 530 | | |
532 | 531 | | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | 532 | | |
539 | 533 | | |
540 | 534 | | |
| |||
623 | 617 | | |
624 | 618 | | |
625 | 619 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
639 | 635 | | |
640 | 636 | | |
641 | 637 | | |
| |||
675 | 671 | | |
676 | 672 | | |
677 | 673 | | |
678 | | - | |
| 674 | + | |
679 | 675 | | |
680 | 676 | | |
681 | 677 | | |
| |||
769 | 765 | | |
770 | 766 | | |
771 | 767 | | |
772 | | - | |
773 | | - | |
774 | | - | |
| 768 | + | |
775 | 769 | | |
776 | 770 | | |
777 | 771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
71 | | - | |
| 69 | + | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
367 | | - | |
| 365 | + | |
368 | 366 | | |
369 | 367 | | |
370 | 368 | | |
| |||
373 | 371 | | |
374 | 372 | | |
375 | 373 | | |
376 | | - | |
| 374 | + | |
377 | 375 | | |
378 | 376 | | |
379 | 377 | | |
| |||
0 commit comments