Project

General

Profile

Actions

Defect #42024

open

RepositoryBazaarTest fails

Added by Katsuya HIDAKA 1 day ago. Updated about 23 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

The CI started failing in bin/rails test test/unit/repository_bazaar_test.rb after r23408.
https://github.com/redmine/redmine/actions/runs/12404268715/job/34629160922

Run bin/rails test test/unit/repository_bazaar_test.rb

Run options: --seed 27734

# Running:

E

Error:
RepositoryBazaarTest#test_annotate_latin1_path:
NoMethodError: undefined method `lines' for nil:NilClass

        assert_equal 2, ann1.lines.size
                            ^^^^^^
    test/unit/repository_bazaar_test.rb:194:in `test_annotate_latin1_path'

bin/rails test test/unit/repository_bazaar_test.rb:188

E

Error:
RepositoryBazaarTest#test_entry_latin1_path:
NoMethodError: undefined method `path' for nil:NilClass

                       entry.path
                            ^^^^^
    test/unit/repository_bazaar_test.rb:242:in `block in test_entry_latin1_path'
    test/unit/repository_bazaar_test.rb:239:in `each'
    test/unit/repository_bazaar_test.rb:239:in `test_entry_latin1_path'

bin/rails test test/unit/repository_bazaar_test.rb:229

(snip)

However, rerunning the CI on r23407, the commit immediately before r23408, resulted in the same failure, suggesting that r23408 is not the cause of the issue.

Actions #1

Updated by Katsuya HIDAKA about 23 hours ago

The failing test is located in the .github/workflows/tests.yml at the following section:
https://github.com/redmine/redmine/blob/145db007425dd8b1911f63480fb96985ecca09be/.github/workflows/tests.yml#L103-L108

      - name: Run bazaar non ascii test
        env:
          LANG: en_US.ISO8859-1
          LC_ALL: en_US.ISO8859-1
        run: |
          bin/rails test test/unit/repository_bazaar_test.rb
Actions #2

Updated by Mizuki ISHIKAWA about 23 hours ago

It seems that the bzr command execution is failing for the path tmp/test/bazaar_repository/non_ascii/test-Ü-dir/test-Ü-2.txt when running tests ( ex: https://github.com/redmine/redmine/blob/master/test/unit/repository_bazaar_test.rb#L192 ).
I suspect this might be caused by the recent version upgrade of bzr.

Actions

Also available in: Atom PDF