DUNE-DAQ / DUNE-DAQ/runconftools

[Bug]: Incorrect fail state if the base repo doesn't exist/cannot be accessed

Open Beginner friendly
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
0
Forks
0
Avg merge
3d 14h
Merged PRs (30d)
3

Description

Description

Currently when the base repo cannot be found either through not being provided or from git permissions issues this does not get caught usefully.

Instead finally block causes self.repo to be None/not set which results in a confusing crash

None type has no attribute remotes

https://github.com/DUNE-DAQ/runconftools/blob/develop/src/runconftools/ConfPool.py#L26-L37.

Fix to is to simply remove the finally statement as any other error will be meaningfully caught with this removed.

Steps to reproduce
  1. Provide any incorrect base repo at initialisation
Version and environment

[All DAQ versions since release]

Impact

Small/Isolated

Anything else?

No response

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.

Research direction

Open src/runconftools/ConfPool.py at lines 26-37 and trace initialization with a missing or inaccessible base repository. Reproduce the issue using an incorrect base repo and confirm the resulting error is meaningful rather than a NoneType remotes crash. Done means the failure is handled clearly for both omitted and inaccessible repositories.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
82/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.