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

feat: Enable triggering azure pipelines #1274

Draft
wants to merge 35 commits into
base: development
Choose a base branch
from
Draft

Conversation

outofambit
Copy link
Contributor

@outofambit outofambit commented Nov 7, 2024

#1257

Adds incomplete but functional support for using Azure Pipelines to run test plans with the bot. Most important changes are in server/services/AzurePipelinesService.js and server/models/services/CollectionJobService.js. Should not be merged as-is as there are some rough edges (including a hardcoded override of GitHub Actions) until a UI approach has been aligned on and implemented.

Does:

  • Add database fields to store which automation service was used to run a test plan
  • Add a service that authenticates with and triggers Azure Pipelines jobs
  • Hooks that service up to being used from the current UI (instead of GitHub Actions)
  • Add secrets and new environment variables needed to use Azure Pipelines to the sandbox ansible vault and config

Doesn't:

  • Make any UI updates. There is a hardcoded line to force all automation runs to be sent to Azure Pipelines.
  • Update tests.

See a test suite ran from the sandbox env at https://aria-at-app-sandbox.bocoup.com/run/618?user=9999, and its corresponding azure pipelines run at https://dev.azure.com/bocoup/aria-at-automation/_build/results?buildId=190&view=results.

Corresponding changes made in automation repo at: bocoup/aria-at-gh-actions-helper#44

howard-e and others added 18 commits April 8, 2024 14:42
April 8th 2024 Production Release
April 29, 2024 Production Release
June 12, 2024 Production Release

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1129.

[Latest CHANGELOG.md update](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#131-2024-06-12)
July 22, 2024 Production Release

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1163.

[Latest CHANGELOG.md update](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#150-2024-07-22)
Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1178.

[Latest CHANGELOG.md update: v1.6.0](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#160-2024-07-29)
August 26, 2024 Production Release which includes the following changes:
* #1161, to address #1045
* #1196, to address #1176
* #1186, to address #1166, #1167 and #1168
* #1188
* #1175
September 23, 2024 Production Release

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1220.

[Latest CHANGELOG.md update: v1.8.1](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#181-2024-09-23)
September 23, 2024 Production Release #2

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1222.

_Note: No version bump here_
October 9, 2024 Production Release

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1233.

[Latest CHANGELOG.md update: v1.9.0](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#190-2024-10-09)
October 10, 2024 Production Release

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1238.

[Latest CHANGELOG.md update: v1.9.1](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#191-2024-10-10)
October 16, 2024 Production Release

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1245.

[Latest CHANGELOG.md update: v1.9.2](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#192-2024-10-16)
October 28, 2024 Production Release [v1.9.3]

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1263.

[Latest CHANGELOG.md update: v1.9.3](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#193-2024-10-28)
November 7, 2024 Production Release [v1.10.0]

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1271.

[Latest CHANGELOG.md update: v1.10.0](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#1100-2024-11-07).
@outofambit outofambit changed the title Enable triggering azure pipelines feat: Enable triggering azure pipelines Nov 12, 2024
@stalgiag
Copy link
Contributor

stalgiag commented Dec 5, 2024

@outofambit I know this is in draft so please disregard if this is irrelevant but I saw that there are snapshot tests failing in this. The snapshot testing is not really documented so I opened a PR here to add some basic info.

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1284.

[Latest CHANGELOG.md update: v1.11.0](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#1110-2024-12-10).
December 18, 2024 Production Release [v1.11.0][re-release]

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1292.

[Latest CHANGELOG.md update: v1.11.0](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#1110-2024-12-10). (no version bump)
Comment on lines +406 to +407
// hardcode for testing
workflowService = AUTOMATION_SERVICE.AZURE_PIPELINES;
Copy link
Contributor Author

@outofambit outofambit Feb 3, 2025

Choose a reason for hiding this comment

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

Hardcoded for testing, do not merge!

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.

4 participants