Project

General

Profile

Actions

action #44660

closed

Make developer mode client aware of os-autoinst version

Added by mkittler over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2018-12-03
Due date:
% Done:

0%

Estimated time:

Description

This would help identifying issues regarding the developer mode more easily where actually just the os-autoinst and web UI versions are out-of-sync. And since we now have auto-deployment on O3 workers, we should at least be able to see immediately why it is broken.

tasks

  1. Increase the os-autoinst version ($OpenQA::Isotovideo::Interface::version) also when making changes in the developer mode protocol.
  2. Emit os-autoinst version via the web socket server.
  3. Add the version check for it in client code. The web UI should print an error message like "developer mode not available, worker too old/new".

further ideas/discussion

  1. It would also make sense to distinguish major versions (must match exactly) and minor versions (must be equal or newer) because often we can just add new features without breaking the way existing ones work but sometimes backward compatibility is not possible or worth the effort.
  2. The os-autoinst version currently applies to test API changes and to the command server interface. The command server interface affects the web UI whereas the test API interface affects the test code. So maybe it makes sense to have a different versioning for the test API.
Actions #1

Updated by mkittler over 5 years ago

  • Description updated (diff)
Actions #2

Updated by mkittler over 5 years ago

  • Status changed from New to In Progress

PRs: https://github.com/os-autoinst/os-autoinst/pull/1068, https://github.com/os-autoinst/openQA/pull/1899

(Implemented as its own distinct "developer-mode-only" version number with major and minor version part.)

Actions #3

Updated by mkittler over 5 years ago

  • Status changed from In Progress to Resolved

PR has been merged, seems to work on o3

Actions

Also available in: Atom PDF