Skip to content

Commit 51193fa

Browse files
authored
Update changelog links and tests after Git tag archival (#1752)
The Git tags for buildpack releases v208 to v265 have been archived (renamed from `vNNN` to `archive/vNNN`) for the reasons in #1699 (similar to the process performed in the past for release v207 and older). As such, the changelog compare URLs need updating, as do the test fixtures that test building an app whose last (cached) build was performed using an older version of the buildpack. Closes #1699. GUS-W-17308840.
1 parent fc44144 commit 51193fa

File tree

5 files changed

+72
-71
lines changed

5 files changed

+72
-71
lines changed

CHANGELOG.md

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,65 +1180,65 @@ Default Python is now latest 2.7.10. Updated pip and Distribute.
11801180
[v269]: https://github.com/heroku/heroku-buildpack-python/compare/v268...v269
11811181
[v268]: https://github.com/heroku/heroku-buildpack-python/compare/v267...v268
11821182
[v267]: https://github.com/heroku/heroku-buildpack-python/compare/v266...v267
1183-
[v266]: https://github.com/heroku/heroku-buildpack-python/compare/v265...v266
1184-
[v265]: https://github.com/heroku/heroku-buildpack-python/compare/v264...v265
1185-
[v264]: https://github.com/heroku/heroku-buildpack-python/compare/v263...v264
1186-
[v263]: https://github.com/heroku/heroku-buildpack-python/compare/v262...v263
1187-
[v262]: https://github.com/heroku/heroku-buildpack-python/compare/v261...v262
1188-
[v261]: https://github.com/heroku/heroku-buildpack-python/compare/v260...v261
1189-
[v260]: https://github.com/heroku/heroku-buildpack-python/compare/v259...v260
1190-
[v259]: https://github.com/heroku/heroku-buildpack-python/compare/v258...v259
1191-
[v258]: https://github.com/heroku/heroku-buildpack-python/compare/v257...v258
1192-
[v257]: https://github.com/heroku/heroku-buildpack-python/compare/v256...v257
1193-
[v256]: https://github.com/heroku/heroku-buildpack-python/compare/v255...v256
1194-
[v255]: https://github.com/heroku/heroku-buildpack-python/compare/v254...v255
1195-
[v254]: https://github.com/heroku/heroku-buildpack-python/compare/v253...v254
1196-
[v253]: https://github.com/heroku/heroku-buildpack-python/compare/v252...v253
1197-
[v252]: https://github.com/heroku/heroku-buildpack-python/compare/v251...v252
1198-
[v251]: https://github.com/heroku/heroku-buildpack-python/compare/v250...v251
1199-
[v250]: https://github.com/heroku/heroku-buildpack-python/compare/v249...v250
1200-
[v249]: https://github.com/heroku/heroku-buildpack-python/compare/v248...v249
1201-
[v248]: https://github.com/heroku/heroku-buildpack-python/compare/v247...v248
1202-
[v247]: https://github.com/heroku/heroku-buildpack-python/compare/v246...v247
1203-
[v246]: https://github.com/heroku/heroku-buildpack-python/compare/v245...v246
1204-
[v245]: https://github.com/heroku/heroku-buildpack-python/compare/v244...v245
1205-
[v244]: https://github.com/heroku/heroku-buildpack-python/compare/v243...v244
1206-
[v243]: https://github.com/heroku/heroku-buildpack-python/compare/v242...v243
1207-
[v242]: https://github.com/heroku/heroku-buildpack-python/compare/v241...v242
1208-
[v241]: https://github.com/heroku/heroku-buildpack-python/compare/v240...v241
1209-
[v240]: https://github.com/heroku/heroku-buildpack-python/compare/v239...v240
1210-
[v239]: https://github.com/heroku/heroku-buildpack-python/compare/v238...v239
1211-
[v238]: https://github.com/heroku/heroku-buildpack-python/compare/v237...v238
1212-
[v237]: https://github.com/heroku/heroku-buildpack-python/compare/v236...v237
1213-
[v236]: https://github.com/heroku/heroku-buildpack-python/compare/v235...v236
1214-
[v235]: https://github.com/heroku/heroku-buildpack-python/compare/v234...v235
1215-
[v234]: https://github.com/heroku/heroku-buildpack-python/compare/v233...v234
1216-
[v233]: https://github.com/heroku/heroku-buildpack-python/compare/v232...v233
1217-
[v232]: https://github.com/heroku/heroku-buildpack-python/compare/v231...v232
1218-
[v231]: https://github.com/heroku/heroku-buildpack-python/compare/v230...v231
1219-
[v230]: https://github.com/heroku/heroku-buildpack-python/compare/v229...v230
1220-
[v229]: https://github.com/heroku/heroku-buildpack-python/compare/v228...v229
1221-
[v228]: https://github.com/heroku/heroku-buildpack-python/compare/v227...v228
1222-
[v227]: https://github.com/heroku/heroku-buildpack-python/compare/v226...v227
1223-
[v226]: https://github.com/heroku/heroku-buildpack-python/compare/v225...v226
1224-
[v225]: https://github.com/heroku/heroku-buildpack-python/compare/v224...v225
1225-
[v224]: https://github.com/heroku/heroku-buildpack-python/compare/v223...v224
1226-
[v223]: https://github.com/heroku/heroku-buildpack-python/compare/v222...v223
1227-
[v222]: https://github.com/heroku/heroku-buildpack-python/compare/v221...v222
1228-
[v221]: https://github.com/heroku/heroku-buildpack-python/compare/v220...v221
1229-
[v220]: https://github.com/heroku/heroku-buildpack-python/compare/v219...v220
1230-
[v219]: https://github.com/heroku/heroku-buildpack-python/compare/v218...v219
1231-
[v218]: https://github.com/heroku/heroku-buildpack-python/compare/v217...v218
1232-
[v217]: https://github.com/heroku/heroku-buildpack-python/compare/v216...v217
1233-
[v216]: https://github.com/heroku/heroku-buildpack-python/compare/v215...v216
1234-
[v215]: https://github.com/heroku/heroku-buildpack-python/compare/v214...v215
1235-
[v214]: https://github.com/heroku/heroku-buildpack-python/compare/v213...v214
1236-
[v213]: https://github.com/heroku/heroku-buildpack-python/compare/v212...v213
1237-
[v212]: https://github.com/heroku/heroku-buildpack-python/compare/v211...v212
1238-
[v211]: https://github.com/heroku/heroku-buildpack-python/compare/v210...v211
1239-
[v210]: https://github.com/heroku/heroku-buildpack-python/compare/v209...v210
1240-
[v209]: https://github.com/heroku/heroku-buildpack-python/compare/v208...v209
1241-
[v208]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v207...v208
1183+
[v266]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v265...v266
1184+
[v265]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v264...archive/v265
1185+
[v264]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v263...archive/v264
1186+
[v263]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v262...archive/v263
1187+
[v262]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v261...archive/v262
1188+
[v261]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v260...archive/v261
1189+
[v260]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v259...archive/v260
1190+
[v259]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v258...archive/v259
1191+
[v258]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v257...archive/v258
1192+
[v257]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v256...archive/v257
1193+
[v256]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v255...archive/v256
1194+
[v255]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v254...archive/v255
1195+
[v254]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v253...archive/v254
1196+
[v253]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v252...archive/v253
1197+
[v252]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v251...archive/v252
1198+
[v251]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v250...archive/v251
1199+
[v250]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v249...archive/v250
1200+
[v249]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v248...archive/v249
1201+
[v248]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v247...archive/v248
1202+
[v247]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v246...archive/v247
1203+
[v246]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v245...archive/v246
1204+
[v245]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v244...archive/v245
1205+
[v244]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v243...archive/v244
1206+
[v243]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v242...archive/v243
1207+
[v242]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v241...archive/v242
1208+
[v241]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v240...archive/v241
1209+
[v240]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v239...archive/v240
1210+
[v239]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v238...archive/v239
1211+
[v238]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v237...archive/v238
1212+
[v237]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v236...archive/v237
1213+
[v236]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v235...archive/v236
1214+
[v235]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v234...archive/v235
1215+
[v234]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v233...archive/v234
1216+
[v233]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v232...archive/v233
1217+
[v232]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v231...archive/v232
1218+
[v231]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v230...archive/v231
1219+
[v230]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v229...archive/v230
1220+
[v229]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v228...archive/v229
1221+
[v228]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v227...archive/v228
1222+
[v227]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v226...archive/v227
1223+
[v226]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v225...archive/v226
1224+
[v225]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v224...archive/v225
1225+
[v224]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v223...archive/v224
1226+
[v223]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v222...archive/v223
1227+
[v222]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v221...archive/v222
1228+
[v221]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v220...archive/v221
1229+
[v220]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v219...archive/v220
1230+
[v219]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v218...archive/v219
1231+
[v218]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v217...archive/v218
1232+
[v217]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v216...archive/v217
1233+
[v216]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v215...archive/v216
1234+
[v215]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v214...archive/v215
1235+
[v214]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v213...archive/v214
1236+
[v213]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v212...archive/v213
1237+
[v212]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v211...archive/v212
1238+
[v211]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v210...archive/v211
1239+
[v210]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v209...archive/v210
1240+
[v209]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v208...archive/v209
1241+
[v208]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v207...archive/v208
12421242
[v207]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v206...archive/v207
12431243
[v206]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v205...archive/v206
12441244
[v205]: https://github.com/heroku/heroku-buildpack-python/compare/archive/v204...archive/v205

spec/hatchet/pipenv_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@
322322
end
323323

324324
context 'when the Pipenv and Python versions have changed since the last build' do
325-
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v253'] }
325+
# TODO: Bump this buildpack version the next time we update the Pipenv version.
326+
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#archive/v253'] }
326327
let(:app) { Hatchet::Runner.new('spec/fixtures/pipenv_basic', buildpacks:) }
327328

328329
it 'clears the cache before installing' do

spec/hatchet/poetry_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
end
6363

6464
context 'when the Poetry and Python versions have changed since the last build' do
65-
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v268'] }
65+
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v274'] }
6666
let(:app) { Hatchet::Runner.new('spec/fixtures/poetry_basic', buildpacks:) }
6767

6868
it 'clears the cache before installing' do
@@ -74,8 +74,8 @@
7474
remote: -----> Python app detected
7575
remote: -----> Using Python 3.13 specified in .python-version
7676
remote: -----> Discarding cache since:
77-
remote: - The Python version has changed from 3.13.0 to #{LATEST_PYTHON_3_13}
78-
remote: - The Poetry version has changed from 1.8.4 to #{POETRY_VERSION}
77+
remote: - The Python version has changed from 3.13.1 to #{LATEST_PYTHON_3_13}
78+
remote: - The Poetry version has changed from 1.8.5 to #{POETRY_VERSION}
7979
remote: -----> Installing Python #{LATEST_PYTHON_3_13}
8080
remote: -----> Installing Poetry #{POETRY_VERSION}
8181
remote: -----> Installing dependencies using 'poetry sync --only main'

spec/hatchet/python_version_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# - If no Python version is specified, the same major version as the
5757
# last build is used (sticky versioning).
5858
# - Changes in the pip version are handled correctly.
59-
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v257'] }
59+
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v267'] }
6060

6161
it 'builds with the same Python version as the last build' do
6262
app.deploy do |app|
@@ -68,7 +68,7 @@
6868
remote: -----> No Python version was specified. Using the same major version as the last build: Python 3.12
6969
remote: To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
7070
remote: -----> Discarding cache since:
71-
remote: - The Python version has changed from 3.12.6 to #{LATEST_PYTHON_3_12}
71+
remote: - The Python version has changed from 3.12.7 to #{LATEST_PYTHON_3_12}
7272
remote: - The pip version has changed from 24.0 to #{PIP_VERSION}
7373
remote: -----> Installing Python #{LATEST_PYTHON_3_12}
7474
remote: -----> Installing pip #{PIP_VERSION}, setuptools #{SETUPTOOLS_VERSION} and wheel #{WHEEL_VERSION}

spec/hatchet/stack_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
RSpec.describe 'Stack changes' do
66
context 'when the stack is upgraded from Heroku-22 to Heroku-24', stacks: %w[heroku-22] do
7-
# This test performs an initial build using an older buildpack version, followed
8-
# by a build using the current version. This ensures that the current buildpack
9-
# can successfully read the stack metadata written to the build cache in the past.
10-
# The buildpack version chosen is one which had an older default Python version, so
11-
# we can also prove that clearing the cache didn't lose the Python version metadata.
12-
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#v250'] }
7+
# This test performs an initial build using an older buildpack version, followed by a build
8+
# using the current version. This ensures that the current buildpack can successfully read
9+
# the stack metadata written to the build cache in the past. The buildpack version chosen is
10+
# the oldest to support Heroku-24, and which had an older default Python version so we can
11+
# also prove that clearing the cache didn't lose the sticky Python version metadata.
12+
let(:buildpacks) { ['https://github.com/heroku/heroku-buildpack-python#archive/v250'] }
1313
let(:app) { Hatchet::Runner.new('spec/fixtures/python_version_unspecified', buildpacks:) }
1414

1515
it 'clears the cache before installing again whilst preserving the sticky Python version' do

0 commit comments

Comments
 (0)