GithubHelp home page GithubHelp logo

jitci's People

Contributors

jitpack-io avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jitci's Issues

Unable to list projects and organizations - Token refresh

Hi,

It seems that I can't list my projects and organization anymore. I've tried to revoke the application access and log back in again, but that didn't work.

Looking at the websocket data, each requests receive as response:

{
    "_type": ".Status",
    "status": "error",
    "message": "401 - Unauthorized - "
}

Or even:

{
    "_type": ".Reply",
    "address": "GetOrgs5",
    "msg": {
        "_type": ".Err",
        "message": "{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}"
    },
    "_to": "GetOrgs5"
}

I think it's related to a token, but I can't find where I can add a valid one again.

I cant cancel my subscription to jitpack.io!

I want to cancel my subscription to jitpack.io, but it is not displayed in my account! Support has not responded for many months! While the money is debited monthly! Email me asap!

Bug report: successful build is reporting failure, all public

199.	BUILD SUCCESSFUL in 474ms
200.	9 actionable tasks: 2 executed, 7 up-to-date
201.	
202.	Uploading artifacts:
203.	 - dependency.info
204.	 - blowdryer-1.0.1.jar
205.	 - blowdryer-1.0.1-javadoc.jar
206.	 - tests.html
207.	 - blowdryer-1.0.1-sources.jar
208.	 - modules.info
Notification result: Emailed: [email protected]
Published to JitPack:
 - 
Published to JitPack:
 - 
JitPack. Updated status for com.diffplug/blowdryer/master-SNAPSHOT to Error. {"status":"ok"}
JitPack. Updated status for com.diffplug/blowdryer/master-SNAPSHOT to ok. {"status":"ok"}

JUnit: CannotCompileException: cannot find org.junit.platform.launcher.Launcher

I've just discovered and started using JitCI since I am already using JitPack to host my artifacts I thought I might as well use your CI service to have it all in one place.

The builds themselves seem to produce healthy artifacts and test are being executed correctly, however there is this quite concerning exception that keeps being thrown by every build:

Exception Stack Trace
        
ext.javassist.CannotCompileException: cannot find org.junit.platform.launcher.Launcher
	at ext.javassist.CtBehavior.insertAfter(CtBehavior.java:906)
	at ext.javassist.CtBehavior.insertAfter(CtBehavior.java:824)
	at jitci.agent.Instrumenter.instrumentCall(Instrumenter.kt:41)
	at jitci.agent.junit.JUnitTransformer.transform(JUnitTransformer.kt:35)
	at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
	at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:100)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:82)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:78)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy2.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:132)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:175)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:157)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.lang.Thread.run(Thread.java:748)
Caused by: ext.javassist.NotFoundException: org.junit.platform.launcher.Launcher
	at ext.javassist.ClassPool.get(ClassPool.java:422)
	at ext.javassist.bytecode.Descriptor.toCtClass(Descriptor.java:571)
	at ext.javassist.bytecode.Descriptor.getReturnType(Descriptor.java:472)
	at ext.javassist.CtBehavior.getReturnType0(CtBehavior.java:331)
	at ext.javassist.CtBehavior.insertAfter(CtBehavior.java:858)
	... 45 more
        
  

I've did a bit of experimenting and found out that it's caused by adding this method to the test task:

    `org.gradle.api.tasks.testing.useJUnitPlatform()`

Note that I've not tried configuring JUnit specific options, I only know that the exception is throws when no arguments are used. As I've said, for now everything works fine but I do think this matter should be looked into because it might cause problems down the road.

No organization repositories

Hi! For some reason JitCI won't show any repo under my organization TheProgramSrc, even if they're open source:
image

If I press Find it will show up, but it would be nice to see it in the dropdown list :p

jitci failing with gradle 7.1 due to local cache using http

Gradle started requiring https connections for maven repositories; jitci uses http://cache without marking it as an allowed insecure repository.

The log states:

Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'cache(http://cache)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.

Example: https://jitci.com/gh/minecraft-saar/minecraft-nlg/119

How to install node modules before building android lib?

my project depends on node modules as a dependency. Without it, my project fails to compile.

I have manually pushed all the node modules in my repo and after that, I can get my project to build on Jitpack.

However, this approach is not sustainable.

How can I install node modules automatically on Jitpack rather than committing them to my repo

Unable to authorize.

I can't log in. Also the build of my projects from GitHub is not working.
When I try to authorize through GitHub, I get error 524.
If it matters, I have two-factor authorization enabled on GitHub, but I don't think it should affect anything.

Add code coverage

It would be great to see code coverage in JitCI since it already runs tests.

Ideally all types of code coverage should be supported:

  • class
  • method
  • line

Where are sources?

Most people expect code within GitHub repository,

not just README

Where are sources?

Maven install

Hi, I have a github repository with a jitpack.yml file, which contains the following code:

install:
- FILE="-Dfile=myLibrary.aar"
- mvn install:install-file $FILE -DgroupId=myGroupId -DartifactId=myArtifactId -Dversion=5.1.4 -Dpackaging=aar -DpomFile=pom.xml

If I use Jitpack.io to publish the library, I can see it runs this install command and does it successfully in the logs. But when I try to setup JitCI, it runs mvn -B de.qaware.maven:go-offline-maven-plugin:resolve-dependencies.
My question is, how to setup JitCI, so that the jitapack.yml content would be executed?

JitCI Not Detecting JUnit Test

Hello,
JitPack doesn't seem to be detecting the maven tests, even though they run successfully:
image
image

Is this normal? I couldn't find anything in settings about this.

Support publishing to generic Maven repositories

At the moment artifacts are published to:

  • internal JitCI repository
  • JitPack.io

There should be a configuration option to publish to any Maven repository.

Note: it is already possible to publish to a repository using build tools but this would make it even easier.

[ENHANCEMENT] Backup JitCi configuration to yml / json

I currently have 2 JitCi which are needed to make my build work.

I'd like to download those settings for backup / documentation purposes.

Alternatively, offer an option to read the settings from the github repo that is being built ie <repo root>/.jitci/settings.yml

Comments on builds

Add ability to leave comments on a build.
This is useful when team members are discussing a build failure.

Cannot run program "exit" (in directory "/home/jitpack/build/<<repository>>"): error=2, No such file or directory

Whenever JitCI initializes we get this error

Cannot run program "exit" (in directory "/home/jitpack/build/<>"): error=2, No such file or directory

Here is the log

  1. JitCI starting sdk-online-android build b1HH1NZEBSAGJC13TQ9YRF1FB5
  2. Build #23 on branch ''. Commit: '6c393603'
  3. Version: 1.0-17-gee5b1d9-303-20220904103105
  4. 00:00 $ git config --global credential.helper cache
  5. 00:00 $ git clone https://***@github.com/xxxxxxxxxxx/xxxxxxxxxxxxxxxxxxx .
  6. Cloning into '.'...
  7. 00:00 $ git checkout -qf 6c393603d1d2c81b4d6975c228c2f9b407aa987d
  8. 00:00 $ git log --oneline -1
  9. 6c39360 PDF with zoom feature commit for release version
  10. 00:00 $ git show --name-status
  11. commit 6c393603d1d2c81b4d6975c228c2f9b407aa987d
  12. Author: xxxxxxxxxxxxxxxxxxxxxxxxxx
  13. Date: Thu Dec 7 09:22:36 2023 +0100
    ...
    ...
    ...
  14. 00:00 $ git branch -a --contains 1.0.0
    • (HEAD detached at 6c39360)
  15. master
  16. remotes/origin/HEAD -> origin/master
  17. remotes/origin/master
  18. 00:01 $ git describe --always --long --tags
  19. 1.0.0-0-g6c39360
  20. Artifacts in DEPLOY_DIR: 0. Publish: true
  21. 00:01 $ echo url not found
  22. url not found
  23. 00:01 $ exit 1
  24. Cannot run program "exit" (in directory "/home/jitpack/build/<>"): error=2, No such file or directory
  25. Command exit code: 1
  26. Artifacts in DEPLOY_DIR: 0. Publish: true

We have replaced the repository information inside the Log

Gradle build looks for non-existent ../deploy.gradle file

It seems to me that gradle builds can only fail at publish stage since the default command uses an unexisting init script outside of the project. The default command used is :

./gradlew deploy -I ../deploy.gradle

By activating --debug and --stacktrace in Settings -> Publish -> Run default commands, I could see that the file didn't exist

The specified initialization script '/home/jitpack/build/deploy.gradle' does not exist.

JitPack building 'gh-pages' branch

Hello,
JitPack seems to attempt to build the gh-pages branch, even when no pom.xml / build.gradle is present. Is there a way to disable the building on this branch? I hope that in the future it will automatically ignore builds on this branch.

JDK 17 not working

Although I chose JDK17 java and mvn will not change from Java 1.8, which causes the build to fail.
I also tried to install Java 17 through jabba, but then came across another issue โ€” I've no clue how to install another maven. Tried to download from Apache CND server, but it also failed.

build.log
The project on JitCI

Commit status permissions

If user has only authorized public repositories then JitCI won't be able to update commit status on GitHub.
There should be an indication in project settings that more permissions are required.

At the moment it is possible to grant more permissions using Add Repository (+) -> Private button.

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.