# Testing XIR changes in the VTE

**URL:** <https://forum.mergetb.net/t/testing-xir-changes-in-the-vte/45>\
**Category:** VTE\
**Created:** [April 27, 2020, 7:07pm UTC](https://forum.mergetb.net/t/testing-xir-changes-in-the-vte/45 "2020-04-27T19:07:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkins](https://forum.mergetb.net/letter_avatar_proxy/v4/letter/e/7c8e57/32.png) [@elkins](https://forum.mergetb.net/u/elkins)\
**Post date:** [April 27, 2020, 7:07pm UTC](https://forum.mergetb.net/t/testing-xir-changes-in-the-vte/45/1 "2020-04-27T19:07:26Z")

</div>

How can we test changes to the XIR project in the VTE?

---

<div class="post-metadata">

**Author:** ![ry](https://forum.mergetb.net/user_avatar/forum.mergetb.net/ry/32/64_2.png) [@ry](https://forum.mergetb.net/u/ry)\
**Post date:** [April 27, 2020, 8:05pm UTC](https://forum.mergetb.net/t/testing-xir-changes-in-the-vte/45/2 "2020-04-27T20:05:14Z")

</div>

## Python/MX Only Changes

For changes in XIR that are purely at the Python/MX stage. All that is needed is to install the development version of python in the `model` container in the portal.

The definition of this container is here.

- [https://gitlab.com/mergetb/engine/-/blob/master/containers/model.dock](https://gitlab.com/mergetb/engine/-/blob/master/containers/model.dock)

To create a version of this container with the development version of Python/MX you could comment out the `pip3 install mergexp` that grabs MX from PyPi and install from your git repo. Assuming you have your own fork of XIR you can do something like this

```auto
#RUN pip3 install mergexp
WORKDIR /
RUN git clone https://gitlab.com/rygoo/xir
WORKDIR /xir
RUN git checkout my-working-branch
WORKDIR /xir/lang/mx
RUN pip3 install .

```

Then

- Build the container and push it to a container registry such as Docker Hub or Quay
- On the portal k8s master do a `merge-t2.kubectl edit deployment model`, which will drop you into an editor where you can look for the tag `image:`, and edit the container image URI to the image you just pushed.

Alternatively you can exec into the container and install your development version of Python/MX over the top of the PyPi installed version.

## Golang Changes

Changes to the Golang code require more consideration. I’ll update this post upon request for that.
