Giter Site home page Giter Site logo

cli's Introduction

buildless cli

Buildless for the Command Line (Docs)

Latest release: 1.0.0-rc2

Output of buildless --help

cli's People

Contributors

sgammon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cli's Issues

Agent stats should use V2 structure

Feature description

The new V2 cache stats format is way better, and buildless agent stats should swap to using it.

Component

Buildless CLI, Buildless Agent

Language

N/A (Default)

Tool

N/A (Default)

Dashboard command error (`NotImplemented`)

Expected Behavior

Running buildless dashboard should open the Dashboard

Actual Behaviour

A crash

Stacktrace

Exception in thread "main" kotlin.NotImplementedError: An operation is not implemented: Not yet implemented
	at build.less.cli.cmd.dashboard.DashboardCommand.invoke-mT4irmQ(DashboardCommand.kt:37)
	at build.less.cli.AbstractCommand$call$1.invokeSuspend(AbstractCommand.kt:246)
	at build.less.cli.AbstractCommand$call$1.invoke-mT4irmQ(AbstractCommand.kt)
	at build.less.cli.AbstractCommand$call$1.invoke(AbstractCommand.kt)
	at build.less.cli.AbstractCommand$execute$1$4.invokeSuspend(AbstractCommand.kt:222)
	at build.less.cli.AbstractCommand$execute$1$4.invoke(AbstractCommand.kt)
	at build.less.cli.AbstractCommand$execute$1$4.invoke(AbstractCommand.kt)
	at com.jakewharton.mosaic.MosaicKt$runMosaic$2$3.invokeSuspend(mosaic.kt:114)
	at com.jakewharton.mosaic.MosaicKt$runMosaic$2$3.invoke(mosaic.kt)
	at com.jakewharton.mosaic.MosaicKt$runMosaic$2$3.invoke(mosaic.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
	at com.jakewharton.mosaic.MosaicKt$runMosaic$2.invokeSuspend(mosaic.kt:95)
	at com.jakewharton.mosaic.MosaicKt$runMosaic$2.invoke(mosaic.kt)
	at com.jakewharton.mosaic.MosaicKt$runMosaic$2.invoke(mosaic.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
	at com.jakewharton.mosaic.MosaicKt.runMosaic(mosaic.kt:54)
	at build.less.cli.AbstractCommand$execute$1.invokeSuspend(AbstractCommand.kt:207)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:281)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at build.less.cli.AbstractCommand.execute(AbstractCommand.kt:186)
	at build.less.cli.AbstractCommand.call(AbstractCommand.kt:245)
	at build.less.cli.AbstractCommand.run(AbstractCommand.kt:256)
	at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
	at picocli.CommandLine.access$1500(CommandLine.java:148)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
	at picocli.CommandLine.execute(CommandLine.java:2170)
	at build.less.cli.Buildless$Companion.main(Buildless.kt:264)
	at build.less.cli.Buildless.main(Buildless.kt)
	at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

Steps To Reproduce

  1. Download and install CLI
  2. Login with buildless account login
  3. Run buildless dashboard
  4. Error

Environment Information

  • Operating System: macOS 13
  • Architecture: arm64 (M-series)

Component

Buildless CLI

Language

N/A (Default)

Tool

N/A (Default)

Example Application

No response

Version

1.0.0-rc1

Support for S3 endpoints

Feature description

Support for S3 endpoints in the Agent would add another route for certain tools which can perform S3 uploads/downloads.

Component

Buildless Agent

Language

N/A (Default)

Tool

SCCache

Formatting issue on `buildless support`

Issue description

Observe the double : separator:

buildless support

Support resources for Buildless                                         
                                                                        
 ‣ Docs:: https://docs.less.build/docs (pass --docs to open)            
 ‣ Discord:: https://elide.dev/discord (run `buildless discord` to open)
 ‣ GitHub:: https://github.com/buildless (pass --github to open)        
 ‣ Support:: https://less.build/support (pass --portal to open)     

Bug report format breaks

Expected Behavior

Reporting a bug should be clean and fun

Actual Behaviour

Oops:

Screenshot 2023-12-14 at 3 09 15 PM

Stacktrace

N/A

Steps To Reproduce

  1. buildless bug
  2. Add a long title

Environment Information

  • Operating System: macOS 13
  • Architecture: arm64

Component

Buildless CLI

Language

N/A (Default)

Tool

N/A (Default)

Example Application

No response

Version

1.0.0-rc1

Display issue with `buildless update --check`

Expected Behavior

Checking for an update should show a sensible message

Actual Behaviour

Instead, a weird double message is shown:

➜  ~ buildless update --check
Update available (latest: '1.0.0-rc2')Update available

Stacktrace

N/A

Steps To Reproduce

Run buildless update --check when an update is available

Environment Information

No response

Component

Buildless CLI

Language

No response

Tool

No response

Example Application

No response

Version

1.0.0-rc2

Support for Turbo endpoints

Feature description

It would be great to have support in the Buildless Agent for Turborepo endpoints.

Component

Buildless Agent

Language

JavaScript

Tool

Turbo

Support for RESP

Feature description

Supporting the RESP (Redis) protocol within the Agent would be a powerful upgrade.

Component

Buildless Agent

Language

N/A (Default)

Tool

SCCache

Tracking: 1.0 Release

This ticket tracks issues which must be fixed before a stable 1.0.0 release of the Buildless CLI and Agent.

Tracked or known issues

Anticipated features

`IllegalStateException`: SISMWAW cache reflection

Expected Behavior

Running the agent should work and not produce a crash

Actual Behaviour

A crash

Stacktrace

Caused by: java.lang.IllegalStateException: SISMWAW
	at com.github.benmanes.caffeine.cache.LocalCacheFactory.newFactory(LocalCacheFactory.java:114)
	at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at com.github.benmanes.caffeine.cache.LocalCacheFactory.loadFactory(LocalCacheFactory.java:97)
	at com.github.benmanes.caffeine.cache.LocalCacheFactory.newBoundedLocalCache(LocalCacheFactory.java:46)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3953)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3949)
	at com.github.benmanes.caffeine.cache.Caffeine.build(Caffeine.java:1048)
	at build.less.agent.impl.LocalSyncCache.buildCache(LocalSyncCache.kt:195)
	at io.micronaut.cache.caffeine.DefaultSyncCache.<init>(DefaultSyncCache.java:88)
	at build.less.agent.impl.LocalSyncCache.<init>(LocalSyncCache.kt:52)
	at build.less.agent.impl.$LocalSyncCache$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2309)
	... 117 more
Caused by: java.lang.NoSuchMethodException: no such constructor: com.github.benmanes.caffeine.cache.SISMWAW.<init>(Caffeine,AsyncCacheLoader,boolean)void/newInvokeSpecial
	at [email protected]/java.lang.invoke.MemberName.makeAccessException(MemberName.java:913)
	at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:994)
	at [email protected]/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3750)
	at [email protected]/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2837)
	at com.github.benmanes.caffeine.cache.LocalCacheFactory$MethodHandleBasedFactory.<init>(LocalCacheFactory.java:122)
	at com.github.benmanes.caffeine.cache.LocalCacheFactory.newFactory(LocalCacheFactory.java:111)
	... 129 more
Caused by: java.lang.NoSuchMethodError: com.github.benmanes.caffeine.cache.SISMWAW.<init>(com.github.benmanes.caffeine.cache.Caffeine, com.github.benmanes.caffeine.cache.AsyncCacheLoader, boolean)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandleNatives.resolve(Target_java_lang_invoke_MethodHandleNatives.java:335)
	at [email protected]/java.lang.invoke.MethodHandleNatives.resolve(MethodHandleNatives.java:213)
	at [email protected]/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
	at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:991)
	... 133 more

Steps To Reproduce

  1. On a M-series macOS device
  2. Install the CLI
  3. Run buildless agent run --verbose --no-background

Environment Information

  • Operating System: macOS 13
  • Architecture: arm64

Component

Buildless Agent

Language

N/A (Default)

Tool

N/A (Default)

Example Application

No response

Version

1.0.0-rc1

Effectiveness stats aren't accurate

Expected Behavior

  1. Use the Buildless Agent for a few hours
  2. Observe stats output from buildless agent stats
  3. See that the cache is eventually rated "Effective" and performs well w.r.t. hit ratio

Actual Behaviour

  1. Use the Buildless Agent for a few hours
  2. Observe stats output from buildless agent stats
  3. See that the cache appears not to be effective

Stacktrace

N/A

Steps To Reproduce

See above

Environment Information

  • Operating System: N/A
  • Architecture: N/A

Component

Buildless Agent

Language

N/A (Default)

Tool

N/A (Default)

Example Application

No response

Version

1.0.0-rc1

Machine-detectable agent status

Feature description

The buildless agent status command is useful for a human, but not a computer, yet. It should have a failure return code when the agent is not running, so that other processes can easily/safely detect a running agent. Perhaps this should be triggered by a flag like --porcelain.

Component

Buildless CLI

Language

N/A (Default)

Tool

N/A (Default)

`ClassNotFoundException`: PSAWMW

Expected Behavior

Running the agent should not produce a crash on macOS

Actual Behaviour

Crash

Stacktrace

Caused by: java.lang.IllegalStateException: PSAWMW
	at com.github.benmanes.caffeine.cache.NodeFactory.newFactory(NodeFactory.java:155)
	at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at com.github.benmanes.caffeine.cache.NodeFactory.loadFactory(NodeFactory.java:141)
	at com.github.benmanes.caffeine.cache.NodeFactory.newFactory(NodeFactory.java:89)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache.<init>(BoundedLocalCache.java:270)
	at com.github.benmanes.caffeine.cache.SS.<init>(Unknown Source)
	at com.github.benmanes.caffeine.cache.SSS.<init>(Unknown Source)
	at com.github.benmanes.caffeine.cache.SSSMW.<init>(Unknown Source)
	at com.github.benmanes.caffeine.cache.SSSMWA.<init>(Unknown Source)
	at com.github.benmanes.caffeine.cache.SSSMWAW.<init>(Unknown Source)
	at [email protected]/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at [email protected]/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandle.invokeInternal(Target_java_lang_invoke_MethodHandle.java:251)
	at [email protected]/java.lang.invoke.MethodHandle.invokeBasic(MethodHandle.java:98)
	at [email protected]/java.lang.invoke.MethodHandle.invokeBasic(MethodHandle.java:0)
	at [email protected]/java.lang.invoke.LambdaForm$MH/0x0000007003a20400.invokeExact_MT(LambdaForm$MH)
	at com.github.benmanes.caffeine.cache.LocalCacheFactory$MethodHandleBasedFactory.newInstance(LocalCacheFactory.java:128)
	at com.github.benmanes.caffeine.cache.LocalCacheFactory.newBoundedLocalCache(LocalCacheFactory.java:48)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3953)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3949)
	at com.github.benmanes.caffeine.cache.Caffeine.build(Caffeine.java:1048)
	at build.less.agent.impl.LocalSyncCache.buildCache(LocalSyncCache.kt:195)
	at io.micronaut.cache.caffeine.DefaultSyncCache.<init>(DefaultSyncCache.java:88)
	at build.less.agent.impl.LocalSyncCache.<init>(LocalSyncCache.kt:52)
	at build.less.agent.impl.$LocalSyncCache$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2309)
	... 87 more
Caused by: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.PSAWMW
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:122)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:86)
	at [email protected]/java.lang.Class.forName(DynamicHub.java:1346)
	at [email protected]/java.lang.Class.forName(DynamicHub.java:1335)
	at [email protected]/java.lang.invoke.MethodHandles$Lookup.findClass(MethodHandles.java:2869)
	at com.github.benmanes.caffeine.cache.NodeFactory.newFactory(NodeFactory.java:149)
	... 113 more

Steps To Reproduce

  1. Download RC1 on macOS (M-series, but, shouldn't matter)
  2. Run the agent with buildless agent run --no-background --verbose
  3. Observe error

Environment Information

  • Operating System: macOS 13
  • Architecture: M-series (arm64)

Component

Buildless Agent

Language

N/A (Default)

Tool

N/A (Default)

Example Application

No response

Version

1.0.0-rc1

Sigstore signatures broken

Issue description

The verification instructions for releases mention my account as the issuer value to properly verify a release. However, our automated release pipeline changed this identity, and so signatures are known to be broken, simply because we don't know the issuer value used within the pipeline.

Fix to instructions coming soon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.