Skip to content

Instantly share code, notes, and snippets.

View aufi's full-sized avatar

Marek Aufart aufi

View GitHub Profile
apiVersion: tackle.konveyor.io/v1alpha1
kind: Tackle
metadata:
creationTimestamp: '2023-09-13T07:06:58Z'
generation: 4
managedFields:
- apiVersion: tackle.konveyor.io/v1alpha1
fieldsType: FieldsV1
fieldsV1:
'f:spec':
@aufi
aufi / README.md
Last active December 19, 2023 13:55
Konveyor Hub API test coverage
@aufi
aufi / analysisloop.log
Last active November 15, 2023 11:51
Konveyor Testapp tier0 analysis test in loop to explore random failures
Analysis run 0
File: "/addon/source/tackle-testapp-public/src/main/resources/persistence.properties",
Line: 2,
File: "/addon/source/tackle-testapp-public/target/classes/persistence.properties",
Line: 2,
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 45,
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 46,
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
@aufi
aufi / output.log
Created September 22, 2023 08:52
analysis linenumber change from 68 to 69 - which one is correct? (for local-storage-00001)
analysis_test.go:153:
Different incident error. Got {Resource:{ID:18 CreateUser: UpdateUser: CreateTime:2023-09-22 07:55:54.149135696 +0000 UTC} File:/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java Line:69 Message:An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache. CodeSnip:59
60 @Bean
61 public PersistenceExcep
@aufi
aufi / assessments.json
Last active September 7, 2023 13:03
Example Pathfinder assessment
[
{
"id": 7830,
"applicationId": 83,
"status": "COMPLETE",
"stakeholders": [
59
],
"stakeholderGroups": [
62
@aufi
aufi / hub-pod-cli.sh
Last active August 2, 2023 13:36
hub metrics sample
[root@tackle-hub-b9bbd7c97-bc8m9 /]# curl http://localhost:2112/metrics
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 4.1141e-05
go_gc_duration_seconds{quantile="0.25"} 6.6089e-05
go_gc_duration_seconds{quantile="0.5"} 0.000107998
go_gc_duration_seconds{quantile="0.75"} 0.000154303
go_gc_duration_seconds{quantile="1"} 0.000455367
go_gc_duration_seconds_sum 0.328637
go_gc_duration_seconds_count 2658
@aufi
aufi / README.md
Last active July 28, 2023 08:37
windup addon for latest konveyor with lsp

Add windup addon to Konveyor Hub manually

Related to konveyor/operator#249

Use with kubectl apply -f windup-addon.yml

Check the Hub knows about the addon

$ export HUB_BASE_URL="http://$(minikube ip)/hub"
$ curl $HUB_BASE_URL/addons | jq
func TestDependencyListAlternative1SharedDependenciesArray(t *testing.T) {
dependencies := []api.Dependency{}
// PREPARE TEST DATA (Must)
for _, sample := range Samples {
// Create applications.
assert.Must(t, Application.Create(&sample.ApplicationFrom))
assert.Must(t, Application.Create(&sample.ApplicationTo))
// Create dependencies.
dependency := api.Dependency{

huggingface / transformers pipeline - what to do model

Local install

python -m venv ml-env
source ./ml-env/bin/activate
pip install torch # use PyTorch or TF
@aufi
aufi / index.html
Created May 11, 2023 13:42
Windup report for PathfinderGit sample app (windup/report/index.html)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>Application List</title>
<link href="reports/resources/css/bootstrap.min.css" rel="stylesheet"/>