question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detection of component metadata based on code analysis

See original GitHub issue

It would be helpful to have a generic way to detect information about components.

Context

I’m in the process of integrating techdocs-cli into our Jenkins pipeline. I want it to be very easy for developers to start using this functionality by having the platform automatically figure out how documentation should be built. We will provide an escape valve to allow developers to go off the beaten path but we want to provide convenient defaults for technologies in our ecosystem.

We’re planning to have a Jenkins DLS job called buildDocs which will automatically select the mechanism based on information about the component. We’ll modify the onboarding screen to explain how documentation will be built for each component, but I need to know what technologies are being used so I can determine how to build the documentation.

Feature Request

It would be helpful if we had this information available inside of Backstage. I would imagine that the actual detection mechanism could be distributed as a library so it can be used in different environments.

Possible Implementation

I don’t know. This is why I created this issue. I tried to Google for a library that does the detection of technologies but I couldn’t find anything. I know GitHub has information about code that’s in the repo but it doesn’t provide information about the root of that project.

I would love your thoughts

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
tarascommented, Feb 19, 2021

@freben your answer is what I was looking for. I can essentially use annotations but just need to keep simple as strings.

1reaction
frebencommented, Feb 18, 2021

Just a quick note that specifically annotations, do not support any other value types than strings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Component Metadata to Regression Test ...
using code-based component metadata and the other using ... is maintained, software engineers regression test it to validate new features and detect whether ......
Read more >
Using Component Metadata to Regression Test ...
... The idea of the Metadata-based testing approach is that a component provider attaches with the component some information (meta-methods, ...
Read more >
Component Metadata for Software Engineering Tasks
Abstract. This paper presents a framework that lets a component de- veloper provide a component user with different kinds of information, depending on...
Read more >
How Open Source Component Detection Works
The Software Composition Analysis feature in CAST Highlight ... detect the presence and the origin of third-party components in source code.
Read more >
Advancing Static Code Analysis With Language-Agnostic ...
Advancing Static Code Analysis With Language-Agnostic Component Identification ... Abstract: Static code analysis of software systems has proven ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found