Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Go CFD: SSH, Map Route, Integration Test Setup & Teardown#133

Merged
zjrgov merged 27 commits into
mainfrom
zjr/ssh-map_route-int_setup
Jul 11, 2025
Merged

Go CFD: SSH, Map Route, Integration Test Setup & Teardown#133
zjrgov merged 27 commits into
mainfrom
zjr/ssh-map_route-int_setup

Conversation

@zjrgov

@zjrgov zjrgov commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

🎫 Addresses issue: https://github.com/GSA-TTS/devtools-program/issues/204

This includes the development of various chunks of work on the way to completing the Prepare step.

🛠 Summary of changes

  • Miscellaneous fixes
  • Process Egress proxy info into JobConfig
  • Moved the Go module (just .mod/sum) up to project root so it's less confusing for IDEs
  • Extracted integration test setup
  • Made bash scripts to setup/teardown sandbox assets for integration testing
  • Functionality for:
    • SSH
    • SSH Code
    • Map Route

✨ Special Notes

  • I could probably squash some of these commits and am happy to do so on request
  • I added an editor specific file (.lazy.lua) that I can ignore if preferred (not sure why I committed it?)
  • I started using a (cfd) scope in my commit messages to disambiguate, but can remove if it's unhelpful or distracting

@zjrgov zjrgov requested a review from a team June 27, 2025 19:00
@zjrgov zjrgov self-assigned this Jun 27, 2025
pauldoomgov
pauldoomgov previously approved these changes Jul 10, 2025

@pauldoomgov pauldoomgov 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 to go! I had one very trivial question you can feel free to ignore.

Comment thread runner-manager/cfd/cmd/drive/get_job_config_test.go Outdated
@zjrgov zjrgov force-pushed the zjr/ssh-map_route-int_setup branch from dc82543 to cdca98e Compare July 10, 2025 21:32
@zjrgov zjrgov requested a review from pauldoomgov July 10, 2025 21:32
Comment thread runner-manager/cfd/cloudgov/cloudgov.go
Comment thread runner-manager/cfd/cloudgov/cloudgov.go
epCfg.ProxyHostSSH, epCfg.ProxyPortSSH, epCfg.ProxyAuthFile,
)
args = append(args, proxy)
}

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.

[question] does this ssh command not pick up the config from .ssh/ssh_config that .profile sets up?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's an excellent question, and I think… maybe? I will check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

On second thought, this will take a little time to check—how do you feel about leaving it an issue for now?

I'm also not sure what exact bash stuff will be running with this gets put into use, and in any case it will be very easy to check once we've gotten there.

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.

I'm fine with leaving it as something to return to

@rahearn rahearn 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.

🚀

@zjrgov zjrgov force-pushed the zjr/ssh-map_route-int_setup branch from e3f2aa3 to 84928e8 Compare July 11, 2025 18:27
zjrgov added 18 commits July 11, 2025 14:28
We use the Job ID in our containerID value, and the Job ID will be
unique for every job run, so there should never be a circumstance where
an existing app will be found. If it didn't hurt to check I would keep
this, but the call to cloud.gov is a waste.
This fixes some frustrating tooling issues I was having because the Go
root and the Git root were in different places, non-standard for Go.
@zjrgov zjrgov force-pushed the zjr/ssh-map_route-int_setup branch from 84928e8 to cc91626 Compare July 11, 2025 18:28
@zjrgov zjrgov merged commit 8ee49f6 into main Jul 11, 2025
7 of 8 checks passed
@zjrgov zjrgov deleted the zjr/ssh-map_route-int_setup branch July 11, 2025 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants