AWS straps Python support to its automated CodeGuru tool, slashes prices – just don't go over 100,000 lines

Or the cost triples, which is one way to encourage concise programming


AWS has declared Python support in its automated code review system CodeGuru production ready, as well as reducing the price by "up to 90 per cent."

Our first look at the CodeGuru preview in late 2019 was disappointing. We had trouble getting it to make any recommendations, and the price at $0.75 per 100 lines of code seemed excessive – though any code review system is well worth it if it finds issues that prevent bugs or security problems making their way into production.

Since then, AWS has made a number of improvements, including a preview of Python support (alongside Java) in December last year. "We analyzed large code corpuses and Python documentation to source hard-to-find coding issues and trained our detectors to provide best practice recommendations," said the company.

There is also a catch: if developers perform more than two "full repository scans" there is a further $10 fee per scan

Python support is now generally available, and AWS said it has extended coverage with over 40 new rules and three new detectors, these referring to the categories of issues CodeGuru can identify.

The new detectors cover code maintainability, which claims to identify code complexities among other things, input validation, and resource leaks. These are in addition to existing detectors, which include correct use of AWS APIs, Java and Python best practices, concurrency issues, leak of sensitive information, common coding errors, and unnecessarily duplicated code.

The company has also had a look at its pricing for CodeGuru, needed because the old model could prove expensive. The mechanism for the code analysis has always been that the developer associates the service with a code repository, and analysis is triggered by code commits.

Supported repositories are the little-used AWS CodeCommit, Atlassian Bitbucket, GitHub, both cloud and self-hosted, and code dumped into Amazon S3.

The new pricing model is "a fixed monthly rate determined by the total lines of code across off of [a customer's] on-boarded repositories," AWS said this week, charged at $10 per month for the first 100,000 lines of code, and $30 for each additional 100k lines of code.

We are not sure why the price escalates rather than reducing as you add more code; maybe it will help to discourage code bloat. There is also a catch: if developers perform more than two "full repository scans" there is a further $10 fee per scan.

listening_in_

Yet another reminder: When a tech giant says its AI listens to you, it means humans listen to you. Right, Facebook?

READ MORE

Despite these caveats, the service does seem a lot more affordable than before; the company states that it is "a price reduction of up to 90 per cent."

While this sounds impressive, some users of the service apparently still struggle with the issue we encountered with the early preview: that CodeGuru refuses to make any recommendations. This discussion on the AWS developer forum states that "on a codebase of nearly 100,000 lines, only 4 recommendations. All not relevant."

Getting the balance right for this type of automated code scan is challenging. If the developer sees thousands of recommendations, they may just be ignored. Few or none raises the strong suspicion that the service is not working correctly.

This is a crowded market; there are numerous static analysis tools out there, and IDEs like Eclipse, IntelliJ IDEA, and Visual Studio come with built-in tools. These will not pick up AWS SDK best practices, nor do they have the resources of AWS machine learning behind them, but having improved its pricing, the key question is how effective it is at coming up with useful recommendations. ®

Similar topics

Narrower topics


Other stories you might like

  • Running Windows 10? Microsoft is preparing to fire up the update engines

    Winter Windows Is Coming

    It's coming. Microsoft is preparing to start shoveling the latest version of Windows 10 down the throats of refuseniks still clinging to older incarnations.

    The Windows Update team gave the heads-up through its Twitter orifice last week. Windows 10 2004 was already on its last gasp, have had support terminated in December. 20H2, on the other hand, should be good to go until May this year.

    Continue reading
  • Throw away your Ethernet cables* because MediaTek says Wi-Fi 7 will replace them

    *Don't do this

    MediaTek claims to have given the world's first live demo of Wi-Fi 7, and said that the upcoming wireless technology will be able to challenge wired Ethernet for high-bandwidth applications, once available.

    The fabless Taiwanese chip firm said it is currently showcasing two Wi-Fi 7 demos to key customers and industry collaborators, in order to demonstrate the technology's super-fast speeds and low latency transmission.

    Based on the IEEE 802.11be standard, the draft version of which was published last year, Wi-Fi 7 is expected to provide speeds several times faster than Wi-Fi 6 kit, offering connections of at least 30Gbps and possibly up to 40Gbps.

    Continue reading
  • Windows box won't boot? SystemRescue 9 may help

    An ISO image you can burn or drop onto a USB key

    The latest version of an old friend of the jobbing support bod has delivered a new kernel to help with fixing Microsoft's finest.

    It used to be called the System Rescue CD, but who uses CDs any more? Enter SystemRescue, an ISO image that you can burn, or just drop onto your Ventoy USB key, and which may help you to fix a borked Windows box. Or a borked Linux box, come to that.

    SystemRescue 9 includes Linux kernel 5.15 and a minimal Xfce 4.16 desktop (which isn't loaded by default). There is a modest selection of GUI tools: Firefox, VNC and RDP clients and servers, and various connectivity tools – SSH, FTP, IRC. There's also some security-related stuff such as Yubikey setup, KeePass, token management, and so on. The main course is a bunch of the usual Linux tools for partitioning, formatting, copying, and imaging disks. You can check SMART status, mount LVM volumes, rsync files, and other handy stuff.

    Continue reading

Biting the hand that feeds IT © 1998–2022