Skip to content

Commit

Permalink
deploy: d48365c
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichofer committed Nov 28, 2024
1 parent a7a273f commit 65c7b38
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 1 deletion.
Binary file modified latest/.doctrees/Testing.doctree
Binary file not shown.
Binary file modified latest/.doctrees/environment.pickle
Binary file not shown.
24 changes: 24 additions & 0 deletions latest/Testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<li class="toctree-l1 current"><a class="current reference internal" href="#">Testing</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#test-packages-pr-mr-ci-cd">Test packages (PR/MR/CI/CD)</a></li>
<li class="toctree-l2"><a class="reference internal" href="#pull-request-testing-for-spack-c2sm-on-github">Pull Request Testing for spack-c2sm on GitHub</a></li>
<li class="toctree-l2"><a class="reference internal" href="#jenkins-test-with-uenv">Jenkins test with uenv</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="CodeDevelopment.html">Develop packages</a></li>
Expand Down Expand Up @@ -111,6 +112,29 @@ <h2>Pull Request Testing for spack-c2sm on GitHub<a class="headerlink" href="#pu
<li><p>balfrin</p></li>
</ul>
</section>
<section id="jenkins-test-with-uenv">
<h2>Jenkins test with uenv<a class="headerlink" href="#jenkins-test-with-uenv" title="Link to this heading"></a></h2>
<p>To test spack-c2sm with an uenv, add a stage</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>stage<span class="o">(</span><span class="s1">&#39;Create uenv&#39;</span><span class="o">)</span><span class="w"> </span><span class="o">{</span>
<span class="w"> </span>steps<span class="w"> </span><span class="o">{</span>
<span class="w"> </span>sh<span class="w"> </span><span class="s2">&quot;&quot;&quot;</span>
<span class="s2"> git clone -b fix/jenkins https://github.com/eth-cscs/uenv.git</span>
<span class="s2"> ./uenv/install --yes --destdir=</span><span class="nv">$WORKSPACE</span>
<span class="s2"> source </span><span class="nv">$WORKSPACE</span><span class="s2">/etc/profile.d/uenv.sh</span>
<span class="s2"> uenv repo create</span>
<span class="s2"> uenv image pull mch/v8:rc2</span>
<span class="s2"> &quot;&quot;&quot;</span>
<span class="w"> </span><span class="o">}</span>
<span class="o">}</span>
</pre></div>
</div>
<p>and run the tests in the uenv</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">source</span><span class="w"> </span><span class="nv">$WORKSPACE</span>/etc/profile.d/uenv.sh
<span class="nb">source</span><span class="w"> </span>./setup-env.sh<span class="w"> </span>/user-environment
uenv<span class="w"> </span>run<span class="w"> </span>mch/v8:rc2<span class="w"> </span>--<span class="w"> </span>pytest<span class="w"> </span>-v<span class="w"> </span>-n<span class="w"> </span>auto<span class="w"> </span>test/integration_test.py
</pre></div>
</div>
</section>
</section>


Expand Down
26 changes: 26 additions & 0 deletions latest/_sources/Testing.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,29 @@ To test a PR, create a comment ``launch jenkins``.
Supported machines:

* balfrin

Jenkins test with uenv
----------------------
To test spack-c2sm with an uenv, add a stage

.. code-block:: bash
stage('Create uenv') {
steps {
sh """
git clone -b fix/jenkins https://github.com/eth-cscs/uenv.git
./uenv/install --yes --destdir=$WORKSPACE
source $WORKSPACE/etc/profile.d/uenv.sh
uenv repo create
uenv image pull mch/v8:rc2
"""
}
}
and run the tests in the uenv

.. code-block:: bash
source $WORKSPACE/etc/profile.d/uenv.sh
source ./setup-env.sh /user-environment
uenv run mch/v8:rc2 -- pytest -v -n auto test/integration_test.py
1 change: 1 addition & 0 deletions latest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ <h1>C2SM Spack<a class="headerlink" href="#c2sm-spack" title="Link to this headi
<li class="toctree-l1"><a class="reference internal" href="Testing.html">Testing</a><ul>
<li class="toctree-l2"><a class="reference internal" href="Testing.html#test-packages-pr-mr-ci-cd">Test packages (PR/MR/CI/CD)</a></li>
<li class="toctree-l2"><a class="reference internal" href="Testing.html#pull-request-testing-for-spack-c2sm-on-github">Pull Request Testing for spack-c2sm on GitHub</a></li>
<li class="toctree-l2"><a class="reference internal" href="Testing.html#jenkins-test-with-uenv">Jenkins test with uenv</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="CodeDevelopment.html">Develop packages</a><ul>
Expand Down
Binary file modified latest/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion latest/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 65c7b38

Please sign in to comment.