Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with unknown git revision #4633

Merged

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented May 2, 2022

TEST_GIT_HASH or NEEDLES_GIT_HASH might contain UNKNOWN.
To avoid error messages in the log, check and return early.

I moved the git_log_diff mocking to the subtests because it was global and
in my new test I actually did not want to mock that method.

Issue: https://progress.opensuse.org/issues/110389

TEST_GIT_HASH or NEEDLES_GIT_HASH might contain UNKNOWN.
To avoid error messages in the log, check and return early.

I moved the git_log_diff mocking to the subtests because it was global and
in my new test I actually did *not* want to mock that method.

Issue: https://progress.opensuse.org/issues/110389
@codecov
Copy link

codecov bot commented May 2, 2022

Codecov Report

Merging #4633 (ee16104) into master (9313003) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #4633   +/-   ##
=======================================
  Coverage   98.04%   98.05%           
=======================================
  Files         374      374           
  Lines       34425    34440   +15     
=======================================
+ Hits        33751    33769   +18     
+ Misses        674      671    -3     
Impacted Files Coverage Δ
lib/OpenQA/Schema/Result/Jobs.pm 98.68% <100.00%> (+0.28%) ⬆️
t/10-jobs.t 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9313003...ee16104. Read the comment docs.

@mergify mergify bot merged commit 8ae7833 into os-autoinst:master May 2, 2022
@perlpunk perlpunk deleted the deal-with-unknown-git-revision branch May 3, 2022 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants