Commit cdce122
committed
ENH: orchestrators(datalad-pair): Do a more targeted update
datalad-pair's fetch() fetches the job ref from the resource and then
relies on 'datalad update' to bring down changes from the remote. If
the merged in branch doesn't contain the job ref, then we temporarily
switch to the job ref, get the outputs, and then let the caller know
that the changes weren't brought in.
This approach is problematic with submodules. One issue is that the
head switch mentioned above does not check out submodules, and in
general DataLad doesn't yet offer a way to set/reload a dataset
hierarchy to a particular state.
Another issue is that update() selects a merge target from the
submodule remote that doesn't necessarily contain the registered
commit. See DataLad's 94efa8637a (NF: update: Add option to merge in
recorded submodule commit, 2020-02-17) for more information. In what
will be the 0.13 release, update() learned a --follow=parentds mode
that makes update() take the registered commit as the merge target
when updating submodules. Use it.
However, this still doesn't deal with bringing a non-mainline job ref
into the top-level dataset because update() unconditionally merges in
a branch from the remote. Try harder to bring in the job ref by doing
an explicit 'git merge' of the ref before the update() call.1 parent 0cb54a8 commit cdce122
File tree
2 files changed
+121
-9
lines changed- reproman/support/jobs
- tests
2 files changed
+121
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
922 | 923 | | |
923 | 924 | | |
924 | 925 | | |
| 926 | + | |
| 927 | + | |
925 | 928 | | |
926 | 929 | | |
927 | 930 | | |
| |||
930 | 933 | | |
931 | 934 | | |
932 | 935 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
937 | 958 | | |
938 | 959 | | |
939 | 960 | | |
| |||
944 | 965 | | |
945 | 966 | | |
946 | 967 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | 968 | | |
953 | 969 | | |
954 | 970 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
665 | 666 | | |
666 | 667 | | |
667 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
0 commit comments