Patch #44712 ยป 0001-Update-GitHub-Actions-workflows-to-Ubuntu-26.04.patch
| .github/actions/setup-redmine/action.yml | ||
|---|---|---|
| 19 | 19 |
sudo apt-get install --yes --quiet ghostscript gsfonts locales subversion bzr cvs mercurial imagemagick pandoc |
| 20 | 20 |
sudo locale-gen en_US # for bazaar non ascii test |
| 21 | 21 | |
| 22 |
- name: Allow imagemagick to read PDF files |
|
| 23 |
shell: bash |
|
| 24 |
run: | |
|
| 25 |
echo '<policymap>' > policy.xml |
|
| 26 |
echo '<policy domain="coder" rights="read | write" pattern="PDF" />' >> policy.xml |
|
| 27 |
echo '</policymap>' >> policy.xml |
|
| 28 |
sudo rm /etc/ImageMagick-6/policy.xml |
|
| 29 |
sudo mv policy.xml /etc/ImageMagick-6/policy.xml |
|
| 30 | ||
| 31 | 22 |
- if: ${{ inputs.db-type == 'sqlite3' }}
|
| 32 | 23 |
name: Prepare test database for sqlite3 |
| 33 | 24 |
shell: bash |
| .github/workflows/linters.yml | ||
|---|---|---|
| 5 | 5 | |
| 6 | 6 |
jobs: |
| 7 | 7 |
lint: |
| 8 |
runs-on: ubuntu-latest
|
|
| 8 |
runs-on: ubuntu-26.04
|
|
| 9 | 9 | |
| 10 | 10 |
steps: |
| 11 | 11 |
- name: Checkout code |
| ... | ... | |
| 21 | 21 |
run: bundle exec rubocop --parallel |
| 22 | 22 | |
| 23 | 23 |
stylelint: |
| 24 |
runs-on: ubuntu-latest
|
|
| 24 |
runs-on: ubuntu-26.04
|
|
| 25 | 25 | |
| 26 | 26 |
steps: |
| 27 | 27 |
- name: Checkout code |
| ... | ... | |
| 39 | 39 |
run: npx stylelint "app/assets/stylesheets/**/*.css" |
| 40 | 40 | |
| 41 | 41 |
bundle-audit: |
| 42 |
runs-on: ubuntu-latest
|
|
| 42 |
runs-on: ubuntu-26.04
|
|
| 43 | 43 | |
| 44 | 44 |
steps: |
| 45 | 45 |
- name: Checkout code |
| .github/workflows/tests.yml | ||
|---|---|---|
| 6 | 6 |
jobs: |
| 7 | 7 |
tests: |
| 8 | 8 |
name: test ${{matrix.db}} ruby-${{ matrix.ruby }}
|
| 9 |
runs-on: ubuntu-latest
|
|
| 9 |
runs-on: ubuntu-26.04
|
|
| 10 | 10 | |
| 11 | 11 |
strategy: |
| 12 | 12 |
matrix: |
| ... | ... | |
| 69 | 69 | |
| 70 | 70 |
system-tests: |
| 71 | 71 |
name: system test |
| 72 |
runs-on: ubuntu-latest
|
|
| 72 |
runs-on: ubuntu-26.04
|
|
| 73 | 73 | |
| 74 | 74 |
steps: |
| 75 | 75 |
- name: Checkout code |
| test/unit/repository_bazaar_test.rb | ||
|---|---|---|
| 181 | 181 | |
| 182 | 182 |
if File.directory?(REPOSITORY_PATH_NON_ASCII) && RUN_LATIN1_OUTPUT_TEST |
| 183 | 183 |
# https://www.redmine.org/issues/42024 |
| 184 |
def skip_bzr_failure_on_ubuntu24
|
|
| 184 |
def skip_bzr_failure_on_ubuntu |
|
| 185 | 185 |
return unless File.exist?('/etc/os-release')
|
| 186 | 186 | |
| 187 | 187 |
os_release = File.read('/etc/os-release')
|
| 188 | 188 |
name = os_release[/^NAME="(.+?)"$/, 1] |
| 189 | 189 |
version = os_release[/^VERSION_ID="(.+?)"$/, 1] |
| 190 | 190 | |
| 191 |
if name == 'Ubuntu' && version == '24.04'
|
|
| 192 |
skip 'bzr command fails on Ubuntu 24.04, causing this test to fail'
|
|
| 191 |
if name == 'Ubuntu' && %w(24.04 26.04).include?(version)
|
|
| 192 |
skip "bzr command fails on Ubuntu #{version}, causing this test to fail"
|
|
| 193 | 193 |
end |
| 194 | 194 |
end |
| 195 | 195 | |
| 196 | 196 |
def test_cat_latin1_path |
| 197 |
skip_bzr_failure_on_ubuntu24
|
|
| 197 |
skip_bzr_failure_on_ubuntu |
|
| 198 | 198 | |
| 199 | 199 |
latin1_repo = create_latin1_repo |
| 200 | 200 |
buf = |
| ... | ... | |
| 216 | 216 |
end |
| 217 | 217 | |
| 218 | 218 |
def test_annotate_latin1_path |
| 219 |
skip_bzr_failure_on_ubuntu24
|
|
| 219 |
skip_bzr_failure_on_ubuntu |
|
| 220 | 220 | |
| 221 | 221 |
latin1_repo = create_latin1_repo |
| 222 | 222 |
ann1 = |
| ... | ... | |
| 238 | 238 |
end |
| 239 | 239 | |
| 240 | 240 |
def test_diff_latin1_path |
| 241 |
skip_bzr_failure_on_ubuntu24
|
|
| 241 |
skip_bzr_failure_on_ubuntu |
|
| 242 | 242 | |
| 243 | 243 |
latin1_repo = create_latin1_repo |
| 244 | 244 |
diff1 = |
| ... | ... | |
| 251 | 251 |
end |
| 252 | 252 | |
| 253 | 253 |
def test_entries_latin1_path |
| 254 |
skip_bzr_failure_on_ubuntu24
|
|
| 254 |
skip_bzr_failure_on_ubuntu |
|
| 255 | 255 | |
| 256 | 256 |
latin1_repo = create_latin1_repo |
| 257 | 257 |
entries = latin1_repo.entries("test-#{CHAR_1_UTF8_HEX}-dir", 2)
|
| ... | ... | |
| 263 | 263 |
end |
| 264 | 264 | |
| 265 | 265 |
def test_entry_latin1_path |
| 266 |
skip_bzr_failure_on_ubuntu24
|
|
| 266 |
skip_bzr_failure_on_ubuntu |
|
| 267 | 267 | |
| 268 | 268 |
latin1_repo = create_latin1_repo |
| 269 | 269 |
["test-#{CHAR_1_UTF8_HEX}-dir",
|
| ... | ... | |
| 283 | 283 |
end |
| 284 | 284 | |
| 285 | 285 |
def test_changeset_latin1_path |
| 286 |
skip_bzr_failure_on_ubuntu24
|
|
| 286 |
skip_bzr_failure_on_ubuntu |
|
| 287 | 287 | |
| 288 | 288 |
latin1_repo = create_latin1_repo |
| 289 | 289 |
assert_equal 0, latin1_repo.changesets.count |