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

initial checkin of vk tests for dinkum. still needs integration into … #3

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ken-mycroft
Copy link
Contributor

…existing system.

Description

See README file in vk_tests/ subdirectory

If needed follow up with as much detail as required.

Type of PR

If your PR fits more than one category, there is a high chance you should submit more than one PR. Please consider this carefully before opening the PR.
Either delete those that do not apply, or add an x between the square brackets like so: - [x]

  • Bugfix
  • [ X ] Feature implementation
  • Refactor of code (without functional changes)
  • Documentation improvements
  • Test improvements

Testing

How can someone reviewing this PR test that it is working properly? Is there appropriate test coverage for this change?

bash vk_tests/build-and-run-vk-tests.sh

Documentation

Does documentation for this already exist? Are there docstrings on all the public methods you added or modified? Have these been updated?

See README

CLA

I am an employee

Copy link
Contributor

@krisgesling krisgesling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey this is looking good. I like the slimmed down run time so we aren't running things that aren't actually getting tested. Over time we can re-add services as our integration tests mover closer to become true "end-to-end".

A few notes and questions for consideration below.

docker/packages-run.txt Show resolved Hide resolved
Comment on lines 27 to 32
plasma-nano
plasma-nm
plymouth
plymouth-themes
python3-pip
python3-rpi.gpio
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these no longer necessary for the Mark II? Or just for the VK tests?

Great if we can remove them, otherwise a dedicated package list might be necessary as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a bug. Nothing is to be removed, just 2 lines added. Not sure how this happened. My mistake.

vk_tests/Makefile Outdated Show resolved Hide resolved
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Audio hardware abstraction layer.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see from a diff that there aren't many changes here (compared to the normal version), however it does mean we need to maintain two files and keep them in sync. Is it worth adding a flag to Dinkum to know if we're running in a CI environment, then including these changes directly in Dinkum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that. For now it is only 2 lines which needed to be commented out. We do not need to keep these in sync as it is simple a dummy layer so either way is fine. It just seemed building this without having to modify dinkum proper was a win. I can see it either way.

vk_tests/run_vk_tests.sh Outdated Show resolved Hide resolved
# Copy dinkum code and virtual environment
COPY --from=build-dinkum --chown=mycroft:mycroft /opt/mycroft-dinkum/.venv/ /opt/mycroft-dinkum/.venv/
COPY --chown=mycroft:mycroft mycroft-dinkum/ /opt/mycroft-dinkum/
RUN sed -i 's|worktree\s\+=.*|worktree = ../|' /opt/mycroft-dinkum/.git/config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently failing here for me, but it's getting late in the day so I haven't dug into why.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why? It works here but I have a bunch of stuff cached. I'll look into it today.

vk_tests/build-and-run-vk-tests.sh Show resolved Hide resolved
vk_tests/build-and-run-vk-tests.sh Show resolved Hide resolved
@ken-mycroft
Copy link
Contributor Author

I will fix some of the above as noted then assign the ticket back to Gez to get the Allure stuff integrated.

@synesthesiam synesthesiam removed their request for review January 5, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants