Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Upgrade to use updated dependency-submission-toolkit #6

Merged
merged 6 commits into from
Jun 10, 2022

Conversation

lseppala
Copy link
Contributor

@lseppala lseppala commented Jun 9, 2022

Updates to the latest dependency-submission-toolkit

Additionally:

  • Adds support for transitive dependencies
  • make snapshot job.correlator unique based on build target (can run multiple actions per workflow and get all results
  • Misc build and testing improvements

I anticipate rework, but my goal is to get this installed in GitHub repos soon so we can start exercising our staff-ship more. If things can be addressed in future iterations, let's save it for later.

@lseppala lseppala marked this pull request as ready for review June 9, 2022 18:33
@lseppala lseppala requested review from lorenanicole and mrysav June 9, 2022 18:33
Copy link

@elireisman elireisman left a comment

Choose a reason for hiding this comment

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

You might want a +1 from someone better versed in Typescript but this all LGTM, nice change!

@@ -0,0 +1,104 @@
import { parseGoList, parseGoModGraph } from './parse'
Copy link
Contributor

@mrysav mrysav Jun 9, 2022

Choose a reason for hiding this comment

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

Not going to lie, I kind of hate putting test files right alongside normal files ;) But I can let it fly...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's takes all all types! I think I've more strongly adopted this working on a TypeScript+Go project, where unit tests in Go must be collocated with the source files. So apologies for ry

Since this is to be open sourced, I'm inclined to keep the tests collocated because this is the common idiom for Jest test organization (it's the example given in the Getting Started guide, for instance). But I fully bless internal TS projects using other organization mehtods.

I hope we can at least agree that that __test__/ directory (another Jest practice) is an abomination ;)

@@ -16,4 +15,4 @@ jobs:
uses: dsp-testing/go-snapshot-action@lsep/go-list-impl
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this needs to be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I knew it was too good to be true that it worked on the first run 🤦

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh! But it did work! 🎉 https://github.com/dsp-testing/go-snapshot-action/runs/6836365970?check_suite_focus=true

Updating to point to main, which it will run once merged

@lseppala lseppala merged commit ac080a3 into main Jun 10, 2022
@lseppala lseppala deleted the lsep/new-dep-sub-toolkit branch June 10, 2022 19:44
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.

None yet

3 participants