Skip to content

Commit

Permalink
format not solvable error messages (#1886)
Browse files Browse the repository at this point in the history
* format not solvable error messages

* one block per platform

* missing closing tag

* align left for prettier lines

* do not use summary (toggle button missing in this style)

* do not generate URL if none is passed; pre-commit
  • Loading branch information
jaimergp authored Oct 10, 2023
1 parent c021530 commit f48ca08
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions conda_forge_tick/auto_tick.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import typing
import tqdm
from subprocess import CalledProcessError
from textwrap import dedent
from typing import (
Optional,
MutableSequence,
Expand Down Expand Up @@ -363,11 +364,20 @@ def run(
verbosity=2,
)
if not solvable:
_solver_err_str = "not solvable ({}): {}: {}".format(
('<a href="' + os.getenv("CIRCLE_BUILD_URL", "") + '">bot CI job</a>'),
base_branch,
sorted(set(errors)),
)
ci_url = os.getenv("CIRCLE_BUILD_URL")
ci_url = f"(<a href='{ci_url}'>bot CI job</a>)" if ci_url else ""
_solver_err_str = dedent(
f"""
not solvable {ci_url} @ {base_branch}
<details>
<div align="left">
<pre>
{'</pre><pre>'.join(sorted(set(errors)))}
</pre>
</div>
</details>
""",
).strip()

if isinstance(migrator, Version):
with feedstock_ctx.attrs["version_pr_info"] as vpri:
Expand Down

0 comments on commit f48ca08

Please sign in to comment.