Autotests failure in some non-english locales

Open
#147 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
git, ruby

Research direction

The issue points to autotests in spec and includes an attached sample patch; start by inspecting those specs and the Git commands whose output is asserted. Run the tests under a non-English locale, then verify the suite passes without depending on localized Git messages, using the proposed locale or machine-readable approach.

Written by the indexing model from the issue text.

Description

Autotests in spec do some tests and analyze result (output) of git command.
But on some locales there are localized messages from git and those tests fail.

One example (looks like this is French locale):
https://reproducible.debian.net/logs/unstable/amd64/homesick_1.1.3-1.build2.log.gz

As workaround you could set locale to C during the test or use machine-parsable git commands like "git status --porcelain".

Sample patch is attached.
03-fix-locale-spec-tests.patch.txt

Dominant language
Ruby
Stars
2.5k
Forks
128
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from technicalpickles/homesick

All issues in technicalpickles/homesick

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.