Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
38d21cc
Fork 1.17 from main branch
dagood Jan 26, 2022
50ba7c0
Switch to 1ES servicing pools on microsoft/release-branch.go1.17 (#238)
jonfortescue Oct 20, 2021
a0895e3
[microsoft/release-branch.go1.17] Add "make" retry capability, with 5…
dagood Dec 6, 2021
1566253
Update submodule to dev.boringcrypto.go1.17; patch
dagood Jan 27, 2022
1ab9abc
Fork 1.16 from 1.17 branch
dagood Jan 27, 2022
5ef23a6
Update submodule to latest release-branch.go1.17 (539d430e): [release…
Jan 28, 2022
a35e8f7
Merge pull request #389 from microsoft/dev/auto-sync/microsoft/releas…
Jan 28, 2022
b06f38c
Add FIPS OpenSSL documentation
qmuntal Jan 28, 2022
cdf3574
Find submodule VERSION file for build asset json (#391)
dagood Jan 31, 2022
ea9cc8e
Merge pull request #392 from microsoft/dev/dagood/fips-readme
dagood Jan 31, 2022
04d9343
Update submodule to latest release-branch.go1.17 (1b867ce3): [release…
Feb 4, 2022
86be7f0
Merge pull request #405 from microsoft/dev/auto-sync/microsoft/releas…
Feb 4, 2022
7f876da
Update submodule to latest release-branch.go1.17 (1952c65f): [release…
Feb 9, 2022
12e9183
Merge pull request #411 from microsoft/dev/auto-sync/microsoft/releas…
Feb 9, 2022
d52c9c6
Create source archive during CI (#408) (#413)
dagood Feb 9, 2022
0a17315
Merge 'microsoft/release-branch.go1.16' into microsoft/release-branch…
dagood Feb 9, 2022
4a14e62
Fix up patch with 3-way resolution
dagood Feb 9, 2022
b1e24c4
Merge pull request #414 from dagood/dev/dagood/merge-1.17-from-1.16
dagood Feb 9, 2022
6e4168f
Merge 'microsoft/release-branch.go1.17' into microsoft/dev.boringcryp…
dagood Feb 9, 2022
6a9a55a
Merge pull request #417 from dagood/dev/dagood/merge-b1.17-from-1.17
dagood Feb 9, 2022
13c3cef
Update submodule to latest release-branch.go1.16 (0a6cf870): [release…
Feb 9, 2022
73d4cc3
Merge pull request #420 from microsoft/dev/auto-sync/microsoft/releas…
Feb 10, 2022
d240ef9
Update submodule to latest tag, go1.17.7 (#422)
dagood Feb 10, 2022
e368833
Update submodule to latest release-branch.go1.17 (cd6e0d7c): [release…
Feb 11, 2022
20c7363
Update submodule to latest dev.boringcrypto.go1.17 (172559d2): [dev.b…
Feb 11, 2022
b602aec
Merge pull request #425 from microsoft/dev/auto-sync/microsoft/releas…
Feb 11, 2022
50a0608
Merge pull request #426 from microsoft/dev/auto-sync/microsoft/dev.bo…
Feb 11, 2022
6a38a08
Update go-infra: detect VERSION or go/VERSION (#429) (#433)
dagood Feb 15, 2022
6e23ec4
Merge 'microsoft/release-branch.go1.16' into dev/dagood/merge-1.17-fr…
dagood Feb 15, 2022
29d325a
Merge pull request #436 from dagood/dev/dagood/merge-1.17-from-1.16
dagood Feb 15, 2022
ba9fb97
Merge 'microsoft/release-branch.go1.17' into dev/dagood/merge-b1.17-f…
dagood Feb 15, 2022
001ce31
Add VERSION file: 1.17.7
dagood Feb 15, 2022
e27e251
Update submodule to latest dev.boringcrypto.go1.17 (6666adc1): [dev.b…
Feb 16, 2022
ddd2ddc
Merge pull request #439 from microsoft/dev/auto-sync/microsoft/dev.bo…
Feb 16, 2022
d0cc051
Merge pull request #437 from dagood/dev/dagood/merge-b1.17-from-1.17
dagood Feb 16, 2022
96ce61a
Update submodule to latest release-branch.go1.17 (7d8fa657): [release…
Feb 18, 2022
8546ef6
Merge pull request #443 from microsoft/dev/auto-sync/microsoft/releas…
Feb 18, 2022
690c325
Update submodule to latest release-branch.go1.17 (7dd10d4c): [release…
Mar 3, 2022
50b5a3a
Merge pull request #460 from microsoft/dev/auto-sync/microsoft/releas…
Mar 3, 2022
c4f89b7
Add pointer in FIPS docs to new location (#457)
dagood Mar 7, 2022
9645f3c
Update submodule to latest dev.boringcrypto.go1.17 (4ea866a9): [dev.b…
Mar 7, 2022
c32828c
Merge pull request #467 from microsoft/dev/auto-sync/microsoft/dev.bo…
Mar 7, 2022
168374a
Update submodule to latest release-branch.go1.18 (4aa1efed): [release…
Mar 15, 2022
396389c
Update submodule to latest release-branch.go1.17 (88be85f1): [release…
Mar 15, 2022
10532fd
Update submodule to latest dev.boringcrypto.go1.18 (0622ea4d): [dev.b…
Mar 15, 2022
4969451
Merge pull request #478 from microsoft/dev/auto-sync/microsoft/releas…
Mar 15, 2022
ab0c6ab
Merge pull request #480 from microsoft/dev/auto-sync/microsoft/releas…
Mar 15, 2022
5af7a10
Resolve OpenSSL patch conflicts
dagood Mar 15, 2022
9919e64
Add patch to skip TestScript/gopath_std_vendor
dagood Mar 15, 2022
6225f73
Merge pull request #479 from microsoft/dev/auto-sync/microsoft/dev.bo…
dagood Mar 16, 2022
6450939
Update VERSION to go1.18 (#487)
dagood Mar 16, 2022
4b02077
[microsoft/release-branch.go1.17] Add linux-arm64 builders (#495)
dagood Mar 25, 2022
61b3a1c
Merge 'microsoft/release-branch.go1.17' into dev/dagood/merge-1.18-fr…
dagood Mar 28, 2022
0f7b5eb
gate openssl backend behind cgo build constraint (#493)
qmuntal Mar 29, 2022
c7fb243
Merge pull request #502 from dagood/dev/dagood/merge-1.18-from-1.17
dagood Mar 29, 2022
cb79166
Increment Microsoft revision (#508)
dagood Mar 29, 2022
dfb9361
Update submodule to latest release-branch.go1.17 (4e69fddc): [release…
Mar 30, 2022
faace25
Update submodule to latest release-branch.go1.18 (677c6fe9): [release…
Mar 30, 2022
43cc740
Merge pull request #509 from microsoft/dev/auto-sync/microsoft/releas…
Mar 30, 2022
c806d01
Merge pull request #511 from microsoft/dev/auto-sync/microsoft/releas…
Mar 30, 2022
f62e6bf
Rearrange FIPS patches, start at 0100 (#515)
dagood Mar 31, 2022
ba2eba1
Merge 'microsoft/release-branch.go1.18' into dev/dagood/merge-b1.18-f…
dagood Mar 31, 2022
6cad9dd
Merge pull request #518 from dagood/dev/dagood/merge-b1.18-from-1.18
dagood Apr 1, 2022
2e178d6
update mariner image
qmuntal Apr 6, 2022
4953769
use gocrypt tag for cgo static tests
qmuntal Apr 6, 2022
26a00d4
Merge branch 'microsoft/dev.boringcrypto.go1.18' into dev/qmuntal/fix…
qmuntal Apr 6, 2022
d2efce9
use gocrypt tag for cgo static tests
qmuntal Apr 6, 2022
e3eb3ea
use gocrypt tag for cgo static tests
qmuntal Apr 6, 2022
f8ba793
Apply suggestions from code review
qmuntal Apr 7, 2022
522e012
Merge pull request #520 from microsoft/dev/qmuntal/fix-url-go1.18
qmuntal Apr 7, 2022
e805158
Update submodule to latest release-branch.go1.18 (0b0d2fe6): [release…
Apr 12, 2022
d2b3c0a
Update submodule to latest release-branch.go1.17 (346b18ee): [release…
Apr 12, 2022
e16f3fb
Merge pull request #525 from microsoft/dev/auto-sync/microsoft/releas…
Apr 12, 2022
2f62271
Merge pull request #526 from microsoft/dev/auto-sync/microsoft/releas…
Apr 12, 2022
0e390dc
Update submodule to latest dev.boringcrypto.go1.18 (d003f085): [dev.b…
Apr 14, 2022
8f6044d
Merge pull request #527 from microsoft/dev/auto-sync/microsoft/dev.bo…
Apr 14, 2022
2cf2622
Update version to 1.18.1-1 (#530)
dagood Apr 14, 2022
a34208f
panic if GOFIPS set and not supported
qmuntal Apr 19, 2022
a3dfe91
Add test retries on Windows CI (#475)
dagood Apr 7, 2022
3b1a957
Add arm/v6 cross-compiled build (#523)
dagood Apr 20, 2022
d2c7206
Merge pull request #534 from dagood/dev/dagood/port-1.17
dagood Apr 20, 2022
ad4948b
Merge 'microsoft/release-branch.go1.17' into dev/dagood/merge-1.18-fr…
dagood Apr 20, 2022
2443554
Merge pull request #535 from dagood/dev/dagood/merge-1.18-from-1.17
dagood Apr 20, 2022
a246aac
Merge 'microsoft/release-branch.go1.18' into dev/dagood/merge-b1.18-f…
dagood Apr 21, 2022
340eeed
Merge pull request #537 from dagood/dev/dagood/merge-b1.18-from-1.18
dagood Apr 21, 2022
d5d2ab2
handle GOLANG_FIPS
qmuntal Apr 21, 2022
3e4f180
fix ci
qmuntal Apr 21, 2022
63683b5
rename envGoFIPS
qmuntal Apr 22, 2022
9fd9353
Update submodule to latest release-branch.go1.18 (24fcbb98): [release…
Apr 22, 2022
3b59413
Merge pull request #540 from microsoft/dev/auto-sync/microsoft/releas…
Apr 22, 2022
f69722e
Merge pull request #532 from microsoft/dev/qmuntal/fipscheck-go1.18
qmuntal Apr 25, 2022
375d77f
Update submodule to latest release-branch.go1.18 (a286c7dd): [release…
May 4, 2022
58e488a
Merge pull request #543 from microsoft/dev/auto-sync/microsoft/releas…
May 4, 2022
6d30c03
upgrade go-crypto-openssl
qmuntal May 5, 2022
4e6aa39
Merge pull request #546 from microsoft/dev/qmuntal/go1.18-bump-openssl
qmuntal May 6, 2022
e2ded89
Update submodule to latest release-branch.go1.18 (3e79a848): [release…
May 9, 2022
360330e
Merge pull request #550 from microsoft/dev/auto-sync/microsoft/releas…
May 9, 2022
5f9901b
Update submodule to latest release-branch.go1.18 (8ed0e51b): [release…
May 10, 2022
9f9ff20
Resolve patch conflicts: neighboring line changes
dagood May 10, 2022
5f7ae4e
Merge pull request #553 from microsoft/dev/auto-sync/microsoft/releas…
May 10, 2022
1d9d146
Update submodule to latest dev.boringcrypto.go1.18 (dcdb1987): [dev.b…
May 10, 2022
91166fa
Merge branch 'microsoft/release-branch.go1.18' into dev/auto-sync/mic…
dagood May 10, 2022
7afa6c7
Update VERSION to 1.18.2
dagood May 10, 2022
e7afb48
Merge pull request #559 from microsoft/dev/auto-sync/microsoft/dev.bo…
May 10, 2022
669b2bd
Enable gopath_std_vendor test and add specific fix (#516)
dagood May 16, 2022
5fc06c4
Update submodule to latest release-branch.go1.18 (cf5fa2b4): cmd/comp…
May 18, 2022
b2885b0
Merge pull request #572 from microsoft/dev/auto-sync/microsoft/releas…
May 18, 2022
b517ff5
Update submodule to latest release-branch.go1.18 (a34f4207): [release…
May 27, 2022
87a82e5
Merge pull request #578 from microsoft/dev/auto-sync/microsoft/releas…
May 27, 2022
194fb6f
Update submodule to latest release-branch.go1.18 (5a89bb33): [release…
Jun 1, 2022
ce2bcf3
Merge pull request #584 from microsoft/dev/auto-sync/microsoft/releas…
Jun 1, 2022
dd15b53
Update submodule to latest release-branch.go1.18 (4068be56): [release…
Jun 2, 2022
2cb558f
Update submodule to latest dev.boringcrypto.go1.18 (a69db81a): [dev.b…
Jun 2, 2022
b93f208
Merge pull request #591 from microsoft/dev/auto-sync/microsoft/dev.bo…
Jun 2, 2022
7a49566
Merge pull request #590 from microsoft/dev/auto-sync/microsoft/releas…
Jun 2, 2022
28b3acc
Update submodule to latest release-branch.go1.18 (93aab181): [release…
Jul 8, 2022
5c4df1c
Merge pull request #620 from microsoft/dev/auto-sync/microsoft/releas…
Jul 8, 2022
b775e58
Update submodule to latest release-branch.go1.18 (fb979a50): [release…
Jul 12, 2022
579723a
Merge pull request #628 from microsoft/dev/auto-sync/microsoft/releas…
Jul 12, 2022
76a59a3
Update submodule to latest release-branch.go1.18 (88a06f40): [release…
Jul 13, 2022
875e93f
Merge pull request #633 from microsoft/dev/auto-sync/microsoft/releas…
Jul 13, 2022
99fa3d0
Update submodule to latest dev.boringcrypto.go1.18 (913e3713): [dev.b…
Jul 13, 2022
00e8f67
Merge pull request #636 from microsoft/dev/auto-sync/microsoft/dev.bo…
Jul 13, 2022
8805f0c
Update submodule to latest dev.boringcrypto.go1.18 (913e3713): [dev.b…
Jul 13, 2022
ae8300f
Merge pull request #638 from microsoft/dev/auto-sync/microsoft/dev.bo…
Jul 13, 2022
9847e02
Update submodule to latest release-branch.go1.18 (12e00f6c): [release…
Jul 25, 2022
3158d11
Merge pull request #651 from microsoft/dev/auto-sync/microsoft/releas…
Jul 25, 2022
645f71a
Update submodule to latest release-branch.go1.18 (ed50277f): [release…
Jul 27, 2022
0f64400
Merge pull request #659 from microsoft/dev/auto-sync/microsoft/releas…
Jul 27, 2022
024f320
Add Guardian SDL pipeline after internal builds (#649) (#662)
dagood Jul 29, 2022
74287d7
Update submodule to latest release-branch.go1.18 (9240558e): [release…
Jul 29, 2022
751d9b8
Merge pull request #665 from microsoft/dev/auto-sync/microsoft/releas…
Jul 29, 2022
8288bb0
Update submodule to latest release-branch.go1.18 (be59153d): [release…
Aug 1, 2022
ce6b8df
Merge pull request #668 from microsoft/dev/auto-sync/microsoft/releas…
Aug 1, 2022
fef221c
Update submodule to latest release-branch.go1.18 (be59153d): [release…
Aug 1, 2022
6d186da
Update submodule to latest dev.boringcrypto.go1.18 (270c7b73): [dev.b…
Aug 1, 2022
25f68bc
Merge pull request #675 from microsoft/dev/auto-sync/microsoft/releas…
Aug 1, 2022
5f9c97f
Merge pull request #677 from microsoft/dev/auto-sync/microsoft/dev.bo…
Aug 1, 2022
5f4102b
Update submodule to latest release-branch.go1.18 (fcdd099a): [release…
Aug 5, 2022
8c6e12a
Merge pull request #686 from microsoft/dev/auto-sync/microsoft/releas…
Aug 5, 2022
1a9c631
Add Guardian SDL pipeline after internal builds (#649) (#663)
dagood Aug 9, 2022
71e3cae
bump openssl to v0.1.1
qmuntal Aug 10, 2022
08cb8b1
Update submodule to latest release-branch.go1.18 (21befdc0): [release…
Aug 12, 2022
5f488c3
Merge pull request #690 from microsoft/dev/auto-sync/microsoft/releas…
Aug 12, 2022
439733c
Merge pull request #689 from microsoft/dev/qmuntal/go1.18-bump-openss…
qmuntal Aug 16, 2022
a3751b1
Update submodule to latest release-branch.go1.18 (27ced96c): [release…
Aug 22, 2022
5da1e05
Merge pull request #703 from microsoft/dev/auto-sync/microsoft/releas…
Aug 22, 2022
ae055b6
Support test retries in run-builder (#539)
dagood Apr 28, 2022
2782bac
Add FIPS mode builders (#653)
dagood Aug 1, 2022
d9467bd
Rename jobs files to stages
dagood Aug 31, 2022
7e130de
Switch to use stages instead of jobs
dagood Aug 8, 2022
7187829
Add cmdscan to elevate logs to warnings (#687)
dagood Aug 9, 2022
bbaaaea
Use env for cmdscan rules (#691)
dagood Aug 11, 2022
1cf3a12
Merge pull request #696 from microsoft/dev/dagood/int
dagood Aug 16, 2022
8875ff8
Update Linux CI host from 18.04 to 20.04 (#693)
dagood Aug 16, 2022
5b568dc
Add longer timeout on Windows (#701)
dagood Aug 19, 2022
b9dd1d3
Use dnceng/1ES pools; template for common logic (#709)
dagood Aug 26, 2022
10037f3
Merge pull request #715 from microsoft/dev/dagood/pick-1.18
dagood Sep 2, 2022
ea0da54
Merge 'microsoft/release-branch.go1.18' into dev/dagood/merge-1.18
dagood Sep 2, 2022
3347e58
Update public pool names (#719) (#723)
dagood Sep 6, 2022
c148c4c
Update submodule to latest release-branch.go1.18 (170d78d9): [release…
Sep 6, 2022
2b36750
Merge pull request #713 from microsoft/dev/auto-sync/microsoft/releas…
dagood Sep 6, 2022
2908f6a
Update submodule to latest dev.boringcrypto.go1.18 (5fe109f3): [dev.b…
Sep 7, 2022
b1b2566
Merge 'microsoft/release-branch.go1.18' into dev/dagood/merge-1.18
dagood Sep 7, 2022
d334c28
Merge pull request #722 from microsoft/dev/dagood/merge-1.18
dagood Sep 7, 2022
358afd8
Merge pull request #729 from microsoft/dev/auto-sync/microsoft/dev.bo…
dagood Sep 8, 2022
4261d03
Update submodule to latest release-branch.go1.18 (31d06b58): [release…
Sep 12, 2022
77507c1
Merge pull request #735 from microsoft/dev/auto-sync/microsoft/releas…
Sep 12, 2022
5fc809e
Update submodule to latest release-branch.go1.18 (d5a5db3b): [release…
Sep 21, 2022
2c3b2b5
Merge pull request #742 from microsoft/dev/auto-sync/microsoft/releas…
Sep 21, 2022
f719efd
Update submodule to latest release-branch.go1.18 (2b9596cb): [release…
Sep 23, 2022
510b924
Merge pull request #743 from microsoft/dev/auto-sync/microsoft/releas…
Sep 23, 2022
23c3d0d
Update submodule to latest release-branch.go1.18 (9d2c73a9): [release…
Sep 30, 2022
8df7842
Merge pull request #748 from microsoft/dev/auto-sync/microsoft/releas…
Sep 30, 2022
2e74ee2
[microsoft/dev.boringcrypto.go1.18] Update OpenSSL crypto backend (#753)
dagood Oct 4, 2022
8235ab9
Update submodule to latest release-branch.go1.18 (947091d3): [release…
Oct 4, 2022
b5fd248
Merge pull request #761 from microsoft/dev/auto-sync/microsoft/releas…
Oct 4, 2022
961a658
Update submodule to latest dev.boringcrypto.go1.18 (e3d1f0e7): [dev.b…
Oct 4, 2022
6b985ee
Fix patches using 3-way am
dagood Oct 4, 2022
937bc2c
Merge pull request #762 from microsoft/dev/auto-sync/microsoft/dev.bo…
Oct 4, 2022
14a9092
SDL: Remove extracted artifact dir version numbers (#720)
dagood Sep 15, 2022
b825cef
Use AzDO "else" to remove duplicate yml logic (#740)
dagood Sep 20, 2022
79afcc8
Merge pull request #764 from microsoft/dev/dagood/port-1.18
dagood Oct 6, 2022
526ea02
Merge branch 'microsoft/release-branch.go1.18' into dev/dagood/merge-…
dagood Oct 6, 2022
eba2da5
Merge pull request #766 from microsoft/dev/dagood/merge-b1.18-from-1.18
dagood Oct 6, 2022
7fe39e0
Update submodule to latest release-branch.go1.18 (828be9a7): [release…
Oct 24, 2022
53da22d
Merge pull request #783 from microsoft/dev/auto-sync/microsoft/releas…
Oct 24, 2022
e5fa1dc
Update submodule to latest release-branch.go1.18 (2c2952ae): [release…
Oct 26, 2022
d361c52
Merge pull request #786 from microsoft/dev/auto-sync/microsoft/releas…
Oct 26, 2022
4725eac
Update submodule to latest release-branch.go1.18 (156bf3dd): [release…
Nov 1, 2022
0b6fe4a
Merge pull request #789 from microsoft/dev/auto-sync/microsoft/releas…
Nov 1, 2022
7592185
Update submodule to latest dev.boringcrypto.go1.18 (94108e21): [dev.b…
Nov 2, 2022
f2fe871
Merge pull request #791 from microsoft/dev/auto-sync/microsoft/dev.bo…
Nov 2, 2022
4b9b011
Update submodule to latest release-branch.go1.18 (d9c62ce8): [release…
Nov 9, 2022
659c0dd
Merge pull request #794 from microsoft/dev/auto-sync/microsoft/releas…
Nov 9, 2022
ebddd66
Update submodule to latest release-branch.go1.18 (a3dce127): [release…
Nov 11, 2022
cae4c19
Merge pull request #797 from microsoft/dev/auto-sync/microsoft/releas…
Nov 11, 2022
46963ec
Update submodule to latest release-branch.go1.18 (d96e5847): [release…
Nov 14, 2022
6f7b136
Merge pull request #798 from microsoft/dev/auto-sync/microsoft/releas…
Nov 14, 2022
5debfdc
Update submodule to latest release-branch.go1.18 (3115ed23): [release…
Nov 25, 2022
d682c30
Merge pull request #809 from microsoft/dev/auto-sync/microsoft/releas…
Nov 25, 2022
ed67de0
Update submodule to latest release-branch.go1.18 (e727f419): [release…
Dec 2, 2022
86831d8
Merge pull request #813 from microsoft/dev/auto-sync/microsoft/releas…
Dec 2, 2022
55552a1
Update submodule to latest release-branch.go1.18 (0d8a92bd): [release…
Dec 6, 2022
950c3ca
Merge pull request #816 from microsoft/dev/auto-sync/microsoft/releas…
Dec 6, 2022
65cf322
Update submodule to latest dev.boringcrypto.go1.18 (fc1ed37e): [dev.b…
Dec 7, 2022
3971911
Merge pull request #799 from microsoft/dev/auto-sync/microsoft/dev.bo…
Dec 7, 2022
73e1f1b
Update submodule to latest dev.boringcrypto.go1.18 (fc1ed37e): [dev.b…
Dec 7, 2022
c77cfc5
Merge pull request #820 from microsoft/dev/auto-sync/microsoft/dev.bo…
Dec 7, 2022
bb61a7b
Update submodule to latest release-branch.go1.18 (63dd7762): [release…
Dec 12, 2022
9d2cbc8
Merge pull request #821 from microsoft/dev/auto-sync/microsoft/releas…
Dec 12, 2022
3acd572
Update submodule to latest release-branch.go1.18 (f92317e6): [release…
Dec 16, 2022
f4b6e53
Merge pull request #824 from microsoft/dev/auto-sync/microsoft/releas…
Dec 16, 2022
602a4aa
Update submodule to latest release-branch.go1.18 (e6adccb3): [release…
Dec 21, 2022
8a4c80d
Merge pull request #828 from microsoft/dev/auto-sync/microsoft/releas…
Dec 21, 2022
560de7b
Update submodule to latest release-branch.go1.18 (07b6ffb7): [release…
Dec 23, 2022
a0809e8
Merge pull request #830 from microsoft/dev/auto-sync/microsoft/releas…
Dec 23, 2022
381f0a9
Update submodule to latest release-branch.go1.18 (eeaf508d): [release…
Dec 30, 2022
f2ec82e
Merge pull request #834 from microsoft/dev/auto-sync/microsoft/releas…
Dec 30, 2022
ad8023d
Update submodule to latest release-branch.go1.18 (476384ec): [release…
Jan 9, 2023
01f1984
Merge pull request #839 from microsoft/dev/auto-sync/microsoft/releas…
Jan 9, 2023
31cc671
Update submodule to latest release-branch.go1.18 (581603cb): [release…
Jan 10, 2023
68250a5
Merge pull request #842 from microsoft/dev/auto-sync/microsoft/releas…
Jan 10, 2023
e6d49e1
Update submodule to latest dev.boringcrypto.go1.18 (7058c2cb): [dev.b…
Jan 10, 2023
8bf6bf2
Fix patch conflicts with nearby module update
dagood Jan 10, 2023
22495a9
Merge pull request #843 from microsoft/dev/auto-sync/microsoft/dev.bo…
Jan 10, 2023
591360c
Move CodeQL to validation pipeline, keep patch check in Actions (#801…
dagood Jan 11, 2023
797ffdf
Merge 'microsoft/release-branch.go1.18' into dev/dagood/merge-b1.18-f…
dagood Jan 11, 2023
49db609
Merge pull request #846 from microsoft/dev/dagood/merge-b1.18-from-1.18
dagood Jan 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) Microsoft Corporation.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# This job tests that the patches apply cleanly, and nothing else. The goal is to test this as
# quickly as possible. This job is a good signal for devs: GitHub Actions is quick to get an agent,
# so when this job fails, it's easy to see, and clear to the dev that the rest of the PR's jobs
# aren't going to succeed and can be ignored.
#
# Ideally, failure of this job would block the tests from running, because it would be a waste of
# time to hit the patch failure N times. However, the actual tests run in AzDO, so we can't
# reasonably cancel them from here (GitHub Actions).

name: "Test"

on:
pull_request:
branches: [ microsoft/* ]

jobs:
check_patches:
name: Patches Apply Cleanly
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- run: pwsh eng/run.ps1 submodule-refresh -shallow
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go1.18.10
2 changes: 1 addition & 1 deletion eng/_core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ output and stderr redirection to stdout.

The high-level execution flow looks roughly like this when running in CI:

* `eng/pipeline/jobs/run-job.yml`
* `eng/pipeline/jobs/run-stage.yml`
runs:
* `eng/run.ps1 run-builder -builder linux-amd64-test -junitfile [...]`
which runs the Go function:
Expand Down
129 changes: 110 additions & 19 deletions eng/_core/archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,14 @@ func CreateFromSource(source string, output string) error {
// The inclusion of some files depends on the OS/ARCH. If output is specified, its filename must
// follow the pattern "*{GOOS}-{GOARCH}{extension}" so OS and ARCH can be detected. If output is not
// specified, the current Go runtime's OS and ARCH are used.
func CreateFromBuild(source string, output string) error {
//
// If runtime.GOOS and runtime.GOARCH don't match the OS/ARCH of the output file name, the build
// directory is treated as a cross-compiled build of Go.
func CreateFromBuild(source, output string) error {
fmt.Printf("---- Creating Go archive (zip/tarball) from '%v'...\n", source)

if output == "" {
archiveVersion := getBuildID()
archiveExtension := ".tar.gz"
if runtime.GOOS == "windows" {
archiveExtension = ".zip"
}

archiveName := fmt.Sprintf("go.%v.%v-%v%v", archiveVersion, runtime.GOOS, runtime.GOARCH, archiveExtension)
output = filepath.Join(getBinDir(source), archiveName)
output = DefaultBuildOutputPath(source, "", "")
}

// Ensure the target directory exists.
Expand Down Expand Up @@ -111,6 +107,22 @@ func CreateFromBuild(source string, output string) error {
filepath.Join("pkg", "tool", os+"_"+arch, "api.exe"),
}

hostOS := runtime.GOOS
hostArch := runtime.GOARCH
if hostOS != os || hostArch != arch {
fmt.Printf("Handling cross-compile: %v-%v host to %v-%v target\n", hostOS, hostArch, os, arch)
skipPaths = append(skipPaths, []string{
// Don't include binaries that were built for the host toolchain.
filepath.Join("pkg", hostOS+"_"+hostArch),
filepath.Join("pkg", "tool", hostOS+"_"+hostArch),
// Don't include the host binaries: the target binaries are in a subdir.
filepath.Join("bin", "go"),
filepath.Join("bin", "go.exe"),
filepath.Join("bin", "gofmt"),
filepath.Join("bin", "gofmt.exe"),
}...)
}

// Figure out what the race detection syso (precompiled binary) is named for the current
// os/arch. We want to exclude all race syso files other than this one.
targetRuntimeRaceSyso := fmt.Sprintf("race_%v_%v.syso", os, arch)
Expand All @@ -119,17 +131,26 @@ func CreateFromBuild(source string, output string) error {
// data the script has processed to avoid appearing unresponsive.
lastProgressUpdate := time.Now()

filepath.WalkDir(source, func(path string, info fs.DirEntry, err error) error {
// Keep track of target paths added to the archive (key) and the source path that it comes from
// (value). This map ensures no target files are double-added.
addedPaths := make(map[string]string)
// Keep track of dir entries that have been added.
addedDirs := make(map[string]struct{})

err := filepath.WalkDir(source, func(path string, info fs.DirEntry, err error) error {
if err != nil {
fmt.Printf("Failure accessing a path %q: %v\n", path, err)
return err
}

relPath, err := filepath.Rel(source, path)
if err != nil {
panic(err)
return err
}

// targetPath is where relPath should be placed in the output archive, if it belongs inside.
targetPath := relPath

// Walk every dir/file in the root of the repository.
if relPath == "." {
// Ignore the rest of the logic in this func by returning nil early.
Expand Down Expand Up @@ -168,6 +189,11 @@ func CreateFromBuild(source string, output string) error {
}
}

// Include "bin/{OS}_{ARCH}/go" as "bin/go" if this is a cross-compilation build.
if filepath.Dir(relPath) == filepath.Join("bin", os+"_"+arch) {
targetPath = filepath.Join("bin", filepath.Base(relPath))
}

// Skip race detection syso file if it doesn't match the target runtime.
//
// Ignore error: the only possible error is one that says the pattern is invalid (see
Expand All @@ -181,16 +207,52 @@ func CreateFromBuild(source string, output string) error {

if info.IsDir() {
// We want to continue the recursive search in this directory for more files, but we
// don't need to add it to the archive. Return nil to continue.
// don't necessarily want to add this dir to the archive. Return nil to continue.
return nil
}

// At this point, we know "path" is a file that should be included. Add it.
archiver.AddFile(
path,
// Store everything in a root "go" directory to match upstream Go archives.
filepath.Join("go", relPath),
)
if relPath != targetPath {
fmt.Printf("Archiving %#q as %#q\n", relPath, targetPath)
}

if otherSource, ok := addedPaths[targetPath]; ok {
return fmt.Errorf(
"adding archive file %#q from %#q, but target already added from %#q",
targetPath, relPath, otherSource)
}
addedPaths[targetPath] = relPath

// At this point, we know "path" is a file that should be included. Add it. Store everything
// in a root "go" directory to match upstream Go archives.
goTargetPath := filepath.Join("go", targetPath)
if err := archiver.AddFile(path, goTargetPath); err != nil {
return err
}

// Add all dirs that are ancestors of this target file. Even though explicitly added dirs
// aren't necessary to create a valid archive file, upstream does this, so we do too. This
// reduces the diff, e.g. when comparing results with tools like "tar -tf".
dir := goTargetPath
for {
dir = filepath.Dir(dir)
if dir == "." {
break
}
if dir == "/" {
return fmt.Errorf("unexpected rooted target path: %#q", goTargetPath)
}

if _, ok := addedDirs[dir]; ok {
break
}
// Use root repository dir as a stand-in for any filesystem information. This is simpler
// than reproducing the actual dir's path based on the target path, especially
// considering the target path may not match up with a directory that actually exists.
if err := archiver.AddFile(source, dir); err != nil {
return err
}
addedDirs[dir] = struct{}{}
}

// If it's been long enough, log an update on our progress.
now := time.Now()
Expand All @@ -204,6 +266,9 @@ func CreateFromBuild(source string, output string) error {

return nil
})
if err != nil {
return err
}

fmt.Printf(
"Complete! %v (%v kB uncompressed data archived)\n",
Expand All @@ -224,6 +289,31 @@ func CreateFromBuild(source string, output string) error {
return nil
}

// DefaultBuildOutputPath returns the default path to place the output archive given a built Go
// directory. Optionally takes os and arch, or detects their values from the environment and runtime
// if empty string.
func DefaultBuildOutputPath(source, os, arch string) string {
if os == "" {
os = runtime.GOOS
}
if arch == "" {
arch = runtime.GOARCH
}
// Add "v6l" suffix to "arm" arch. More robust handling would be necessary if there were
// multiple "arm" builds with GOARM=6 and GOARM=7, but there are not, and "arm64" obsoletes it.
if arch == "arm" {
arch += "v6l"
}

ext := ".tar.gz"
if runtime.GOOS == "windows" {
ext = ".zip"
}

archiveName := fmt.Sprintf("go.%v.%v-%v%v", getBuildID(), os, arch, ext)
return filepath.Join(getBinDir(source), archiveName)
}

// getBuildID returns BUILD_BUILDNUMBER if defined (e.g. a CI build). Otherwise, "dev".
func getBuildID() string {
archiveVersion := os.Getenv("BUILD_BUILDNUMBER")
Expand All @@ -244,7 +334,8 @@ func getArchivePathRuntime(path string, ext string) (os string, arch string) {
pathNoExt := path[0 : len(path)-len(ext)]
firstRuntimeIndex := strings.LastIndex(pathNoExt, ".") + 1
osArch := strings.Split(pathNoExt[firstRuntimeIndex:], "-")
return osArch[0], osArch[1]
// "v6l" is added to the end of the "arm" arch filename, but is not part of the arch. Remove it.
return osArch[0], strings.TrimSuffix(osArch[1], "v6l")
}

// writeSHA256ChecksumFile reads the content of the file at the given path into a SHA256 hasher, and
Expand Down
40 changes: 31 additions & 9 deletions eng/_core/archive/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,20 @@ func (a *tarGzArchiver) AddFile(filePath string, archivePath string) error {

// tar.FileInfoHeader only takes base name, so set full path here. See FileInfoHeader doc.
header.Name = archivePath
if stat.IsDir() {
header.Name += "/"
}

if err := a.tarWriter.WriteHeader(header); err != nil {
return err
}

n, err := io.Copy(a.tarWriter, fileReader)
a.processedBytes += n
return err
if !stat.IsDir() {
n, err := io.Copy(a.tarWriter, fileReader)
a.processedBytes += n
return err
}
return nil
}

func (a *tarGzArchiver) Close() error {
Expand Down Expand Up @@ -129,20 +135,36 @@ func newZipArchiver(path string) *zipArchiver {
}

func (a *zipArchiver) AddFile(filePath string, archivePath string) error {
archiveFileWriter, err := a.writer.Create(archivePath)
fileReader, err := os.Open(filePath)
if err != nil {
return err
}
defer fileReader.Close()

fileReader, err := os.Open(filePath)
stat, err := fileReader.Stat()
if err != nil {
return err
}
defer fileReader.Close()

n, err := io.Copy(archiveFileWriter, fileReader)
a.processedBytes += n
return err
// Upstream Go uses "/" for archive dir separators, even on Windows.
archivePath = filepath.ToSlash(archivePath)

// Give dirs a trailing forward slash to indicate to the zip writer that it's a dir.
if stat.IsDir() {
archivePath += "/"
}

archiveFileWriter, err := a.writer.Create(archivePath)
if err != nil {
return err
}

if !stat.IsDir() {
n, err := io.Copy(archiveFileWriter, fileReader)
a.processedBytes += n
return err
}
return nil
}

func (a *zipArchiver) Close() error {
Expand Down
Loading