iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📖

re:Invent 2024: Boosting Developer Productivity with GitLab and Amazon Q

に公開
2024/12/10

Introduction

By transcribing various international presentations into Japanese articles, we aim to make high-quality, hidden information more accessible. The presentation featured in this edition of the project is:

📖 AWS re:Invent 2024 - GitLab Duo with Amazon Q: AI-driven DevSecOps for your SDLC (DOP204)

This video explains the collaboration between Amazon Q and GitLab Duo, made possible by the new partnership between AWS and GitLab. Addressing the current reality where 54% of developers use 14 or more tools, the presentation introduces initiatives to boost developer productivity by leveraging AI agents throughout the entire Software Development Life Cycle (SDLC). Through specific demos—such as feature development support, code reviews, and streamlining maintenance tasks with the Amazon Q Developer Agent—it illustrates a future where developers can spend more time on creative work. Furthermore, it touches on the significance of AI-driven development support from the perspective of the "democratization of analysis," which follows the "democratization of knowledge and wisdom" in human evolution.
https://www.youtube.com/watch?v=_tKK5lAufCo
Note: This article is automatically generated from the video. Please refer to the original video for accurate information, as typos or errors may occur.
Clicking an image will take you to the corresponding scene in the video.

For other transcription articles related to re:Invent 2024, please check this Spreadsheet where we have compiled the information.

Main Body

Integration of GitLab Duo and Amazon Q: Applying AI to the Software Development Life Cycle

Thumbnail 0

Good morning. Based on yesterday's announcements, all session titles have been updated, so I hope you are all in the session you intended. Could those of you in the right session please raise your hands? Wonderful. Let's begin. Today, we will continue our discussion on the partnership and integration between GitLab Duo and Amazon Q, which was announced in yesterday's keynote. We will talk about applying AI across the entire software development life cycle.

I am Rory Richardson. I have been at AWS for about 12 years and have witnessed some amazing changes, but none have been as game-changing as the impact generative AI has had on technology and innovation. My partner Emilio is also here today. Could you please introduce yourself?

Thank you all for coming. I am Emilio Salvador, VP of Developer Relations Strategy at GitLab. I have been working with Rory for quite some time; we actually used to work together at AWS. I am very happy to share the wonderful results we have been working on with all of you today. Hello everyone. I lead the go-to-market strategy for Q Developer. The last 18 months have truly flown by. I am happy to be here today.

Boosting Developer Productivity with Generative AI

Let's get started. I'll provide a bit of context for our common understanding, though for those of you in the right session, detailed explanations might not be necessary, so I'll keep it brief. When ChatGPT launched in November 2022, I was one of those who ignored it. I didn't need friends, and I didn't need to write haiku. I didn't understand it. I questioned why I should care.

Thumbnail 140

Every time I encounter new technology, I try to ask my son for his opinion. When you ask a child, you get a truly honest answer. So, around February 2023, I asked him, "Why don't you try using ChatGPT for your homework?" I wanted to see how he would interact with a natural language interface. After looking at his homework, I suddenly understood what we should be doing.

My son struggles with writing—perhaps he inherited that from his mother. The piece he returned was more creative and complex than anything he had ever written before. While it was grammatically correct and the paragraphs made sense, that wasn't the interesting point. What was interesting was the complexity and the depth of thought within the story. I suddenly realized that if you start with intent and enhance layers of abstraction, you can create an interface from what you want to what you want to build in a completely new, dynamic way.

This is a photo of my son from the other day. He came up to me and asked, "Mom, can I have your briefcase?" I immediately thought, "Finally, he's doing something like me," but I was wrong. He wanted to build a laptop. He is a hardware-loving kid who has been building computers for neighbors for a long time. Therefore, he had many spare parts in his room. This is the laptop he built. Look at the fan—it doesn't particularly serve a purpose, but this was his first laptop. My son refuses to use the cloud or learn to code, but at least he installs Linux. He is 14 years old.

Thumbnail 270

From a developer's perspective, at AWS, we always start with the customer and work backward, so I asked developers what they love most. Most developers love creating documentation. In fact, the older the code, the better the documentation. Unit tests, too—you can never have enough. Security reviews, or realizing at the end of a project that you need a rewrite—brilliant. Everyone loves cleaning up someone else's mess, so they love maintaining old code too.

I'm from East Texas, and my brother was like Sheldon. Every time I asked him to help debug or build something, he was so excited to help his sister. Because of that, whenever developers have an opportunity to talk to non-developers and explain things, they enjoy it.

The Friction in the SDLC

Thumbnail 380

Clearly, there is a lot of friction throughout the Software Development Life Cycle (SDLC). How many developers are here today? Fantastic. There's a lot of tedious work, right? What we've found is that Generative AI and the application of these tools can help eliminate some of that tedious work. A recent survey conducted by GitLab found that 54% of developers use 14 or more tools in their SDLC every day. That's a lot—a lot to learn, a lot to integrate, and a lot of tedious work. If we want to create the future, democratize and accelerate access to innovation and technology, we need to start with this tedious work.

We know that developers aren't spending as much time in the IDE as you might think, so there is plenty of room to improve productivity. According to Gartner, developers spend less than one hour a day using the IDE to write new code—that's about 4 to 5 hours a week. We launched what was known then as CodeWhisperer in April 2023. However, we quickly realized that to truly change the conversation around developer productivity, we needed to address productivity across the entire development process. We started with code generation because that became the foundation. When we applied generative AI to programming languages—because programming languages are highly regular things without adjectives—we found that we got exponential results.

Thumbnail 490

The problem is, if we stop there, we're only affecting that 4-to-5-hour-per-week slice of productivity. What about the other 35 hours? As you saw in the announcement during yesterday's Keynote, we are expanding the scope of Amazon Q Developer to other aspects of the entire software development lifecycle. To do that, we need to support developers where they are actually working. The three agents Matt Garman announced in the keynote—documentation/doc, testing, and review—are autonomous agents that allow developers to stay in the zone and let the agents handle the undifferentiated heavy lifting in code creation.

Thumbnail 550

Regarding supporting developers where they work, while working in the IDE is possible, there are other tools needed to actually achieve results. We started by embedding plugins in the IDE, but from now on, Amazon Q will be ubiquitous across the entire AWS working experience. We are collaborating with GitLab to integrate Amazon Q to create better synergy. This enables our customers and developers to innovate at scale and allows teams to deliver better code.

One thing we found particularly interesting in 2023 is what McKinsey said about measuring code generation—it should be measured by acceptance rate, meaning how often developers say, "Yes, this code is really good, so I will use it." However, since this is just about that moment, it doesn't tell the whole story. As I mentioned earlier, what about the other 35 hours? That's when we began to consider other ways to measure the impact of these tools. For example, we thought it would be great if there was less code.

We also considered if we could reduce the number of code reviews, or if we could achieve a state where unit tests were already completed and there were fewer security vulnerabilities when conducting code reviews. As you see these announcements about Amazon Q, we fully understand the need for integration with other tools. That is exactly why Emilio and I began working on the collaboration between Amazon Q and GitLab.

GitLab and Amazon Q Integration: The Evolution of the DevSecOps Platform

Thumbnail 660

Good morning, everyone. We have been working together for a while, and the reality is that every developer uses multiple tools. Our approach has a slightly different direction toward this. We provide developers with an end-to-end platform that manages the entire software development lifecycle. From the first planning stage to application deployment, everything is covered. This naturally has many benefits. In my daily life before joining GitLab, I used dozens of different tools for repositories, unit testing, quality control, control, monitoring, and so on.

Thumbnail 700

Our value proposition is based on the fact that we have the most comprehensive DevSecOps platform in the market. In fact, we are in a leadership position in this field. This platform supports developers throughout the entire software development lifecycle. You don't have to spend time switching from one tool to another. Finally, when was the last time you developed an application from scratch and everything went well on the first try? Didn't you find any problems when you deployed the application? Did you realize it was a performance issue? And suddenly, did you get lost trying to understand what happened, only for one of the tools to be upgraded and the interface to stop working?

We spend an incredible amount of time just trying to get things to work. Looking back, the coding time is only one hour a day, and sometimes even that hour is not spent on truly important things. We are just trying to understand other people's code, refactoring it, or rewriting it. What we truly believe is that the power of AI is not just in its application in the IDE, nor is it only for when applications are deployed. The true power of AI and agents comes from being used throughout the entire software development lifecycle, truly transforming the developer experience.

Thumbnail 800

What this collaboration brings to each of us is based on one single idea: allowing us to spend our time, intelligence, and brainpower on what we love most—actually coding to solve problems and finding solutions to business challenges through our creativity. AI only makes sense when you think about how tools can help at each step of the software development lifecycle. From the moment you plan something, to when you start coding, to when you think about security and testing, you need agents that fully understand what is happening across these different steps.

Imagine having 20 assistants for every task along the way. Just trying to correlate between them would take more time than doing the work yourself. We are shifting from something that is merely reactive to something proactive that works in the background to create new experiences and save time. This is exactly what we are aiming for—saving time, accelerating software development, and giving people time to think. This is one of the things I miss the most. We are super busy and keep running. Sometimes we even forget what we are running for. We need time to step back, re-examine the problems in front of us, and honestly, solve those problems in creative ways.

Thumbnail 880

Thumbnail 890

This is something we have been working on together for a long time. What we announced yesterday is a preview version. This is just the beginning of the journey. We have a new set of agents ready for each of you to test today that will transform the way you develop software.

Thumbnail 920

This is available to AWS and GitLab customers using either the Dedicated or Self-Managed versions. Why is this important for each of you? You might wonder why you would spend time trying something that is not yet GA. It is because you can get a glimpse of what is coming ahead. You can experience how agents can accelerate software development, translate ideas into code, and assist in launching projects.

It also brings the strengths of GitLab to the environment you currently use. Things like Security, Quality, and Compliance are standard features already built into the platform. These are important elements for many businesses, but sometimes easy to forget. You want them to be part of your process—you just want them to work, to be there. And you need agents to help ensure they are executed. And finally, most importantly, we are respecting the developer's working environment. You can choose when and where to utilize these features.

Thumbnail 1010

Some developers use the IDE extensively—they can use Visual Studio Code, JetBrains, or our web interface. You can also use the Web IDE. The goal here is to find the best environment for each of you so you can maximize the benefits of the new tools we provide. This is a journey. This is just the beginning. This is a preview of the agents, with many more features planned. Please stay tuned.

Amazon Q Developer Agent Demo: From Feature Development to Code Review

Thumbnail 1050

I would like to take some time to show you the amazing results that both engineering teams have been working on together, and how you can leverage the value of these new features. Thank you, Emilio. As I mentioned in my opening, these 18 months have passed in a flash, but it has been a very meaningful period. After a long time, I finally had the opportunity to take a real look at the daily lives of developers. Now, let me move on to a demo of a solution that integrates DevOps workflows with Amazon Q autonomous AI agents.

Now, before that, I have to mention the experience with the DevOps survey that Rory referred to. The results show that 54% of individual developers use 14 or more tools. Just imagine that for a second. A mobile phone for SMS, another for calls, another for LinkedIn, and yet another device to push code. This isn't realistic, right? We fully understand that developers have choices and that each tool provides specific value, which is why these tools are important. However, this manifests as a very subtle problem in the implementation of software development in customer environments.

While individual developers create this complexity, it becomes even more complicated when it spreads to entire development teams. It requires collaboration, multiple people are involved, and there are best practices. The ambiguity of the SDLC, which we show as a linear process in our presentation slides, is all there. Sometimes it is depicted as a circular process in creative materials, but there are loops within loops, an Inner Loop, an Outer Loop, and even more loops inside the Inner Loop. This is exactly what we are trying to reinvent and rebuild.

And two things happen within these loops. One is that developers do creative work. Let's admit it, we are knowledge workers. But at the same time, in the same day, we are also working as assembly line workers, and there is monotonous work involved. Fortunately, with Generative AI and AI agents, we can remove that monotonous work. This is one aspect of productivity improvement. The other aspect of productivity improvement is that, as a developer, you are not in the most creative state all day long. We call it the "Flow State." In that Flow State, ideas flow magically from your head into the code, into the keyboard, where you win awards and get recognized. So, how do you unleash that creativity? It is achieved by removing the monotonous work and extending the time spent in the creative Flow State. Keep this context in mind.

Thumbnail 1210

Now, let's move on to the first demo. I'd like to introduce the Amazon Q Developer Agent for feature development. This was announced earlier this year, primarily as an IDE experience. It is designed to perform multi-file feature building, bug fixing, unit test creation, or all of the above. While the IDE is certainly one place to do this, what happens when we integrate it into your current development workflow?

Thumbnail 1260

Imagine a world where development teams live and breathe in an issue management system, where they can see what everyone else is working on. This is a simple Next.js web application. As a developer, you have been tasked with adding a sign-up form. Take 5-10 seconds to imagine how you would do it. For me, I would first think about the workflow. I would go into the web application, look at the project, and understand the code. I would create an issue and start thinking about the logic for the sign-up form. The logic needs a username and password, and I would consider scenarios such as existing users or password strength requirements, and how to link it to the main homepage.

Thumbnail 1330

Thumbnail 1340

Thumbnail 1350

Thumbnail 1360

In GitLab, I create an issue and include everything I thought about in those first 5-10 seconds, because I need to tell the agent what needs to be done. Then, I execute the command "/Q developer agent" within the issue, and the work begins. As the process proceeds, if the generative AI creates code attributed to open source, the attribution information for that code is provided. Watch as validation and documentation are added. Files and pages are created, and you can see the code being integrated into the project. It takes both the project context and the issue context at once.

Thumbnail 1390

Thumbnail 1400

Suppose someone requests the addition of a logging feature. I add the requirements and context in the same place and call the Q developer agent again. In other words, you only need to spend 5-10 seconds thinking about how to proceed using Q developer. From issue creation to merge and release, you know exactly what you did and what your colleagues did. All context and traceability are centralized in one place: the issue management system.

Some customers and developers ask if it can build the entire application by itself. In reality, while it is theoretically possible, it would require very complex prompts. The learning curve and affinity for the tools being used become important. So, feel free to try the product in Public Preview. By the way, this agent is the most advanced in the world. If you look at the SWE bench leaderboard, you'll see that as of yesterday, the Q software development agent is ranked at the top of the verified leaderboard.

Thumbnail 1470

Now, let's talk about code reviews. I'd like to ask everyone in the room: please raise your hand if you think the code review process can be improved or made more efficient. Those who raised their hands must really love code reviews. Everyone understands the importance of code reviews, and they aren't going away, but they can be performed more efficiently and in less time.

In a code review, there are two or three conflicting priorities. First, you want to ensure high-quality code from functional, security, and quality perspectives. As a reviewer, you have the responsibility to emphasize the organization's best practices and patterns. If someone checks in code and goes to grab a coffee, and a peer reviewer might not see it until the next day, this becomes non-value-added time from a supply chain perspective.

Thumbnail 1580

We recently announced an autonomous agent for code review. This agent checks for quality issues or security vulnerabilities and functions as the first reviewer. There are two clear benefits for individual developers. When a junior developer makes a mistake, they don't want it pointed out by someone else during a review. This reviewer removes all trivial details and minor issues before anyone else sees them. This is similar to a security "Left Shift," but now with the added aspect of quality. In the context of a GitLab workflow, this really accelerates the process.

Thumbnail 1600

When there is a Merge Request, the Amazon Q review agent is automatically invoked and begins analyzing the code, including the project and issue context. Although it passed quickly, it identified a high-severity issue where unit tests were missing. It also read the SQL statement and detected that it was using string concatenation vulnerable to SQL injection attacks. Instead of wasting 40-50 minutes searching Stack Overflow or talking to a colleague, the reviewer can automatically identify the problem and suggest a fix instead.

Thumbnail 1690

This isn't just a personal feature. Think of it as a multi-player scenario where the entire team has access to the issue context and can see what is happening. While a developer is taking a long coffee break, another team member can call the agent from the same space to implement a fix. From a code reviewer's perspective, they can run the agent before starting the review to filter out minor issues and concentrate on the high-quality functional aspects of the code. This eliminates small feedback loops.

Next, let's discuss the maintenance maturity model. When I was in the supply chain field, concepts like predictive and preventive maintenance had been around for 60-70 years. These concepts also exist in software development, but we are often unaware of them. Developers typically don't like maintenance tasks, such as upgrading from Java 8 to Java 17. It's not creative work; it's just necessary maintenance. That's why we released the Amazon Q Agent for Transformation earlier this year.

It has been a huge success within Amazon and with customers, but we have also received a wide range of feedback. There were questions about whether we could run transformation workloads in parallel, integrate them into pipelines, or first review an ordered plan. They wanted to know what was happening while a 2-million-line Java monolith was being transformed over 3 hours. Since humans remain in the loop, they requested detailed reports on changes and code review features. From this context, we realized that while this is one approach, a multi-player experience actually requires much more. GitLab functions as a single place, but in a multi-player experience, it is more appropriate to position it within the DevOps workflow.

From the perspective of a maintenance maturity model, let's start thinking about continuous maintenance rather than just predictive or preventive maintenance. We have now entered the era of continuous management. Have we reached that point completely? Not yet, but this is an exciting beginning.

Thumbnail 1830

Thumbnail 1850

Thumbnail 1860

Now, let's take a look at the demo. Here, we have a Java report project. Within the issues, I launch the Q Transformation Agent. Amazon Q as a native feature within GitLab immediately starts the pipeline from the issue, begins creating a plan, and shows us each step. And finally, it creates a Pull Request or Merge Request. If you look at its content, all the details of the packages are recorded. This is not just about converting from programming language A to B or updating to a new version of the same language; it updates dependencies, frameworks, and everything else.

Thumbnail 1870

A list of updated items, items that didn't need updating, and items that have become completely deprecated is displayed. And finally, once you approve the plan, it is executed through the pipeline. There is a reason I intentionally prepared a failed run. Such things can happen in actual operation, and this relates to how you set up problems and the essential nature of change management.

Now, we also announced three use cases for testing. As you pointed out, this is just the beginning, but try to imagine these three use cases in an actual scenario where you are trying to add a new feature to an old version of a Java application. Start with Q Transforms in the same issue, iterate, and once you reach a certain point, call the software development features. By providing all the context, it grasps the project and issue context, executes it in the pipeline, and finally reaches the review process. We just bundled 7 or 8 different workflows into one workflow, including traceability and logs. Even if someone looks at that brownfield code 7 years later, they can check the end-to-end traceability without even needing to understand what actually happened.

The Future of Generative AI: From the Democratization of Knowledge to the Democratization of Analysis

Thumbnail 1970

That's fantastic. Much of what we're talking about today is the reason I stopped being a developer—tasks that didn't feel as creative as designing new problem-solving methods. Honestly, if these tools had been available when I was learning to code, I might still be working as a developer. Because so many tasks that weigh us down and throw sand in the gears are being resolved.

Thumbnail 2030

Let's shift perspectives here and talk a bit more philosophically about where the application of Generative AI is heading. What I'm about to say will be the most technical part of this presentation, so bear with me. When we consider human evolution, especially the evolution of the last 100 years, we have fundamentally changed how we find value in each other and how we democratize information. So far, these technologies haven't completely replaced people because they couldn't reproduce the most human, most creative activities we engage in. However, they have made great progress in handling routine tasks.

Initially, there was data. Data existed, but it couldn't be shared. So, we created writing systems to share information. Once we had writing systems, we began gathering everything written to create libraries, allowing us to read about the same theme from different perspectives. And from there, wisdom was born. In my experience, I haven't been asked for donations regarding illiteracy in about a decade. Knowledge can be said to have been almost completely democratized.

Furthermore, memorizing things is no longer considered important as a method of children's education. In fact, most people here probably couldn't recite their child's phone number. But you surely remember the phone number from when you were a child. Mechanical memorization is no longer something we find value in with each other or in processes. And honestly, that's not what you'd call wisdom either. Now that I have access to Wikipedia and academic papers, I can become an expert in various fields in just a week. By reading information from around the world, I can gain wisdom.

So, now that knowledge and wisdom have been democratized, what's next? It's analysis. Democratizing analysis is a very difficult challenge. I've been with Amazon for a long time, and the reason I stay is because I continue to work on technologies that solve one problem at a time. During my first year at Amazon, I faced an existential crisis and summarized it into one sentence, one problem statement: "How can an 8-year-old in Poughkeepsie analyze trends in breast cancer incidence among left-handed people?"

It might sound like a very specific problem, but the technical elements included in this question didn't exist 12 years ago. The democratization of how we interact with databases has fundamentally changed in this period—NoSQL databases, open-source databases, managed databases, etc. These have all emerged in the last 10 years. It's also only recently that we've been able to manage identity and privacy across diverse datasets. However, in the last 18 months, I've arrived at the "8-year-old child" part. Because that child doesn't need to manage servers. We have Serverless technology, and if that child can just understand the process from objective to result, they don't even need to know a programming language.

What comes next is the democratization of analysis. After that, perhaps integration will come. Integration means, for example, that an expert in fluid dynamics could perform brain surgery. In other words, you will be able to apply deep professional knowledge from one field to another context. Everyone has a friend who can easily master new fields or domains. That's the direction we're heading. In fact, we emphasize these points in interviews now too. We're not just thinking about knowledge or wisdom.

When thinking about the application of these technologies and how people adopt them, Ali also mentioned this, there is an organizational behavioral change—the human change between what we've done so far and what we'll do in the future. Our observation is that people adopting the integration of these assistants tend to be younger and in the early stages of their careers, and their productivity is significantly improving. Matt Garman mentioned a figure of up to 80%, but this number is constantly fluctuating. That's because better use cases and feedback are being obtained regarding how to leverage the tools. Furthermore, we are actively shifting toward an agent model that possesses the autonomy and agency to complete tasks on behalf of the requester.

Returning to my son, I've tried to teach him to code since he was four. I used Code Monkeys—as many of you know, it's a game where you have a monkey get bananas, and you can learn Python through 250 lessons. My son is 14 now, but I can't get those 10 years back. By the time he enters the job market, what will the role of Python be? What will the importance of syntax be? We are shifting developers from "creators" to "orchestrators." This is very different from when I learned to code in a highly isolated way. We use the word "multi-player," but it's not because we adopted an object-oriented model, but because we will be able to cooperate in real-time and leverage human power for what humans are truly good at.

Evaluation and Encouragement to Experiment with GitLab Duo with Amazon Q

Thumbnail 2420

This is the future. Thank you for bearing with my super-nerdy side. I feel this is the most interesting milestone I've experienced in my life. It's how we engage with technology and democratize innovation at a scale I once thought impossible in my life. So, I recommend evaluating GitLab Duo with Amazon Q. It is available today as a preview on the GitLab branch. Welcome to the Q family. It's an honor. By the way, I'd love a GitLab pin badge. You can use this QR code, but you can also access the GitLab site and start now. Evaluating Amazon Q and starting to use GitLab is very simple.

Thumbnail 2470

I recommend starting to experiment. If it were the old me, I would only pay for results, not for play, but that's not the case anymore. Within my team, I ask them to experiment, play, and think of new ideas for better ways to cooperate. Thank you for listening. Thank you.


  • This article is created entirely automatically using Amazon Bedrock.
  • Out of concern for internet pollution caused by generative AI articles, this article aims to convert session videos into text and images with almost no change in information density, thereby maintaining the value of the original content itself while hoping to enhance accessibility and googlability in multiple languages.

Discussion