Skip to content

Offline GitHub workflow#733

Merged
cbaxley merged 34 commits intodevelopfrom
cbaxley-offline-github-workflow
Dec 8, 2025
Merged

Offline GitHub workflow#733
cbaxley merged 34 commits intodevelopfrom
cbaxley-offline-github-workflow

Conversation

@cbaxley
Copy link
Collaborator

@cbaxley cbaxley commented Nov 24, 2025

🗣 Description

This builds the workflow for offline install testing

💭 Motivation and context

📷 Screenshots (DELETE IF UNAPPLICABLE)

🧪 Testing

✅ Pre-approval checklist

  • Changes are limited to a single goal AND
    the title reflects this in a clear human readable format
  • Issue that this PR solves has been selected in the Development section
  • I have read and agree to LME's CONTRIBUTING.md document.
  • The PR adheres to LME's requirements in RELEASES.md
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated to reflect the changes in this PR.

✅ Pre-merge Checklist

  • All tests pass
  • PR has been tested and the documentation for testing is above
  • Squash and merge all commits into one PR level commit

✅ Post-merge Checklist

  • Delete the branch to keep down number of branches

@github-project-automation github-project-automation bot moved this to 🆕 Product Backlog in LME-Development Nov 24, 2025
@cbaxley cbaxley changed the base branch from main to develop November 24, 2025 12:18
@NVivero NVivero moved this from 🆕 Product Backlog to 🏗 In Progress in LME-Development Nov 28, 2025
Copy link

@Mastermjr Mastermjr left a comment

Choose a reason for hiding this comment

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

all tests should run while LME instance and all the guest vms have no network connectivity.
I think the best way to do this is to setup a jump box that you can connect to and all the other vms in the network have no internet

ssh -o StrictHostKeyChecking=no lme-user@${{ env.U2_IP }} 'cd ~/LME && NON_INTERACTIVE=true AUTO_CREATE_ENV=true ./install.sh -o -d'
"

- name: Remove NSG outbound rules for u2
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I only open it to install the stuff for the tests. If we don't at least open all the ports, for maybe remote testing, I am not sure exactly how we can do it.

@cisagov cisagov deleted a comment from Mastermjr Dec 1, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

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

thank you, we have to be careful what we allow to run, or else we can run random repos that people create PRs for!

@cisagov cisagov deleted a comment from Mastermjr Dec 1, 2025
echo "Azure region: ${{ inputs.azure_region || 'centralus' }}"
cd testing/v2/development
docker compose -p ${{ env.UNIQUE_ID }} exec -T pipeline bash -c "
ssh -o StrictHostKeyChecking=no lme-user@${{ env.U2_IP }} 'cd ~/LME && NON_INTERACTIVE=true AUTO_CREATE_ENV=true ./install.sh -o -d'
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should never add outbound back into u2, if we ever allow outbound anything, then the testing framework might lie to us and say something works, when it truly doesn't work on a no-net system

if this is an issue, let me know and we can hop on a call and try and figure out what needs to happen

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think I can ssh to it without allowing traffic both ways. I can limit the traffic to u2 and the build machine maybe.
I was also thinking about redoing it and putting both machines on the same network with different nsgs. That might be the best way.

@mreeve-snl
Copy link
Collaborator

mreeve-snl commented Dec 2, 2025 via email

@mreeve-snl
Copy link
Collaborator

your design looks good to me
u2 has no internet
do u run an agent install on a no net windows and no net linux?

@cbaxley
Copy link
Collaborator Author

cbaxley commented Dec 2, 2025

your design looks good to me u2 has no internet do u run an agent install on a no net windows and no net linux?
I am wondering how they will get the clients installed. I wonder if we should download the clients as well for the version they are using. Hmmm. Either way, I am going to go ahead and install a client on servers that have internet access. I am going to add a windows machine.

@cbaxley cbaxley merged commit 0168b90 into develop Dec 8, 2025
9 of 11 checks passed
@cbaxley cbaxley deleted the cbaxley-offline-github-workflow branch December 8, 2025 17:19
@github-project-automation github-project-automation bot moved this from 🏗 In Progress to ✅ Done in LME-Development Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants

Comments