Skip to content

BBS Integration tests - #696

Merged
dylan-smith merged 31 commits into
mainfrom
dylan-smith/bbs-integration-tests
Nov 1, 2022
Merged

dylan-smith merged 31 commits into
mainfrom
dylan-smith/bbs-integration-tests

Conversation

@dylan-smith

@dylan-smith dylan-smith commented Oct 24, 2022 •

Copy link
Copy Markdown
Contributor

Stood up a BBS server in our shared Azure Subscription (e2e-bbs-8-5-0-linux-2204.eastus.cloudapp.azure.com). It's running the latest version of BBS (8.5.0) and Ubuntu 22.04.

Manually created 2 projects and 2 repos in BBS (in the future we may automate this like we have for ADO/GH), and added a new integration test to migrate BBS->GH.

Included asserts to check if the GH repo exists and is initialized.

The default SSH cert that Azure generates didn't seem to work when using Ubuntu 22.04 (didn't work with our SSH.Net nuget library, but did work when directly using SSH in a terminal). I found a workaround in an issue from the SSH.Net repo that I applied in this PR. I don't fully understand exactly what it's doing, but it looks like it's updating the signature on the key in-memory before using it. Whatever it's doing, it makes keys that previously didn't work now work. So it seems like a good thing to me.

Closes #553

Future work:

  • automate the creation of BBS test data (like we do for ADO/GH)
  • Include downloading the migration logs (and asserting that they exist)
  • Add BBS windows server (once we support SMB)
  • Add AWS
  • Add another BBS server with the oldest version we support (5.14 I think)

Checklist

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked
  • Docs updated (or issue created)

@github-actions

github-actions Bot commented Oct 24, 2022 •

Copy link
Copy Markdown

Unit Test Results

608 tests   608 ✔️  19s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 50942a4.

♻️ This comment has been updated with latest results.

Comment thread src/bbs2gh/RsaSha256Util.cs Fixed
Comment thread src/bbs2gh/RsaSha256Util.cs Fixed
@github-actions

github-actions Bot commented Oct 28, 2022 •

Copy link
Copy Markdown

Integration Test Results

5 tests   5 ✔️  18m 54s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 50942a4.

♻️ This comment has been updated with latest results.

@dylan-smith
dylan-smith marked this pull request as ready for review October 31, 2022 14:06

@ArinGhazarian ArinGhazarian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The INT tests look really good. My main problem is the hack for supporting RSA keys which I think is a reg flag.

Comment thread src/bbs2gh/RsaSha256Util.cs Resolved

@ArinGhazarian ArinGhazarian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good as far as I can see.

@github-actions

github-actions Bot commented Nov 1, 2022

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
bbs2gh 74% 67% 426 ➖
ado2gh 84% 78% 684 ✔
gei 84% 82% 511 ✔
Octoshift 86% 70% 910 ✔
Summary 84% (5516 / 6604) 74% (1310 / 1764) 2531 ✔

@dylan-smith
dylan-smith merged commit b4a33bb into main Nov 1, 2022
@dylan-smith
dylan-smith deleted the dylan-smith/bbs-integration-tests branch November 1, 2022 21:52
dylan-smith added a commit that referenced this pull request Nov 2, 2022
<!--
For the checkboxes below you must check each one to indicate that you
either did the relevant task, or considered it and decided there was
nothing that needed doing
-->

Forgot to update integration-tests.yml in the [BBS integration tests
PR](#696).

Issue #553 

- [x] Did you write/update appropriate tests
- [x] Release notes updated (if appropriate)
- [x] Appropriate logging output
- [x] Issue linked
- [x] Docs updated (or issue created)

<!--
For docs we should review the docs at:

https://docs.github.com/en/early-access/github/migrating-with-github-enterprise-importer
and the README.md in this repo

If a doc update is required based on the changes in this PR, it is
sufficient to create an issue and link to it here. The doc update can be
made later/separately.

The process to update the docs can be found here:
https://github.com/github/docs-early-access#opening-prs

The markdown files are here: 

https://github.com/github/docs-early-access/tree/main/content/github/migrating-with-github-enterprise-importer
-->
@ArinGhazarian ArinGhazarian mentioned this pull request Dec 18, 2024
6 tasks done
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.

BBS Migration integration test(s)

4 participants