Skip to content

Instantly share code, notes, and snippets.

View chengfang's full-sized avatar

Cheng Fang chengfang

View GitHub Profile
@chengfang
chengfang / gist:32f8c6f31fb0736476677abe1b8cc451
Created June 12, 2024 03:07
image-updater-init-release-workflow
screenshot of argocd-image-updater init-release workflow
@chengfang
chengfang / operator-refactor-errors.txt
Last active April 1, 2024 11:59
operator-refactor-errors
+ make generate
/Users/cfang/go/src/argocd-operator/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
+ make manifests
/Users/cfang/go/src/argocd-operator/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
+ make docker-build IMG=quay.io/cfang/argocd-operator:test
/Users/cfang/go/src/argocd-operator/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
/Users/cfang/go/src/argocd-operator/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
go fmt ./...
go vet ./...
/Users/cfang/go/src/argocd-operator/bin/setup-envtest use 1.26
@chengfang
chengfang / wildfly-discovery-test-plan.md
Last active June 24, 2023 01:19
wildfly-discovery test plan
@chengfang
chengfang / project-release-process.md
Created June 14, 2023 18:53
Project release process

Instructions for releasing a new version of wildfly-discovery:

Prepare and perform the artifact deployment in local repo:

cd wildfly-discovery

# make sure local repo is up to date and clean

export VERSION=<NEW_VERSION, e.g., 1.0.0.Final>
@chengfang
chengfang / gist:abfdb4fb35beb94641509ff60800c05a
Created July 29, 2020 03:35
integration/basic/pom.xml copy users
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions combine.children="append">
<!-- Copy users and roles config from shared resources. -->
<execution>
<id>ejb3-lite.ts.config-as.copy-mgmt-users</id>
<phase>generate-test-resources</phase>
<goals>
<goal>copy-resources</goal>

stateful-timeout-and-ejb-runtime-info

Ability to configure default global stateful timeout for Stateful Session Beans (SFSB)

EAP7-1243 https://issues.jboss.org/browse/EAP7-1243

Hard Requirement:

  • Users should be able to configure default global stateful timeout in server config file for all deployed stateful session beans.
  • If this configuration is absent, the current behavior should be preserved (i.e., stateful session beans do not timeout unless explictly removed by application)
@chengfang
chengfang / NoSuchMethodError
Created November 15, 2016 02:17
java.lang.NoSuchMethodError: sun.reflect.ReflectionFactory.newConstructorForSerialization
/Users/cfang/dev/jsr352/jberet-core > mvn -e test -Dtest=org.jberet.job.model.FlowMergerTest#parentSameFile
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jberet-core 1.3.0.Beta4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ jberet-core ---
@chengfang
chengfang / sheet1.xml
Created May 23, 2014 21:34
Sheet data for movies-2012.xlsx, help to understand its structure
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheetPr filterMode="false">
<tabColor rgb="FFFFFFFF"/>
<pageSetUpPr fitToPage="false"/>
</sheetPr>
<dimension ref="A1:D3"/>
<sheetViews>
<sheetView windowProtection="false" showFormulas="false" showGridLines="true" showRowColHeaders="true"