Skip to content

Commit 6c518cc

Browse files
committed
More fallout from master->main
1 parent db50ddd commit 6c518cc

12 files changed

+20
-16
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ is a mess. Hopefully this will change with time, and ideas to improve it are wel
2424
to `/opt/compiler-explorer/...`.
2525
* Submit a Pull Request.
2626

27-
If you have any questions, don't hesitate: [Contact us](https://github.com/mattgodbolt/compiler-explorer/blob/master/README.md#contact-us).
27+
If you have any questions, don't hesitate: [Contact us](https://github.com/mattgodbolt/compiler-explorer/blob/main/README.md#contact-us).

admin/503.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<meta property="og:title" content="Compiler Explorer">
1111
<meta name="twitter:card" content="summary">
1212
<meta name="twitter:site" content="@CompileExplore">
13-
<meta property="og:image" content="https://github.com/compiler-explorer/infra/blob/master/logo/favicon.png?raw=true">
14-
<meta property="og:image:secure_url" content="https://github.com/compiler-explorer/infra/blob/master/logo/favicon.png?raw=true">
13+
<meta property="og:image" content="https://github.com/compiler-explorer/infra/blob/main/logo/favicon.png?raw=true">
14+
<meta property="og:image:secure_url" content="https://github.com/compiler-explorer/infra/blob/main/logo/favicon.png?raw=true">
1515
<meta property="og:image:type" content="image/png">
1616
<meta property="og:image:width" content="145">
1717
<meta property="og:image:height" content="145">

admin/builds.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="knockout.simpleGrid.3.0.js"></script>
88
<script src="builds.js"></script>
99
<link rel="icon" type="image/png"
10-
href="https://github.com/compiler-explorer/infra/blob/master/logo/favicon.png?raw=true"/>
10+
href="https://github.com/compiler-explorer/infra/blob/main/logo/favicon.png?raw=true"/>
1111
<style>
1212
html, body {
1313
background-color: #EEEEEE;

admin/libraries.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script src="knockout-3.4.2.js"></script>
77
<script src="knockout.simpleGrid.3.0.js"></script>
88
<link rel="icon" type="image/png"
9-
href="https://github.com/compiler-explorer/infra/blob/master/logo/favicon.png?raw=true"/>
9+
href="https://github.com/compiler-explorer/infra/blob/main/logo/favicon.png?raw=true"/>
1010
<style>
1111
html, body {
1212
background-color: #EEEEEE;

bin/lib/amazon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def get_current_key(args):
181181

182182
def get_all_current():
183183
versions = []
184-
for branch in ['release', 'beta', 'master']:
184+
for branch in ['release', 'beta', 'main', 'master']: # TODO, remove master and the builds therein
185185
try:
186186
o = s3_client.get_object(
187187
Bucket='compiler-explorer',

bin/lib/amazon_properties.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_properties_compilers_and_libraries(language, logger):
2424
_libraries = defaultdict(lambda: [])
2525

2626
encoded_language = urllib.parse.quote(language)
27-
url = f'https://raw.githubusercontent.com/compiler-explorer/compiler-explorer/master/etc/config/{encoded_language}.amazon.properties'
27+
url = f'https://raw.githubusercontent.com/compiler-explorer/compiler-explorer/main/etc/config/{encoded_language}.amazon.properties'
2828
lines = []
2929
with tempfile.TemporaryFile() as fd:
3030
request = requests.get(url, stream=True)

bin/lib/ce.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -430,13 +430,17 @@ def builds_set_current_cmd(args):
430430

431431
def builds_rm_old_cmd(args):
432432
current = get_all_current()
433-
all_releases = get_releases()
434-
max_build = max(x.version for x in all_releases)
433+
max_builds = {}
434+
for release in get_releases():
435+
if release.version not in max_builds:
436+
max_builds[release.version.source] = release.version
437+
else:
438+
max_builds[release.version.source] = max(release.version, max_builds[release.version.source])
435439
for release in get_releases():
436440
if release.key in current:
437441
print("Skipping {} as it is a current version".format(release))
438442
else:
439-
age = max_build - release.version
443+
age = max_builds[release.version.source].number - release.version.number
440444
if age > args['age']:
441445
if args['dry_run']:
442446
print("Would remove build {}".format(release))

packer-local.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"apt-get -y update",
4545
"apt-get -y install git sudo curl rsyslog psmisc systemd",
4646
"cd /infra",
47-
"env PACKER_SETUP=yes bash setup.sh --updated master 2>&1 | tee /tmp/setup.log"
47+
"env PACKER_SETUP=yes bash setup.sh --updated main 2>&1 | tee /tmp/setup.log"
4848
]
4949
}
5050
]

packer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
],
4343

4444
"variables": {
45-
"BRANCH": "master",
45+
"BRANCH": "main",
4646
"MY_ACCESS_KEY": "",
4747
"MY_SECRET_KEY": ""
4848
},

windows/Msvce.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ then pass this to only do a build of the existing output directory.
150150
.PARAMETER GitCommit
151151
152152
The specific hash of compiler-explorer to use for building the image. Use
153-
'master' for the latest on github. Any value is okay to use for testing, but
153+
'main' for the latest on github. Any value is okay to use for testing, but
154154
images uploaded to production server need to be registered with
155155
https://ossmsft.visualstudio.com/_oss
156156

windows/files/cookie_policy.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2>Compiler Explorer Cookie Policy</h2>
1515
We follow the Microsoft privacy policy found at
1616
<a href="http://privacy.microsoft.com" target="_blank" rel="noreferrer noopener">http://privacy.microsoft.com</a>
1717
as well as the privacy policy found in the main Compiler Explorer
18-
<a href="https://github.com/mattgodbolt/compiler-explorer/blob/master/static/policies/" target="_blank"
18+
<a href="https://github.com/mattgodbolt/compiler-explorer/blob/main/static/policies/" target="_blank"
1919
rel="noreferrer noopener">GitHub project page</a>
2020
</p>
2121

windows/files/privacy_policy.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ <h2>Compiler Explorer Privacy Policy</h2>
1515
Your privacy is important to us, we follow the Microsoft privacy policy found at
1616
<a href="http://privacy.microsoft.com" target="_blank" rel="noreferrer noopener">http://privacy.microsoft.com</a>
1717
as well as the privacy policy found in the main Compiler Explorer
18-
<a href="https://github.com/mattgodbolt/compiler-explorer/blob/master/static/policies/" target="_blank"
18+
<a href="https://github.com/mattgodbolt/compiler-explorer/blob/main/static/policies/" target="_blank"
1919
rel="noreferrer noopener">GitHub project page</a>
2020
</p>
2121

2222
<p>
2323
Compiler Explorer was created by and is primarily administrated by
2424
<a href="mailto:[email protected]">Matt Godbolt</a>,
2525
along with a number of volunteers (including, but not limited to those listed in our "<a
26-
href="https://github.com/mattgodbolt/compiler-explorer/blob/master/AUTHORS.md" target="_blank"
26+
href="https://github.com/mattgodbolt/compiler-explorer/blob/main/AUTHORS.md" target="_blank"
2727
rel="noreferrer noopener">Authors</a>" documentation).
2828
It is run on a best-effort basis, and is not a commercial product. We do our best
2929
to keep your data safe, but welcome help from the community: See our

0 commit comments

Comments
 (0)