Skip to content

Conversation

sfondev
Copy link

@sfondev sfondev commented Apr 10, 2025

PR that will contain all the changes for supporting Docker Swarm and HashiCorp Nomad

@sfondev sfondev closed this Apr 11, 2025
@sfondev sfondev force-pushed the swarm-and-nomad-parsers branch from b21f323 to a08797f Compare April 11, 2025 22:54
@sfondev sfondev reopened this Apr 11, 2025
sfondev added 22 commits April 25, 2025 14:52
…GLITCHTransformer used in the Terraform parser
…add new filtering for official images that are deprecated
…mells, re-enable detection of weak crypto and https missing smells
@sfondev
Copy link
Author

sfondev commented Aug 25, 2025

I added some comments but what concerns be the most is the lack of added tests. Do you have tests for the parsers and for the new smells?

When I was coding the parsers I was mostly testing with example files from the web I found to be more or less "complex" and that had the attributes needed to do the detection. I tested by running the parser on them until parsing all the information needed and they didn't error out.
Indeed unfortunately the parsers aren't robust for real world usage, since when running GLITCH on the whole datasets they do end up error out on some of the files. However, in that case some of the errors are really not the parsers fault, since they happen due to files that aren't really valid Compose/Swarm files or Nomad.
But creating or choosing test files, for the smells should be doable.

@Nfsaavedra
Copy link
Member

It is OK if some the parsers are not able to parse some files. The same happens for the other technologies

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.

2 participants