Skip to content

Commit a736766

Browse files
committed
deploy: 9aa93a7
1 parent bf299f0 commit a736766

File tree

9 files changed

+1436
-80
lines changed

9 files changed

+1436
-80
lines changed

Debugging-guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ <h2 id="checking-the-status-of-the-vm"><a class="header" href="#checking-the-sta
493493

494494
<nav class="nav-wrapper" aria-label="Page navigation">
495495
<!-- Mobile navigation buttons -->
496-
<a rel="prev" href="Developing.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
496+
<a rel="prev" href="Releasing.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
497497
<i class="fa fa-angle-left"></i>
498498
</a>
499499

@@ -507,7 +507,7 @@ <h2 id="checking-the-status-of-the-vm"><a class="header" href="#checking-the-sta
507507
</div>
508508

509509
<nav class="nav-wide-wrapper" aria-label="Page navigation">
510-
<a rel="prev" href="Developing.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
510+
<a rel="prev" href="Releasing.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
511511
<i class="fa fa-angle-left"></i>
512512
</a>
513513

Developing.html

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -449,67 +449,6 @@ <h2 id="running-unit-tests"><a class="header" href="#running-unit-tests">Running
449449
<p>If you need to update mocks use:</p>
450450
<pre><code class="language-bash">$ make generate_mocks
451451
</code></pre>
452-
<h2 id="running-e2e-tests"><a class="header" href="#running-e2e-tests">Running e2e tests</a></h2>
453-
<p>We have automated e2e tests which keep CRC in shape.</p>
454-
<h3 id="introduction"><a class="header" href="#introduction">Introduction</a></h3>
455-
<p>End-to-end (e2e) tests borrow code from <a href="http://github.com/crc-org/clicumber">Clicumber</a> package to provide basic functionality for testing CLI binaries. This facilitates running commands in a persistent shell instance (<code>bash</code>, <code>tcsh</code>, <code>zsh</code>, Command Prompt, or PowerShell), assert its outputs (standard output, standard error, or exit code), check configuration files, and so on. The general functionality of Clicumber is then extended by CRC specific test code to cover the whole functionality of CRC.</p>
456-
<h3 id="how-to-run"><a class="header" href="#how-to-run">How to run</a></h3>
457-
<p>First, one needs to set the following flags in <code>Makefile</code>, under <code>e2e</code> target:</p>
458-
<ul>
459-
<li><code>--pull-secret-file</code><br />
460-
absolute path to your OpenShift pull secret.</li>
461-
<li><code>--bundle-location</code><br />
462-
if bundle is embedded, this flag should be set to <code>--bundle-location=embedded</code> or not passed at all<br />
463-
if bundle is not embedded, then absolute path to the bundle should be passed</li>
464-
<li><code>--crc-binary</code><br />
465-
if <code>crc</code> binary resides in <code>$GOPATH/bin</code>, then this flag does not need to be passed<br />
466-
otherwise absolute path to the <code>crc</code> binary should be passed.</li>
467-
</ul>
468-
<p>To start e2e tests, run:</p>
469-
<pre><code class="language-bash">$ make e2e
470-
</code></pre>
471-
<h4 id="how-to-run-only-a-subset-of-all-e2e-tests"><a class="header" href="#how-to-run-only-a-subset-of-all-e2e-tests">How to run only a subset of all e2e tests</a></h4>
472-
<p>Implicitly, all e2e tests for your operating system are executed. If you want to run only tests from one feature file, you have to override <code>GODOG_OPTS</code> environment variable. For example:</p>
473-
<pre><code class="language-bash">make e2e GODOG_OPTS="--godog.tags='@basic &amp;&amp; @windows'" BUNDLE_LOCATION=&lt;bundle location&gt; PULL_SECRET_FILE=&lt;pull secret path&gt;
474-
</code></pre>
475-
<p>Please notice <code>@basic &amp;&amp; @windows</code>, where <code>@basic</code> tag stands for <code>basic.feature</code> file and <code>@windows</code> tag for e2e tests designed for Windows.</p>
476-
<h3 id="how-to-test-cert-rotation"><a class="header" href="#how-to-test-cert-rotation">How to test cert rotation</a></h3>
477-
<p>On linux platform first stop the network time sync using:</p>
478-
<pre><code class="language-bash">$ sudo timedatectl set-ntp off
479-
</code></pre>
480-
<p>Set the time 2 month ahead:</p>
481-
<pre><code class="language-bash">$ sudo date -s '2 month'
482-
</code></pre>
483-
<p>Start the crc with <code>CRC_DEBUG_ENABLE_STOP_NTP=true</code> set:</p>
484-
<pre><code class="language-bash">$ CRC_DEBUG_ENABLE_STOP_NTP=true crc start
485-
</code></pre>
486-
<h3 id="logs"><a class="header" href="#logs">Logs</a></h3>
487-
<p>Test logs can be found in <code>test/e2e/out/test-results</code>.</p>
488-
<h2 id="releasing-on-github"><a class="header" href="#releasing-on-github">Releasing on GitHub</a></h2>
489-
<h3 id="releasing-using-the-github-actions-workflow"><a class="header" href="#releasing-using-the-github-actions-workflow">Releasing using the github actions workflow</a></h3>
490-
<p>The GitHub Actions workflow <a href="https://github.com/crc-org/crc/actions/workflows/release.yml"><code>Publish release on github</code></a> creates a draft release and provides a template with all the component versions and the git change log.</p>
491-
<p>To start the workflow go to the <a href="https://github.com/crc-org/crc/actions/workflows/release.yml">workflow page</a> and click on the <code>Run Workflow</code> button, make sure to choose the appropriate tag for the release.</p>
492-
<p>Once the draft release is available, edit it to include the notable changes for the release and press publish to make it public.</p>
493-
<h3 id="releasing-using-the-gh-releasesh-script"><a class="header" href="#releasing-using-the-gh-releasesh-script">Releasing using the <code>gh-release.sh</code> script</a></h3>
494-
<p>In the CRC repository, we have a script <a href="https://github.com/crc-org/crc/blob/main/gh-release.sh"><code>gh-release.sh</code></a> which uses the <a href="https://cli.github.com"><code>gh</code></a> tool, make sure it is installed.</p>
495-
<p>Create a markdown file containing a list of the notable changes named <code>notable_changes.txt</code> in the same directory as the script.</p>
496-
<p>An example <code>notable_changes.txt</code>:</p>
497-
<pre><code class="language-bash">$ cat notable_changes.txt
498-
- Fixes a bug where `oc` binary was not extracted from bundle when using microshift preset [#3581](https://github.com/crc-org/crc/issues/3581)
499-
- Adds 'microshift' as a possible value to the help string of the 'preset' config option [#3576](https://github.com/crc-org/crc/issues/3576)
500-
</code></pre>
501-
<p>Then run the script from the release tag and follow the prompts, it’ll ask for confirmation before pushing the draft release to GitHub.</p>
502-
<div class="mdbook-callouts mdbook-callouts-note">
503-
<p class="mdbook-callouts-title">
504-
<span class="mdbook-callouts-icon"></span>
505-
note
506-
</p>
507-
<p>The script will exit with error if it doesn’t find a tag starting with <code>v</code> in the current git HEAD.</p>
508-
</div>
509-
<pre><code class="language-bash">$ git checkout v2.18.0
510-
$ ./gh-release.sh
511-
</code></pre>
512-
<p>Verify the draft release on the releases page and if everything looks good press publish to make the release public.</p>
513452

514453
</main>
515454

@@ -519,7 +458,7 @@ <h3 id="releasing-using-the-gh-releasesh-script"><a class="header" href="#releas
519458
<i class="fa fa-angle-left"></i>
520459
</a>
521460

522-
<a rel="next prefetch" href="Debugging-guide.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
461+
<a rel="next prefetch" href="Testing.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
523462
<i class="fa fa-angle-right"></i>
524463
</a>
525464

@@ -533,7 +472,7 @@ <h3 id="releasing-using-the-gh-releasesh-script"><a class="header" href="#releas
533472
<i class="fa fa-angle-left"></i>
534473
</a>
535474

536-
<a rel="next prefetch" href="Debugging-guide.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
475+
<a rel="next prefetch" href="Testing.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
537476
<i class="fa fa-angle-right"></i>
538477
</a>
539478
</nav>

0 commit comments

Comments
 (0)