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

BBS Integration tests #696

Merged
merged 31 commits into from
Nov 1, 2022
Merged

BBS Integration tests #696

merged 31 commits into from
Nov 1, 2022

Conversation

dylan-smith
Copy link
Collaborator

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

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
Copy link

github-actions bot commented Oct 24, 2022

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.

src/bbs2gh/RsaSha256Util.cs Fixed Show fixed Hide fixed
src/bbs2gh/RsaSha256Util.cs Fixed Show fixed Hide fixed
@github-actions
Copy link

github-actions bot commented Oct 28, 2022

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
Copy link
Collaborator

@ArinGhazarian ArinGhazarian left a comment

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.

src/bbs2gh/Services/BbsSshArchiveDownloader.cs Outdated Show resolved Hide resolved
src/bbs2gh/RsaSha256Util.cs Outdated Show resolved Hide resolved
Copy link
Collaborator

@ArinGhazarian ArinGhazarian left a comment

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
Copy link

github-actions bot commented Nov 1, 2022

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
-->
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)
3 participants