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

[BUG]: Error during execution of demonstration scenario. #565

Closed
1 task done
florentfgrs opened this issue Oct 7, 2024 · 0 comments · Fixed by #566
Closed
1 task done

[BUG]: Error during execution of demonstration scenario. #565

florentfgrs opened this issue Oct 7, 2024 · 0 comments · Fixed by #566
Assignees
Labels
triage To be qualified, waiting for a project manager

Comments

@florentfgrs
Copy link
Contributor

Is there an existing issue or a documentation page for this?

  • I have searched the existing issues and within documentation

Which version of the app are you using?

0.35.3

Operating System

Linux Ubuntu*

Packaging mode

Python package

Related resources

Demo scanrio : https://raw.githubusercontent.com/Guts/qgis-deployment-cli/refs/heads/main/examples/scenarios/demo-scenario-http.qdt.yml

Description of the bug

qgis-installation-finder job error

Steps to reproduce

  1. Install python package : pip install qgis-deployment-toolbelt
  2. Run qdt deploy -vv -s https://raw.githubusercontent.com/Guts/qgis-deployment-cli/refs/heads/main/examples/scenarios/demo-scenario-http.qdt.yml

Relevant log output

❯ qdt deploy -vv -s https://raw.githubusercontent.com/Guts/qgis-deployment-cli/refs/heads/main/examples/scenarios/demo-scenario-http.qdt.yml
2024-10-07 15:27:54||INFO||journalizer||configure_logger||110||Log file: /home/florent/.cache/qgis-deployment-toolbelt/logs/QGISDeploymentToolbelt_0.35.3.log
2024-10-07 15:27:54||INFO||journalizer||headers||118||========== QGIS Deployment Toolbelt - 0.35.3 ==========
2024-10-07 15:27:54||DEBUG||journalizer||headers||119||Operating System: Linux-6.8.0-45-generic-x86_64-with-glibc2.39
2024-10-07 15:27:54||DEBUG||journalizer||headers||121||Distribution name and version: Ubuntu 24.04
2024-10-07 15:27:54||DEBUG||journalizer||headers||124||Architecture: 64bit
2024-10-07 15:27:54||DEBUG||journalizer||headers||125||Computer: DellXPS15
2024-10-07 15:27:54||DEBUG||journalizer||headers||126||Launched by user: florent
2024-10-07 15:27:54||DEBUG||journalizer||headers||131||No OS domain detected.
2024-10-07 15:27:54||DEBUG||proxies||get_proxy_settings||81||No proxy settings found in environment vars nor OS settings.
2024-10-07 15:27:54||DEBUG||journalizer||headers||136||No network proxies detected
2024-10-07 15:27:54||DEBUG||journalizer||headers||139||Installed certificate authority (CA) bundle: /home/florent/venv/qdt/.qdt/lib/python3.12/site-packages/certifi/cacert.pem
2024-10-07 15:27:54||DEBUG||journalizer||headers||140||Default certificate authority (CA) bundle: /home/florent/venv/qdt/.qdt/lib/python3.12/site-packages/certifi/cacert.pem
2024-10-07 15:27:54||DEBUG||journalizer||headers||141||Certificate authority (CA) bundle to use: None
2024-10-07 15:27:54||DEBUG||str2bool||str2bool||56||Value False was already a bool.
2024-10-07 15:27:54||DEBUG||cli||main||211||Log level set: Level 3
2024-10-07 15:27:54||DEBUG||deployment||run||122||Running deploy with Namespace(opt_logfile_disabled=True, verbosity=3, proxy_http=None, command='deploy', scenario_filepath='https://raw.githubusercontent.com/Guts/qgis-deployment-cli/r
efs/heads/main/examples/scenarios/demo-scenario-http.qdt.yml', func=<function run at 0x753bc0d1b4c0>)
2024-10-07 15:27:54||DEBUG||constants||get_qdt_working_directory||134||QDT working folder - Using default path: /home/florent/.cache/qgis-deployment-toolbelt
2024-10-07 15:27:54||DEBUG||str2bool||str2bool||56||Value True was already a bool.
2024-10-07 15:27:54||DEBUG||str2bool||str2bool||56||Value True was already a bool.
2024-10-07 15:27:54||DEBUG||str2bool||str2bool||56||Value False was already a bool.
2024-10-07 15:27:54||DEBUG||connectionpool||_new_conn||1051||Starting new HTTPS connection (1): raw.githubusercontent.com:443
2024-10-07 15:27:54||DEBUG||connectionpool||_make_request||546||https://raw.githubusercontent.com:443 "GET /Guts/qgis-deployment-cli/refs/heads/main/examples/scenarios/demo-scenario-http.qdt.yml HTTP/11" 200 713
2024-10-07 15:27:54||INFO||file_downloader||download_remote_file_to_local||147||Downloading https://raw.githubusercontent.com/Guts/qgis-deployment-cli/refs/heads/main/examples/scenarios/demo-scenario-http.qdt.yml to /home/florent/.cac
he/remote_scenarios/rawgithubusercontentcom/gutsqgis-deployment-clirefsheadsmainexamplesscenarios/demo-scenario-http.qdt.yml (1.75 Ko) succeeded.
2024-10-07 15:27:54||INFO||deployment||run||168||Running scenario: Demonstration scenario of QGIS Deployment Toolbelt with HTTP (qdt-demo-scenario-http). Demonstration scenario of QGIS Deployment Toolbelt that uses HTTP (without git)
to download remote profiles.
2024-10-07 15:27:54||DEBUG||deployment||run||175||Setting environment variable QDT_SCENARIO_VALIDATION = True.
2024-10-07 15:27:54||DEBUG||constants||get_qdt_working_directory||134||QDT working folder - Using default path: /home/florent/.cache/qgis-deployment-toolbelt
2024-10-07 15:27:54||INFO||deployment||run||183||QDT working folder: /home/florent/.cache/qgis-deployment-toolbelt
2024-10-07 15:27:54||DEBUG||orchestrator||__init__||73||3 environment variables related to QDT:
2024-10-07 15:27:54||DEBUG||orchestrator||__init__||75||QDT_SCENARIO_VALIDATION=True
2024-10-07 15:27:54||DEBUG||orchestrator||__init__||75||QDT_LOCAL_QDT_WORKDIR=/home/florent/.cache/qgis-deployment-toolbelt
2024-10-07 15:27:54||DEBUG||orchestrator||__init__||75||QDT_TMP_RUNNING_SCENARIO_ID=qdt-demo-scenario-http
2024-10-07 15:27:54||DEBUG||deployment||run||192||Filtering valid steps in scenario...
2024-10-07 15:27:54||INFO||deployment||run||202||Running step: qgis-installation-finder
2024-10-07 15:27:54||DEBUG||constants||from_opersys||255||Getting configuration for current operating system: linux
2024-10-07 15:27:54||DEBUG||constants||get_qdt_working_directory||134||QDT working folder - Using default path: /home/florent/.cache/qgis-deployment-toolbelt
2024-10-07 15:27:54||DEBUG||generic_job||__init__||68||QDT working folder: /home/florent/.cache/qgis-deployment-toolbelt
2024-10-07 15:27:54||DEBUG||generic_job||__init__||83||Installed QGIS profiles folder: /home/florent/.local/share/QGIS/QGIS3/profiles
2024-10-07 15:27:54||ERROR||bouncer||exit_cli_error||43||Job: qgis-installation-finder. Option 'if_not_found' 's value 'warn' does not comply with condition startswith. Accepted pattern: warning,error
Traceback (most recent call last):
  File "/home/florent/venv/qdt/.qdt/lib/python3.12/site-packages/qgis_deployment_toolbelt/commands/deployment.py", line 204, in run
    job = orchestrator.init_job_class_from_id(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florent/venv/qdt/.qdt/lib/python3.12/site-packages/qgis_deployment_toolbelt/jobs/orchestrator.py", line 105, in init_job_class_from_id
    return job(options)
           ^^^^^^^^^^^^
  File "/home/florent/venv/qdt/.qdt/lib/python3.12/site-packages/qgis_deployment_toolbelt/jobs/job_qgis_installation_finder.py", line 89, in __init__
    self.options: dict = self.validate_options(options)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florent/venv/qdt/.qdt/lib/python3.12/site-packages/qgis_deployment_toolbelt/jobs/generic_job.py", line 254, in validate_options
    raise JobOptionBadValue(
qgis_deployment_toolbelt.exceptions.JobOptionBadValue: Job: qgis-installation-finder. Option 'if_not_found' 's value 'warn' does not comply with condition startswith. Accepted pattern: warning,error
2024-10-07 15:27:54||ERROR||bouncer||exit_cli_error||44||Please, read the full detailed log: /home/florent/.cache/qgis-deployment-toolbelt/logs/QGISDeploymentToolbelt_0.35.3.log
Job: qgis-installation-finder. Option 'if_not_found' 's value 'warn' does not comply with condition startswith. Accepted pattern: warning,error


### Comment

_No response_
@florentfgrs florentfgrs added the triage To be qualified, waiting for a project manager label Oct 7, 2024
Guts added a commit that referenced this issue Oct 7, 2024
@Guts Guts closed this as completed in #566 Oct 7, 2024
Guts added a commit that referenced this issue Nov 28, 2024
…579)

Updates the requirements on
[pytest-cov](https://github.com/pytest-dev/pytest-cov) to permit the
latest version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst">pytest-cov's
changelog</a>.</em></p>
<blockquote>
<h2>6.0.0 (2024-10-29)</h2>
<ul>
<li>Updated various documentation inaccuracies, especially on subprocess
handling.</li>
<li>Changed fail under checks to use the precision set in the coverage
configuration.
Now it will perform the check just like <code>coverage report</code>
would.</li>
<li>Added a <code>--cov-precision</code> cli option that can override
the value set in your coverage configuration.</li>
<li>Dropped support for now EOL Python 3.8.</li>
</ul>
<h2>5.0.0 (2024-03-24)</h2>
<ul>
<li>Removed support for xdist rsync (now deprecated).
Contributed by Matthias Reichenbach in
<code>[#623](pytest-dev/pytest-cov#623)
&lt;https://github.com/pytest-dev/pytest-cov/pull/623&gt;</code>_.</li>
<li>Switched docs theme to Furo.</li>
<li>Various legacy Python cleanup and CI improvements.
Contributed by Christian Clauss and Hugo van Kemenade in
<code>[#630](pytest-dev/pytest-cov#630)
&lt;https://github.com/pytest-dev/pytest-cov/pull/630&gt;</code><em>,
<code>[#631](pytest-dev/pytest-cov#631)
&lt;https://github.com/pytest-dev/pytest-cov/pull/631&gt;</code></em>,
<code>[#632](pytest-dev/pytest-cov#632)
&lt;https://github.com/pytest-dev/pytest-cov/pull/632&gt;</code>_ and
<code>[#633](pytest-dev/pytest-cov#633)
&lt;https://github.com/pytest-dev/pytest-cov/pull/633&gt;</code>_.</li>
<li>Added a <code>pyproject.toml</code> example in the docs.
Contributed by Dawn James in
<code>[#626](pytest-dev/pytest-cov#626)
&lt;https://github.com/pytest-dev/pytest-cov/pull/626&gt;</code>_.</li>
<li>Modernized project's pre-commit hooks to use ruff. Initial POC
contributed by
Christian Clauss in
<code>[#584](pytest-dev/pytest-cov#584)
&lt;https://github.com/pytest-dev/pytest-cov/pull/584&gt;</code>_.</li>
<li>Dropped support for Python 3.7.</li>
</ul>
<h2>4.1.0 (2023-05-24)</h2>
<ul>
<li>Updated CI with new Pythons and dependencies.</li>
<li>Removed rsyncdir support. This makes pytest-cov compatible with
xdist 3.0.
Contributed by Sorin Sbarnea in
<code>[#558](pytest-dev/pytest-cov#558)
&lt;https://github.com/pytest-dev/pytest-cov/pull/558&gt;</code>_.</li>
<li>Optimized summary generation to not be performed if no reporting is
active (for example,
when <code>--cov-report=''</code> is used without
<code>--cov-fail-under</code>).
Contributed by Jonathan Stewmon in
<code>[#589](pytest-dev/pytest-cov#589)
&lt;https://github.com/pytest-dev/pytest-cov/pull/589&gt;</code>_.</li>
<li>Added support for JSON reporting.
Contributed by Matthew Gamble in
<code>[#582](pytest-dev/pytest-cov#582)
&lt;https://github.com/pytest-dev/pytest-cov/pull/582&gt;</code>_.</li>
<li>Refactored code to use f-strings.
Contributed by Mark Mayo in
<code>[#572](pytest-dev/pytest-cov#572)
&lt;https://github.com/pytest-dev/pytest-cov/pull/572&gt;</code>_.</li>
<li>Fixed a skip in the test suite for some old xdist.
Contributed by a bunch of people in
<code>[#565](pytest-dev/pytest-cov#565)
&lt;https://github.com/pytest-dev/pytest-cov/pull/565&gt;</code>_.</li>
<li>Dropped support for Python 3.6.</li>
</ul>
<h2>4.0.0 (2022-09-28)</h2>
<p><strong>Note that this release drops support for
multiprocessing.</strong></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/95404375a0e436178e012e20b8865c23c54c8a50"><code>9540437</code></a>
Bump version: 5.0.0 → 6.0.0</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/9f8175467afc67db9001fb364ad1f2dfe79b51f1"><code>9f81754</code></a>
Further trim down envs and drop Python 3.8.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/b12b5ec65da4c66bbc0c35918957f9f875f465c3"><code>b12b5ec</code></a>
Update conf.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/23f4b27b432a54fcc3b6df7363f0e73e568233fb"><code>23f4b27</code></a>
Update changelog.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/291a04f49566054bb19644aba27c3799ac8b7f42"><code>291a04f</code></a>
Bump test deps and trim config.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/08f1101455ba293dda388fdb3b61e62fd95a827d"><code>08f1101</code></a>
Add <code>--cov-precision</code> option. Close <a
href="https://redirect.github.com/pytest-dev/pytest-cov/issues/655">#655</a>.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/76fe2a7e48e5c9c53644994c5ba5a421c84286f5"><code>76fe2a7</code></a>
Move the warnings/errors in a place that doesn't import anything.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/a9ea7b71711479d4c5ccc5e21e2eb1694b259cb0"><code>a9ea7b7</code></a>
Implement error/warning for the bad dynamic_context being set in
config.</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/c299e01b6422284a6a7f7322e6b9bf8f44aa3c25"><code>c299e01</code></a>
Add explicit suffixing to make it easier to see the identify the
sources/usag...</li>
<li><a
href="https://github.com/pytest-dev/pytest-cov/commit/c87e54643ef696ed2b0e2b9a4209581da8467fcb"><code>c87e546</code></a>
Add reproducer for weird xdist dynamic_context interaction. Ref <a
href="https://redirect.github.com/pytest-dev/pytest-cov/issues/604">#604</a>.</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest-cov/compare/v4.0.0...v6.0.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage To be qualified, waiting for a project manager
Projects
None yet
2 participants