#12483 Koji builds are failing because of autospec
Closed: Fixed 2 months ago by nphilipp. Opened 2 months ago by msuchy.

Just few moments ago, new builds of package that has %autochangelog start failing with

Traceback (most recent call last):
  File "/usr/bin/rpmautospec", line 12, in <module>
    sys.exit(cli.cli())
             ~~~~~~~^^
  File "/usr/share/rpmautospec-fallback/rpmautospec/cli/minimal.py", line 43, in cli
    method(**method_kwargs)
    ~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/share/rpmautospec-fallback/rpmautospec/cli/minimal.py", line 30, in process_distgit
    do_process_distgit(spec_or_path=spec_or_path, target=target)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/rpmautospec-fallback/rpmautospec/subcommands/process_distgit.py", line 133, in do_process_distgit
    "\n\n".join(entry.format() for entry in result["changelog"]),
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/rpmautospec-fallback/rpmautospec/subcommands/process_distgit.py", line 133, in <genexpr>
    "\n\n".join(entry.format() for entry in result["changelog"]),
                ~~~~~~~~~~~~^^
  File "/usr/share/rpmautospec-fallback/rpmautospec/changelog.py", line 113, in format
    with TimeLocaleManager("en_US"):
         ~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/share/rpmautospec-fallback/rpmautospec/changelog.py", line 21, in __enter__
    locale.setlocale(locale.LC_TIME, self.name)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/locale.py", line 615, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

See the example https://koji.fedoraproject.org/koji/taskinfo?taskID=131282587 (see build.log)


@nphilipp Could you check this out? Is this related to latest rpmautospec changes?

Metadata Update from @zlopez:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: Needs investigation, dev, high-gain

2 months ago

Metadata Update from @nphilipp:
- Issue assigned to nphilipp

2 months ago

@nphilipp Could you check this out? Is this related to latest rpmautospec changes?

Yes it is. I’m untagging the respective new builds.

More like, I’ve attempted to:

nils@gibbon:~> koji latest-build f43 python-rpmautospec
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
python-rpmautospec-0.8.0-2.fc43           f43                   nphilipp
nils@gibbon:~> koji untag-build f43 python-rpmautospec-0.8.0-2.fc43
2025-04-08 16:02:17,242 [ERROR] koji: ActionNotAllowed: tag requires autosign permission
nils@gibbon:~>

I notified @jnsamyak who untags them.

Tue Apr  8 19:52:09 2025 python-rpmautospec-0.8.0-2.fc43 untagged from f43 by jnsamyak
Tue Apr  8 20:00:00 2025 python-rpmautospec-0.8.0-1.fc43 untagged from f43 by jnsamyak

@msuchy builds should be back to normal.

Thanks again @jnsamyak!

Metadata Update from @nphilipp:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 months ago

Metadata Update from @nphilipp:
- Issue tagged with: low-trouble

2 months ago

Log in to comment on this ticket.

Metadata
Boards 1
dev Status: Backlog